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);
}).Schedule(3450ms, GROUP_ARCANE_ORB, [this](TaskContext context)
{
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, -18.0f, true))
me->CastSpell(target, SPELL_ARCANE_ORB, false);
else if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 20.0f, true))
me->CastSpell(target, SPELL_ARCANE_ORB, false);
if (!DoCastRandomTarget(SPELL_ARCANE_ORB, 0, -18.0f))
{
DoCastRandomTarget(SPELL_ARCANE_ORB, 0, 18.0f);
}
context.Repeat(2400ms, 6300ms);
}).Schedule(14350ms, [this](TaskContext context)
{