mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 20:13:48 +00:00
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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user