Scripts/Spells: When Frost Warding negates the damage taken, the Frost Ward should remain intact

Closes #313
Signed-off-by: Subv <[email protected]>
This commit is contained in:
Subv
2012-04-07 18:27:47 -05:00
parent 7a5f6dd198
commit 443adaff07
+4 -2
View File
@@ -250,9 +250,11 @@ class spell_mage_frost_warding_trigger : public SpellScriptLoader
if (roll_chance_i(chance)) if (roll_chance_i(chance))
{ {
absorbAmount = dmgInfo.GetDamage(); int32 bp = dmgInfo.GetDamage();
int32 bp = absorbAmount; dmgInfo.AbsorbDamage(bp);
target->CastCustomSpell(target, SPELL_MAGE_FROST_WARDING_TRIGGERED, &bp, NULL, NULL, true, NULL, aurEff); target->CastCustomSpell(target, SPELL_MAGE_FROST_WARDING_TRIGGERED, &bp, NULL, NULL, true, NULL, aurEff);
absorbAmount = 0;
PreventDefaultAction();
} }
} }
} }