Scripts/Spells: When Frost Warding negates the damage taken, the Frost Ward should remain intact
Closes #313 Signed-off-by: Subv <s.v.h21@hotmail.com>
This commit is contained in:
1 parent
7a5f6dd198
commit
443adaff07
1 file changed
+4
-2
@@ -250,9 +250,11 @@ class spell_mage_frost_warding_trigger : public SpellScriptLoader
|
||||
|
||||
if (roll_chance_i(chance))
|
||||
{
|
||||
absorbAmount = dmgInfo.GetDamage();
|
||||
int32 bp = absorbAmount;
|
||||
int32 bp = dmgInfo.GetDamage();
|
||||
dmgInfo.AbsorbDamage(bp);
|
||||
target->CastCustomSpell(target, SPELL_MAGE_FROST_WARDING_TRIGGERED, &bp, NULL, NULL, true, NULL, aurEff);
|
||||
absorbAmount = 0;
|
||||
PreventDefaultAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user