fix(Core/Movement): Force graph routing for vertical moves on map 609 (Ebon Hold)

This commit is contained in:
bash 2026-05-30 23:20:40 +02:00
parent 496f9cc3d5
commit 37b518aafe

View File

@ -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;