From 9b438731fd2ef60dbb399a089c40282455222c5d Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Sun, 17 Sep 2023 12:38:53 +0200 Subject: [PATCH] fix(Scripts/Karazhan): remove redundant spellcasting check on Netherspite to ensure he moves back to phase 1 (#17269) initial --- .../EasternKingdoms/Karazhan/boss_netherspite.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp index a86c05a0c..a1f03421e 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp @@ -237,13 +237,10 @@ struct boss_netherspite : public BossAI DoCastSelf(SPELL_BANISH_VISUAL, true); DoCastSelf(SPELL_BANISH_ROOT, true); DestroyPortals(); - scheduler.Schedule(30s, [this](TaskContext /*context*/) + scheduler.Schedule(30s, [this](TaskContext) { - if (!me->IsNonMeleeSpellCast(false)) - { - SwitchToPortalPhase(); - return; - } + SwitchToPortalPhase(); + return; }).Schedule(10s, VANISH_PHASE, [this](TaskContext context) { DoCastRandomTarget(SPELL_NETHERBREATH, 0, 40.0f, true);