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
e57dcf50c5
commit
df77ea730d
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user