fix(Core/Travel): Pass GAMEOBJECT_TYPE_SPELLCASTER to GetGameObjectIfCanInteractWith

This commit is contained in:
bash 2026-05-30 20:07:51 +02:00
parent f4d308b684
commit 2597880d38

View File

@ -3533,7 +3533,7 @@ bool MovementAction::ExecuteTravelPlan(TravelPlan& state)
GameObject* go = botAI->GetGameObject(guid); GameObject* go = botAI->GetGameObject(guid);
if (!go || go->GetEntry() != portal.entry) if (!go || go->GetEntry() != portal.entry)
continue; continue;
if (!bot->GetGameObjectIfCanInteractWith(guid, MAX_GAMEOBJECT_TYPE)) if (!bot->GetGameObjectIfCanInteractWith(guid, GAMEOBJECT_TYPE_SPELLCASTER))
continue; continue;
WorldPacket packet(CMSG_GAMEOBJ_USE); WorldPacket packet(CMSG_GAMEOBJ_USE);