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:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user