From 68f3a59f7826b98b7980325483037665b5984101 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Mon, 18 Nov 2024 04:23:46 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/ZulAman):=20Narolakk=20dont=20engag?= =?UTF-8?q?e=20after=20wave=20dies=20and=20attack=E2=80=A6=20(#20615)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(Scripts/ZulAman): Narolakk dont engage after wave dies and attackable * Update boss_nalorakk.cpp --- .../EasternKingdoms/ZulAman/boss_nalorakk.cpp | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp index b3c9d4398..e7afe0b9f 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp @@ -111,7 +111,6 @@ struct boss_nalorakk : public BossAI _phase = PHASE_START_COMBAT; me->SetReactState(REACT_AGGRESSIVE); _active = false; - } } @@ -199,22 +198,12 @@ struct boss_nalorakk : public BossAI me->GetCreaturesWithEntryInRange(_waveList, 25.0f, NPC_AMANISHI_MEDICINE_MAN); GroupedAttack(_waveList); Talk(SAY_WAVE4); - _introScheduler.Schedule(5s, GROUP_CHECK_DEAD, [this](TaskContext context) - { - if (CheckFullyDeadGroup(_waveList)) - if (_phase == PHASE_SEND_GUARDS_4) - { - _introScheduler.CancelGroup(GROUP_CHECK_DEAD); - me->SetHomePosition(me->GetPosition()); - me->SetImmuneToAll(false); - me->SetReactState(REACT_AGGRESSIVE); - me->SetInCombatWithZone(); - _waveList.clear(); - _phase = PHASE_START_COMBAT; - _ranIntro = true; - } - context.Repeat(5s); - }); + _waveList.clear(); + _phase = PHASE_START_COMBAT; + _ranIntro = true; + me->SetImmuneToAll(false); + me->SetReactState(REACT_AGGRESSIVE); + me->SetHomePosition(me->GetPosition()); break; } }