mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Scripts/TheEye): Al'ar don't attack other players if the onlyone tank died (#22118)
This commit is contained in:
@@ -346,7 +346,7 @@ struct boss_alar : public BossAI
|
||||
scheduler.Schedule(timer, GROUP_FLAME_BUFFET, [this](TaskContext context)
|
||||
{
|
||||
if (!me->SelectNearestTarget(me->GetCombatReach()) && !me->isMoving())
|
||||
DoCastVictim(SPELL_FLAME_BUFFET);
|
||||
DoCastAOE(SPELL_FLAME_BUFFET);
|
||||
|
||||
context.Repeat(2s);
|
||||
});
|
||||
@@ -372,11 +372,11 @@ struct boss_alar : public BossAI
|
||||
{
|
||||
_transitionScheduler.Update(diff);
|
||||
|
||||
scheduler.Update(diff);
|
||||
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
scheduler.Update(diff);
|
||||
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user