fix(Scripts/TheEye): A'lar stop casting flame buffet when any valid t… (#18313)

fix(Scripts/TheEye): A'lar stop casting flame buffet when any valid target is in range
This commit is contained in:
Andrew
2024-02-12 12:04:35 -03:00
committed by GitHub
parent cbb1defb8e
commit 5e7e5ce417

View File

@@ -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);
}