diff options
author | Keader <keader.android@gmail.com> | 2019-10-02 16:50:45 -0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-18 22:33:47 +0100 |
commit | 9abdc4ee3d819a992ac998bfb565d4a403308e5a (patch) | |
tree | 983f35f35fefbf863c9ab37eb8620e01c6247a9f | |
parent | 6e1ed95a63b12d7eb94bfb06b9e2569c4f15e5d2 (diff) |
Scripts/ICC: Fixed Tear Gas not getting removed of Abomination in phase change of PP (#23846)
(cherry picked from commit 16fde1ffad38306f1f21eab6496f4826d6ed3498)
-rw-r--r-- | src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp index f81d31c2602..37c84759489 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp @@ -623,7 +623,6 @@ class boss_professor_putricide : public CreatureScript AttackStart(me->GetVictim()); // remove Tear Gas me->RemoveAurasDueToSpell(SPELL_TEAR_GAS_PERIODIC_TRIGGER); - instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_TEAR_GAS_TRIGGER_MISSILE, true, true); DoCastAOE(SPELL_TEAR_GAS_CANCEL); instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_GAS_VARIABLE); instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_OOZE_VARIABLE); @@ -1602,7 +1601,14 @@ class spell_putricide_clear_aura_effect_value : public SpellScriptLoader void HandleScript(SpellEffIndex effIndex) { PreventHitDefaultEffect(effIndex); - GetHitUnit()->RemoveAurasDueToSpell(GetEffectValue()); + Unit* target = GetHitUnit(); + uint32 auraId = GetEffectValue(); + target->RemoveAurasDueToSpell(auraId); + if (m_scriptSpellId == SPELL_TEAR_GAS_CANCEL && GetSpellInfo()->GetEffects().size() >= EFFECT_1) + { + uint32 auraId2 = GetSpellInfo()->GetEffect(EFFECT_1).CalcValue(); + target->RemoveAurasDueToSpell(auraId2); + } } void Register() override |