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)
|
scheduler.Schedule(timer, GROUP_FLAME_BUFFET, [this](TaskContext context)
|
||||||
{
|
{
|
||||||
if (!me->SelectNearestTarget(me->GetCombatReach()) && !me->isMoving())
|
if (!me->SelectNearestTarget(me->GetCombatReach()) && !me->isMoving())
|
||||||
DoCastVictim(SPELL_FLAME_BUFFET);
|
DoCastAOE(SPELL_FLAME_BUFFET);
|
||||||
|
|
||||||
context.Repeat(2s);
|
context.Repeat(2s);
|
||||||
});
|
});
|
||||||
@@ -372,11 +372,11 @@ struct boss_alar : public BossAI
|
|||||||
{
|
{
|
||||||
_transitionScheduler.Update(diff);
|
_transitionScheduler.Update(diff);
|
||||||
|
|
||||||
|
scheduler.Update(diff);
|
||||||
|
|
||||||
if (!UpdateVictim())
|
if (!UpdateVictim())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
scheduler.Update(diff);
|
|
||||||
|
|
||||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user