fix(Scripts/TheEye): make Void Reaver abilities ignore LOS (#18613)

* initial

* Update SpellInfoCorrections.cpp

* Update SpellInfoCorrections.cpp

* cast on nearby target on spellcastfail
This commit is contained in:
Dan
2024-03-26 22:23:02 +01:00
committed by GitHub
parent 7f2ebd253e
commit 3ea02712d4

View File

@@ -95,10 +95,10 @@ struct boss_void_reaver : public BossAI
context.Repeat(12100ms, 15800ms); context.Repeat(12100ms, 15800ms);
}).Schedule(3450ms, GROUP_ARCANE_ORB, [this](TaskContext context) }).Schedule(3450ms, GROUP_ARCANE_ORB, [this](TaskContext context)
{ {
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, -18.0f, true)) if (!DoCastRandomTarget(SPELL_ARCANE_ORB, 0, -18.0f))
me->CastSpell(target, SPELL_ARCANE_ORB, false); {
else if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 20.0f, true)) DoCastRandomTarget(SPELL_ARCANE_ORB, 0, 18.0f);
me->CastSpell(target, SPELL_ARCANE_ORB, false); }
context.Repeat(2400ms, 6300ms); context.Repeat(2400ms, 6300ms);
}).Schedule(14350ms, [this](TaskContext context) }).Schedule(14350ms, [this](TaskContext context)
{ {