From 4e385304c0e6dcf159f66c83df2b5962e3749fd3 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sun, 16 Jun 2024 05:32:04 -0300 Subject: [PATCH] fix(Scripts/BlackTemple): Fix najentus enrage not reseting (#19074) --- .../Outland/BlackTemple/boss_warlord_najentus.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Outland/BlackTemple/boss_warlord_najentus.cpp b/src/server/scripts/Outland/BlackTemple/boss_warlord_najentus.cpp index 0cdc8d5b9..101122b56 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_warlord_najentus.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_warlord_najentus.cpp @@ -43,13 +43,20 @@ enum Spells enum Events { - EVENT_TALK_CHECK = 1 + EVENT_TALK_CHECK = 1, + EVENT_ENRAGE = 2 }; struct boss_najentus : public BossAI { boss_najentus(Creature* creature) : BossAI(creature, DATA_HIGH_WARLORD_NAJENTUS), _canTalk(true) { } + void Reset() override + { + _Reset(); + me->m_Events.CancelEventGroup(EVENT_ENRAGE); + } + void JustEngagedWith(Unit* who) override { _canTalk = true; @@ -60,7 +67,7 @@ struct boss_najentus : public BossAI me->m_Events.AddEventAtOffset([this] { Talk(SAY_ENRAGE); DoCastSelf(SPELL_BERSERK, true); - }, 8min); + }, 8min, EVENT_ENRAGE); ScheduleTimedEvent(25s, 100s, [&] {