From e5a130d67f43cacd1d4889168dba70b41f7e1cb7 Mon Sep 17 00:00:00 2001 From: Alethrion <54462221+Alethrion@users.noreply.github.com> Date: Sun, 14 Jan 2024 09:09:50 -0500 Subject: [PATCH] fix(Scripts/Karazhan): Add cleave and threat resets to Nightbane (#18133) * Threat_Reset_Cleave * Minor_Fix * Fix_Threat_Timing * Fix_Cleave_Targeting --- .../scripts/EasternKingdoms/Karazhan/boss_nightbane.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_nightbane.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_nightbane.cpp index e53e28c32..9393086c7 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_nightbane.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_nightbane.cpp @@ -26,6 +26,7 @@ enum Spells { // phase 1 SPELL_BELLOWING_ROAR = 39427, + SPELL_CLEAVE = 30131, SPELL_CHARRED_EARTH = 30129, SPELL_DISTRACTING_ASH = 30130, SPELL_SMOLDERING_BREATH = 30210, @@ -145,6 +146,10 @@ struct boss_nightbane : public BossAI { DoCastRandomTarget(SPELL_SEARING_CINDERS); context.Repeat(10s); + }).Schedule(1500ms, GROUP_GROUND, [this](TaskContext context) + { + DoCastVictim(SPELL_CLEAVE); + context.Repeat(1500ms, 45s); }); } @@ -154,6 +159,7 @@ struct boss_nightbane : public BossAI scheduler.Schedule(2s, GROUP_FLYING, [this](TaskContext) { + DoResetThreatList(); DoCastVictim(SPELL_RAIN_OF_BONES); _skeletonscheduler.Schedule(50ms, [this](TaskContext context) { @@ -320,6 +326,7 @@ struct boss_nightbane : public BossAI if (_movePhase >= 7) { me->SetDisableGravity(false); + DoResetThreatList(); me->HandleEmoteCommand(EMOTE_ONESHOT_LAND); me->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_IMMUNE_TO_PC); me->GetMotionMaster()->MovePoint(8, IntroWay[7][0], IntroWay[7][1], IntroWay[7][2]);