From 27f33acfc1a5ba55f84e50885219c9297bab9d79 Mon Sep 17 00:00:00 2001 From: bash Date: Sat, 16 May 2026 20:22:20 +0200 Subject: [PATCH] Revert "feat(Core/RPG): Path to elevated quest giver from POI marker" This reverts commit 9ce874269d4a88cbada81bbfed69665400527240. --- src/Ai/World/Rpg/Action/NewRpgAction.cpp | 25 ++---------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/Ai/World/Rpg/Action/NewRpgAction.cpp b/src/Ai/World/Rpg/Action/NewRpgAction.cpp index 1d7dcdb0d..179612c39 100644 --- a/src/Ai/World/Rpg/Action/NewRpgAction.cpp +++ b/src/Ai/World/Rpg/Action/NewRpgAction.cpp @@ -531,29 +531,8 @@ bool NewRpgDoQuestAction::DoCompletedQuest(NewRpgInfo::DoQuest& data) botAI->rpgInfo.ChangeToIdle(); return true; } - // At the POI marker but quest giver still out of interact range - // (typical when the marker is at ground level and the NPC is - // elevated — e.g. Tenaron at the top of Aldrassil). Try pathing - // to the NPC's actual position so MoveFarTo can invoke travelnodes - // for routes the marker-anchored mmap probe can't find. - if (ObjectGuid qgGuid = ChooseNpcOrGameObjectToInteract(true, 200.0f)) - { - if (WorldObject* qg = ObjectAccessor::GetWorldObject(*bot, qgGuid)) - { - if (!bot->CanInteractWithQuestGiver(qg)) - { - WorldPosition npcPos(qg->GetMapId(), - qg->GetPositionX(), - qg->GetPositionY(), - qg->GetPositionZ()); - if (MoveFarTo(npcPos)) - return true; - } - } - } - - // No quest giver reachable — wander instead of false so we don't - // fall through to grind. + // waiting for SearchQuestGiverAndAcceptOrReward to pick up the NPC; + // wander instead of false so we don't fall through to grind return MoveRandomNear(15.0f); }