From aaa358bdbe7ee1bf69240d70707b0ce5b6c557eb Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 29 May 2023 21:55:41 +0800 Subject: [PATCH] refresh bug --- src/PlayerbotMgr.cpp | 2 +- src/RandomPlayerbotMgr.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PlayerbotMgr.cpp b/src/PlayerbotMgr.cpp index 9ab42eb3..4b7ddc45 100644 --- a/src/PlayerbotMgr.cpp +++ b/src/PlayerbotMgr.cpp @@ -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()); diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 46b84e66..4866f7c1 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -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)