From fb1d356af98d7399f462055ab31d8e17847ad416 Mon Sep 17 00:00:00 2001 From: Tereneckla Date: Sat, 23 Sep 2023 01:24:41 +0000 Subject: [PATCH] fix(Script/Karazhan): Voidzones should only happen in Portal Phase (#17315) Update boss_netherspite.cpp --- .../Karazhan/boss_netherspite.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp index a1f03421e..46f16be95 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp @@ -218,13 +218,17 @@ struct boss_netherspite : public BossAI } }).Schedule(10s, PORTAL_PHASE, [this](TaskContext context) { - UpdatePortals(); - context.Repeat(1s); + UpdatePortals(); + context.Repeat(1s); }).Schedule(10s, PORTAL_PHASE, [this](TaskContext context) { - DoCastSelf(SPELL_EMPOWERMENT); - me->AddAura(SPELL_NETHERBURN_AURA, me); - context.Repeat(90s); + DoCastSelf(SPELL_EMPOWERMENT); + me->AddAura(SPELL_NETHERBURN_AURA, me); + context.Repeat(90s); + }).Schedule(15s, PORTAL_PHASE, [this](TaskContext context) + { + DoCastRandomTarget(SPELL_VOIDZONE, 1, 45.0f, true, true); + context.Repeat(15s); }); Talk(EMOTE_PHASE_PORTAL); } @@ -267,11 +271,7 @@ struct boss_netherspite : public BossAI HandleDoors(false); SwitchToPortalPhase(); DoZoneInCombat(); - scheduler.Schedule(15s, [this](TaskContext context) - { - DoCastRandomTarget(SPELL_VOIDZONE, 1, 45.0f, true, true); - context.Repeat(15s); - }).Schedule(9min, [this](TaskContext /*context*/) + scheduler.Schedule(9min, [this](TaskContext /*context*/) { if (!berserk) {