From 8a3a91070b74b2c6f4f751c21b83f9e28e221b39 Mon Sep 17 00:00:00 2001 From: bash Date: Sat, 30 May 2026 23:20:40 +0200 Subject: [PATCH] fix(Core/Movement): Force graph routing for vertical moves on map 609 (Ebon Hold) --- src/Ai/Base/Actions/MovementActions.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Ai/Base/Actions/MovementActions.cpp b/src/Ai/Base/Actions/MovementActions.cpp index 4711046d3..6eaa5ecd0 100644 --- a/src/Ai/Base/Actions/MovementActions.cpp +++ b/src/Ai/Base/Actions/MovementActions.cpp @@ -3061,9 +3061,15 @@ TravelPath MovementAction::ResolveMovePath(WorldPosition const& startPos, return lastMove.lastPath; // 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 = startPos.GetMapId() != endPos.GetMapId() || - totalDistance > sPlayerbotAIConfig.sightDistance; + totalDistance > sPlayerbotAIConfig.sightDistance || + (startPos.GetMapId() == 609 && + std::fabs(startPos.GetPositionZ() - endPos.GetPositionZ()) > 20.0f); TravelPath out;