fix(Scripts/TheEye): make sure Al'ar doesn't cast anything during rebirt + phoenix spawning (#18540)

* init

* more

* uh
This commit is contained in:
Dan
2024-03-12 10:44:55 +01:00
committed by GitHub
parent 7ea2591c95
commit a7026e7e39
@@ -94,6 +94,10 @@ struct boss_alar : public BossAI
boss_alar(Creature* creature) : BossAI(creature, DATA_ALAR) boss_alar(Creature* creature) : BossAI(creature, DATA_ALAR)
{ {
me->SetCombatMovement(false); me->SetCombatMovement(false);
scheduler.SetValidator([this]
{
return !me->HasUnitState(UNIT_STATE_CASTING);
});
} }
void JustReachedHome() override void JustReachedHome() override
@@ -264,7 +268,7 @@ struct boss_alar : public BossAI
_noMelee = true; _noMelee = true;
scheduler.Schedule(2s, [this](TaskContext) scheduler.Schedule(2s, [this](TaskContext)
{ {
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 10.0f, true)) if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 110.0f, true))
{ {
SpawnPhoenixes(2, target); SpawnPhoenixes(2, target);
} }