Skip to content

Commit

Permalink
Merge remote-tracking branch 'azerothcore/master' into Playerbot
Browse files Browse the repository at this point in the history
  • Loading branch information
evrydayjunglist committed Mar 12, 2024
2 parents 1f87645 + 6b5289f commit 26ccce0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ struct boss_high_astromancer_solarian : public BossAI
scheduler.Schedule(3650ms, [this](TaskContext context)
{
me->GetMotionMaster()->Clear();
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 40.0f, true, true, -SPELL_WRATH_OF_THE_ASTROMANCER))
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 40.0f, false, true, -SPELL_WRATH_OF_THE_ASTROMANCER))
{
DoCast(target, SPELL_ARCANE_MISSILES);
}
Expand Down

0 comments on commit 26ccce0

Please sign in to comment.