mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix FleeAction
This commit is contained in:
parent
cc5a3e4c76
commit
1b5c6ba06a
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user