[Command] Command autogear

This commit is contained in:
Yunfan Li
2024-05-12 00:22:13 +08:00
parent f475b94ae0
commit 2ca686fc9a
10 changed files with 65 additions and 4 deletions

View File

@@ -364,9 +364,9 @@ Player* PlayerbotHolder::GetPlayerBot(ObjectGuid::LowType lowGuid) const
void PlayerbotHolder::OnBotLogin(Player* const bot)
{
sPlayerbotsMgr->AddPlayerbotData(bot, true);
playerBots[bot->GetGUID()] = bot;
OnBotLoginInternal(bot);
playerBots[bot->GetGUID()] = bot;
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
if (!botAI) {