From a7026e7e39ef139626def5364d0b12aefd208ddd Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Tue, 12 Mar 2024 10:44:55 +0100 Subject: [PATCH 1/2] fix(Scripts/TheEye): make sure Al'ar doesn't cast anything during rebirt + phoenix spawning (#18540) * init * more * uh --- src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp index 1b2fe29e8bb023..fc18c2cde05f4f 100644 --- a/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp +++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp @@ -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 @@ -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); } From 6b5289f373de503061e0acb0f6194abe11f1e640 Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Tue, 12 Mar 2024 10:46:12 +0100 Subject: [PATCH 2/2] fix(Scripts/TheEye): allow Solarian to cast on pets/totems (#18539) init --- src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp index b497b00ed03d9b..85726a9b442bb8 100644 --- a/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp +++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp @@ -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); }