mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
fix(Core/Movement): Force graph routing for vertical moves on map 609 (Ebon Hold)
This commit is contained in:
parent
496f9cc3d5
commit
37b518aafe
@ -3061,9 +3061,15 @@ TravelPath MovementAction::ResolveMovePath(WorldPosition const& startPos,
|
|||||||
return lastMove.lastPath;
|
return lastMove.lastPath;
|
||||||
|
|
||||||
// Long path = cross-map or beyond sight; otherwise pure mmap probe.
|
// Long path = cross-map or beyond sight; otherwise pure mmap probe.
|
||||||
|
// Map 609 (Ebon Hold, DK starter) special-case: the area is stacked
|
||||||
|
// vertically, so a horizontally-close target on a different floor
|
||||||
|
// needs graph routing through the spiral stairs even when within
|
||||||
|
// sight distance.
|
||||||
bool const needsLongPath =
|
bool const needsLongPath =
|
||||||
startPos.GetMapId() != endPos.GetMapId() ||
|
startPos.GetMapId() != endPos.GetMapId() ||
|
||||||
totalDistance > sPlayerbotAIConfig.sightDistance;
|
totalDistance > sPlayerbotAIConfig.sightDistance ||
|
||||||
|
(startPos.GetMapId() == 609 &&
|
||||||
|
std::fabs(startPos.GetPositionZ() - endPos.GetPositionZ()) > 20.0f);
|
||||||
|
|
||||||
TravelPath out;
|
TravelPath out;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user