aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGolrag <buderus@hotmail.be>2014-08-29 02:44:25 +0200
committerGolrag <buderus@hotmail.be>2014-08-29 22:26:41 +0200
commit96ba36b9cef577f7c106a3ffb2945606b33676d2 (patch)
treeb7a95e27030ec75e48b81013d92629bb341b912b /src
parentb20b6dedf9b7de13a35f60c6f72f8a80ceed94e6 (diff)
Scripts/ICC: Fix Mutated Plague.
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp
index f60a7ba278b..11f20129b3e 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp
@@ -1269,7 +1269,13 @@ class spell_putricide_mutated_plague : public SpellScriptLoader
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
uint32 healSpell = uint32(GetSpellInfo()->Effects[EFFECT_0].CalcValue());
- GetTarget()->CastSpell(GetTarget(), healSpell, true, NULL, NULL, GetCasterGUID());
+ SpellInfo const* healSpellInfo = sSpellMgr->GetSpellInfo(healSpell);
+
+ if (!healSpellInfo)
+ return;
+
+ int32 heal = healSpellInfo->Effects[0].CalcValue() * GetStackAmount();
+ GetTarget()->CastCustomSpell(healSpell, SPELLVALUE_BASE_POINT0, heal, GetTarget(), true, NULL, NULL, GetCasterGUID());
}
void Register() override