Skip to content

Commit

Permalink
fix(Scripts/TheEye): make sure Al'ar doesn't cast anything during reb…
Browse files Browse the repository at this point in the history
…irt + phoenix spawning (azerothcore#18540)

* init

* more

* uh
  • Loading branch information
elthehablo authored Mar 12, 2024
1 parent 7ea2591 commit a7026e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ struct boss_alar : public BossAI
boss_alar(Creature* creature) : BossAI(creature, DATA_ALAR)
{
me->SetCombatMovement(false);
scheduler.SetValidator([this]
{
return !me->HasUnitState(UNIT_STATE_CASTING);
});
}

void JustReachedHome() override
Expand Down Expand Up @@ -264,7 +268,7 @@ struct boss_alar : public BossAI
_noMelee = true;
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);
}
Expand Down

0 comments on commit a7026e7

Please sign in to comment.