mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Fix FleeAction
This commit is contained in:
@@ -1768,7 +1768,7 @@ const Movement::PointsArray MovementAction::SearchForBestPath(float x, float y,
|
|||||||
bool FleeAction::Execute(Event event)
|
bool FleeAction::Execute(Event event)
|
||||||
{
|
{
|
||||||
// return Flee(AI_VALUE(Unit*, "current target"));
|
// 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()
|
bool FleeAction::isUseful()
|
||||||
|
|||||||
Reference in New Issue
Block a user