Make backwards movement for flee

This commit is contained in:
Yunfan Li
2024-12-29 23:21:03 +08:00
parent adc0d6e72c
commit 79a5fdd7c1
5 changed files with 52 additions and 19 deletions

View File

@@ -33,7 +33,7 @@ bool FollowAction::Execute(Event event)
MovementPriority priority = botAI->GetState() == BOT_STATE_COMBAT ? MovementPriority::MOVEMENT_COMBAT : MovementPriority::MOVEMENT_NORMAL;
moved = MoveTo(loc.GetMapId(), loc.GetPositionX(), loc.GetPositionY(), loc.GetPositionZ(), false, false, false,
true, priority);
true, priority, true);
}
if (Pet* pet = bot->GetPet())