mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
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:
@@ -301,7 +301,7 @@ struct boss_alar : public BossAI
|
|||||||
{
|
{
|
||||||
scheduler.Schedule(timer, GROUP_FLAME_BUFFET, [this](TaskContext context)
|
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);
|
DoCastVictim(SPELL_FLAME_BUFFET);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user