mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
fix(Scripts/TempleOfAhnQiraj): Improve Veklor pathing (#13682)
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user