mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
fix(Core/Travel): Pass GAMEOBJECT_TYPE_SPELLCASTER to GetGameObjectIfCanInteractWith
This commit is contained in:
parent
f4d308b684
commit
2597880d38
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user