fix(Scripts/TempleOfAhnQiraj): Improve Veklor pathing (#13682)
This commit is contained in:
@@ -340,6 +340,19 @@ struct boss_veklor : public boss_twinemperorsAI
|
|||||||
_scheduler
|
_scheduler
|
||||||
.Schedule(4s, [this](TaskContext context)
|
.Schedule(4s, [this](TaskContext context)
|
||||||
{
|
{
|
||||||
|
if (me->GetVictim())
|
||||||
|
{
|
||||||
|
if (!me->IsWithinDist(me->GetVictim(), 45.0f))
|
||||||
|
{
|
||||||
|
me->GetMotionMaster()->MoveChase(me->GetVictim(), 45.0f, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
me->StopMoving();
|
||||||
|
me->GetMotionMaster()->Clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DoCastVictim(SPELL_SHADOW_BOLT);
|
DoCastVictim(SPELL_SHADOW_BOLT);
|
||||||
context.Repeat(2500ms);
|
context.Repeat(2500ms);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user