mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Merge pull request #12953 from Golrag/master
Scripts/ICC: Fix Mutated Plague. Closes #12492
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user