From 24ead8dffa41ae6c3a1794c07844339828e9600f Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 13 Nov 2018 23:55:49 +0100 Subject: [PATCH] Scripts/ZG: Zanzil's Toxic Gas will now properly remove all auras when he dies or evades --- .../scripts/EasternKingdoms/ZulGurub/boss_zanzil.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_zanzil.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_zanzil.cpp index 6dbf79c86d..1c4c0d14f6 100644 --- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_zanzil.cpp +++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_zanzil.cpp @@ -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(); }