Scripts/Spells: Fixed Death Knight Spell Deflection

This commit is contained in:
Ramus
2011-03-19 12:53:17 +01:00
committed by Shauren
parent 873b22662f
commit 1ab06e8f93
+1 -1
View File
@@ -428,7 +428,7 @@ class spell_dk_spell_deflection : public SpellScriptLoader
void Absorb(AuraEffect * /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
// You have a chance equal to your Parry chance
if ((dmgInfo.GetDamageType() == DIRECT_DAMAGE) && roll_chance_f(GetTarget()->GetUnitParryChance()))
if ((dmgInfo.GetDamageType() == SPELL_DIRECT_DAMAGE) && roll_chance_f(GetTarget()->GetUnitParryChance()))
absorbAmount = CalculatePctN(dmgInfo.GetDamage(), absorbPct);
}