mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
movement for fly & swimming
This commit is contained in:
@@ -87,7 +87,7 @@ bool FollowAction::isUseful()
|
||||
if (Formation::IsNullLocation(loc) || bot->GetMapId() != loc.GetMapId())
|
||||
return false;
|
||||
|
||||
distance = sServerFacade->GetDistance2d(bot, loc.GetPositionX(), loc.GetPositionY());
|
||||
distance = bot->GetDistance(loc.GetPositionX(), loc.GetPositionY(), loc.GetPositionZ());
|
||||
}
|
||||
|
||||
return sServerFacade->IsDistanceGreaterThan(distance, formation->GetMaxDistance());
|
||||
|
||||
Reference in New Issue
Block a user