fix(Core/Travel): Pass GAMEOBJECT_TYPE_SPELLCASTER to GetGameObjectIfCanInteractWith

This commit is contained in:
bash 2026-05-30 20:07:51 +02:00
parent e57dcf50c5
commit df77ea730d

View File

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