Fix movement stuck

This commit is contained in:
Yunfan Li
2024-01-10 21:06:22 +08:00
parent 8b333a853b
commit 8bf944c024
3 changed files with 3 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ bool MoveToRpgTargetAction::Execute(Event event)
if (bot->IsWithinLOS(x, y, z))
couldMove = MoveNear(mapId, x, y, z, 0);
else
couldMove = MoveTo(mapId, x, y, z, false, false, true);
couldMove = MoveTo(mapId, x, y, z);
if (!couldMove && WorldPosition(mapId, x, y, z).distance(bot) > INTERACTION_DISTANCE)
{