From c05acf4f96e22d12826e3710fbf274c278ed94a9 Mon Sep 17 00:00:00 2001 From: Tereneckla Date: Tue, 26 Sep 2023 21:15:18 +0000 Subject: [PATCH] fix(Script/Karazhan): Netherspite resets threat after portal phase (#17362) * Update boss_netherspite.cpp * Update boss_netherspite.cpp * Update boss_netherspite.cpp --- .../scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp index f16654cfb..0adb88ffb 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp @@ -50,7 +50,7 @@ enum Portals enum Groups { PORTAL_PHASE = 0, - VANISH_PHASE = 1 + BANISH_PHASE = 1 }; const float PortalCoord[3][3] = @@ -192,7 +192,7 @@ struct boss_netherspite : public BossAI Talk(EMOTE_PHASE_PORTAL); } - scheduler.CancelGroup(VANISH_PHASE); + scheduler.CancelGroup(BANISH_PHASE); me->RemoveAurasDueToSpell(SPELL_BANISH_ROOT); me->RemoveAurasDueToSpell(SPELL_BANISH_VISUAL); SummonPortals(); @@ -236,8 +236,9 @@ struct boss_netherspite : public BossAI scheduler.Schedule(30s, [this](TaskContext) { SwitchToPortalPhase(); + DoResetThreatList(); return; - }).Schedule(10s, VANISH_PHASE, [this](TaskContext context) + }).Schedule(10s, BANISH_PHASE, [this](TaskContext context) { DoCastRandomTarget(SPELL_NETHERBREATH, 0, 40.0f, true); context.Repeat(5s, 7s);