Scripts/ZG: Zanzil's Toxic Gas will now properly remove all auras when he dies or evades
This commit is contained in:
1 parent
194dda986c
commit
24ead8dffa
1 file changed
+10
@@ -173,6 +173,11 @@ struct boss_zanzil : public BossAI
|
||||
{
|
||||
_JustDied();
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_ZANZILS_GRAVEYARD_GAS_DAMAGE);
|
||||
|
||||
for (ObjectGuid guid : _toxicGasGUIDs)
|
||||
if (Creature* stalker = ObjectAccessor::GetCreature(*me, guid))
|
||||
stalker->RemoveAllAuras();
|
||||
|
||||
Talk(SAY_DEATH);
|
||||
}
|
||||
|
||||
@@ -181,6 +186,11 @@ struct boss_zanzil : public BossAI
|
||||
_EnterEvadeMode();
|
||||
summons.DespawnAll();
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_ZANZILS_GRAVEYARD_GAS_DAMAGE);
|
||||
|
||||
for (ObjectGuid guid : _toxicGasGUIDs)
|
||||
if (Creature* stalker = ObjectAccessor::GetCreature(*me, guid))
|
||||
stalker->RemoveAllAuras();
|
||||
|
||||
_DespawnAtEvade();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user