mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
Revert "feat(Core/RPG): Path to elevated quest giver from POI marker"
This reverts commit 9ce874269d4a88cbada81bbfed69665400527240.
This commit is contained in:
parent
0be4cc256d
commit
27f33acfc1
@ -531,29 +531,8 @@ bool NewRpgDoQuestAction::DoCompletedQuest(NewRpgInfo::DoQuest& data)
|
|||||||
botAI->rpgInfo.ChangeToIdle();
|
botAI->rpgInfo.ChangeToIdle();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// At the POI marker but quest giver still out of interact range
|
// waiting for SearchQuestGiverAndAcceptOrReward to pick up the NPC;
|
||||||
// (typical when the marker is at ground level and the NPC is
|
// wander instead of false so we don't fall through to grind
|
||||||
// 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.
|
|
||||||
return MoveRandomNear(15.0f);
|
return MoveRandomNear(15.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user