aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2019-10-02 16:50:45 -0300
committerGitHub <noreply@github.com>2019-10-02 16:50:45 -0300
commit16fde1ffad38306f1f21eab6496f4826d6ed3498 (patch)
tree2674b5220be0d51ae6fe24d52464fb7ca19984cf /src
parentb3b8ec811daab65d4b94cad950a460240b02390b (diff)
Scripts/ICC: Fixed Tear Gas not getting removed of Abomination in phase change of PP (#23846)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp9
1 files changed, 7 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 adc964345a1..d27ed193147 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp
@@ -625,7 +625,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);
@@ -1606,8 +1605,14 @@ class spell_putricide_clear_aura_effect_value : public SpellScriptLoader
void HandleScript(SpellEffIndex effIndex)
{
PreventHitDefaultEffect(effIndex);
+ Unit* target = GetHitUnit();
uint32 auraId = sSpellMgr->GetSpellIdForDifficulty(uint32(GetEffectValue()), GetCaster());
- GetHitUnit()->RemoveAurasDueToSpell(auraId);
+ target->RemoveAurasDueToSpell(auraId);
+ if (m_scriptSpellId == SPELL_TEAR_GAS_CANCEL)
+ {
+ uint32 auraId2 = GetSpellInfo()->Effects[EFFECT_1].CalcValue();
+ target->RemoveAurasDueToSpell(auraId2);
+ }
}
void Register() override