From 02db94035e7adbdf8d214c80945b6194f8de799f Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Fri, 25 Oct 2024 07:55:52 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/BlackTemple):=20Prevent=20further?= =?UTF-8?q?=20code=20execution=20if=20Illidan=20e=E2=80=A6=20(#20292)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Scripts/BlackTemple): Prevent further code execution if Illidan evades during air phase --- src/server/scripts/Outland/BlackTemple/boss_illidan.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp index 7da0e3c52726e6..791ee4a888bdb0 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp @@ -521,7 +521,10 @@ struct boss_illidan_stormrage : public BossAI // Check for Phase Transition scheduler.Schedule(5s, [this](TaskContext context) { if (!SelectTargetFromPlayerList(150.0f)) + { EnterEvadeMode(EVADE_REASON_NO_HOSTILES); + return; + } summons.RemoveNotExisting(); if (!summons.HasEntry(NPC_FLAME_OF_AZZINOTH))