fix(Core/Unit): rework Walk/Run mode (#22988)
Co-authored-by: sudlud <sudlud@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
c28f635408
commit
10d5a3c553
104 changed files with 373 additions and 362 deletions
|
|
@ -592,7 +592,7 @@ struct npc_minigob_manabonk : public ScriptedAI
|
|||
case EVENT_MOVE:
|
||||
{
|
||||
Position pos = me->GetRandomNearPosition((urand(15, 40)));
|
||||
me->GetMotionMaster()->MovePoint(0, pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), true);
|
||||
me->GetMotionMaster()->MovePoint(0, pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ());
|
||||
}
|
||||
events.ScheduleEvent(EVENT_DESPAWN_VISUAL, 3s);
|
||||
events.ScheduleEvent(EVENT_DESPAWN, 4s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue