Fix FleeAction

This commit is contained in:
Yunfan Li
2024-12-31 21:53:16 +08:00
parent cc5a3e4c76
commit 1b5c6ba06a

View File

@@ -1768,7 +1768,7 @@ const Movement::PointsArray MovementAction::SearchForBestPath(float x, float y,
bool FleeAction::Execute(Event event)
{
// return Flee(AI_VALUE(Unit*, "current target"));
return MoveAway(AI_VALUE(Unit*, "current target"), true);
return MoveAway(AI_VALUE(Unit*, "current target"), sPlayerbotAIConfig->fleeDistance, true);
}
bool FleeAction::isUseful()