[Command] Enable to cancel self command

This commit is contained in:
Yunfan Li
2024-07-19 13:43:18 +08:00
parent 3716de4c96
commit fce0f431e1
4 changed files with 39 additions and 26 deletions

View File

@@ -191,7 +191,7 @@ PlayerbotAI::~PlayerbotAI()
delete aiObjectContext;
if (bot)
sPlayerbotsMgr->RemovePlayerBotData(bot->GetGUID());
sPlayerbotsMgr->RemovePlayerBotData(bot->GetGUID(), true);
}
void PlayerbotAI::UpdateAI(uint32 elapsed, bool minimal)