From 5e7e5ce4173dee17f4ea6de6fda675c74b465d46 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:04:35 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/TheEye):=20A'lar=20stop=20casting?= =?UTF-8?q?=20flame=20buffet=20when=20any=20valid=20t=E2=80=A6=20(#18313)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Scripts/TheEye): A'lar stop casting flame buffet when any valid target is in range --- src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp index aa9a6ed6c..b44274018 100644 --- a/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp +++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp @@ -301,7 +301,7 @@ struct boss_alar : public BossAI { scheduler.Schedule(timer, GROUP_FLAME_BUFFET, [this](TaskContext context) { - if (!me->IsWithinMeleeRange(me->GetVictim()) && !me->isMoving()) + if (!me->SelectNearestTarget(me->GetCombatReach()) && !me->isMoving()) { DoCastVictim(SPELL_FLAME_BUFFET); }