trainer learn command

This commit is contained in:
Yunfan Li
2023-10-28 22:34:27 +08:00
parent d48670b545
commit 9701af6f95
4 changed files with 117 additions and 113 deletions

View File

@@ -38,7 +38,7 @@ bool UseItemAction::Execute(Event event)
bool UseItemAction::UseGameObject(ObjectGuid guid)
{
GameObject* go = botAI->GetGameObject(guid);
if (!go || !go->isSpawned() || go->GetGoState() != GO_STATE_READY)
if (!go || !go->isSpawned()/* || go->GetGoState() != GO_STATE_READY*/)
return false;
go->Use(bot);