[11065] Implement stun absorb part of spell 24858

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
breakwater 2011-01-24 23:00:47 +03:00 committed by VladimirMangos
parent 686d9b0c70
commit d5b982cbbe
3 changed files with 10 additions and 1 deletions

View file

@ -2076,6 +2076,14 @@ void Unit::CalculateDamageAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolM
RemainingDamage -= RemainingDamage * currentAbsorb / 100;
continue;
}
// Moonkin Form passive
if (spellProto->Id == 69366)
{
//reduces all damage taken while Stunned
if (unitflag & UNIT_FLAG_STUNNED)
RemainingDamage -= RemainingDamage * currentAbsorb / 100;
continue;
}
break;
}
case SPELLFAMILY_ROGUE: