aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubv <s.v.h21@hotmail.com>2012-04-07 18:25:34 -0500
committerSubv <s.v.h21@hotmail.com>2012-04-07 18:27:47 -0500
commit443adaff07523e7638e19119f3bde4fb5d1aa381 (patch)
tree32bbec09d9066624d4f8b8a4b3c70d1e9bfc0593
parent7a5f6dd198fb6e66d8142b31be78b48e4b6931e7 (diff)
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>
-rw-r--r--src/server/scripts/Spells/spell_mage.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp
index b746c37a090..050741ffaba 100644
--- a/src/server/scripts/Spells/spell_mage.cpp
+++ b/src/server/scripts/Spells/spell_mage.cpp
@@ -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();
}
}
}