fix(Scripts/TempleOfAhnQiraj): Improve Veklor pathing (#13682)
This commit is contained in:
parent
9db323b6c4
commit
d9ab07d5d2
1 changed files with 13 additions and 0 deletions
|
|
@ -340,6 +340,19 @@ struct boss_veklor : public boss_twinemperorsAI
|
|||
_scheduler
|
||||
.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);
|
||||
context.Repeat(2500ms);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue