refresh bug

This commit is contained in:
Yunfan Li
2023-05-29 21:55:41 +08:00
parent a3cf9134f8
commit aaa358bdbe
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ void PlayerbotHolder::HandlePlayerBotLoginCallback(PlayerbotLoginQueryHolder con
ChatHandler ch(masterSession);
ch.PSendSysMessage("You are not allowed to control bot {}", bot->GetName());
}
OnBotLogin(bot);
LogoutPlayerBot(bot->GetGUID());
LOG_ERROR("playerbots", "Attempt to add not allowed bot {}, please try to reset all random bots", bot->GetName());

View File

@@ -1198,7 +1198,7 @@ void RandomPlayerbotMgr::RandomTeleportForLevel(Player* bot)
uint8 race = bot->getRace();
LOG_INFO("playerbots", "Random teleporting bot {} for RPG ({} locations available)", bot->GetName().c_str(), rpgLocsCacheLevel[race][level].size());
RandomTeleport(bot, rpgLocsCacheLevel[race][level]);
Refresh(bot);
// Refresh(bot);
}
void RandomPlayerbotMgr::RandomTeleport(Player* bot)