From 2317652d72a789935e01c75afa02b716b1dc6b09 Mon Sep 17 00:00:00 2001 From: bashermens <31279994+hermensbas@users.noreply.github.com> Date: Thu, 25 Dec 2025 03:00:21 +0100 Subject: [PATCH] Full revert: no xp bot when master has xp disabled (#1948) Will reimplement the feature later in time. --- src/RandomPlayerbotMgr.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index c76bbd71..a2fe72f6 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -2593,14 +2593,17 @@ void RandomPlayerbotMgr::Refresh(Player* bot) bool RandomPlayerbotMgr::IsRandomBot(Player* bot) { - if (!bot) - return false; + if (bot && GET_PLAYERBOT_AI(bot)) + { + if (GET_PLAYERBOT_AI(bot)->IsRealPlayer()) + return false; + } + if (bot) + { + return IsRandomBot(bot->GetGUID().GetCounter()); + } - PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot); - if (!botAI || botAI->IsRealPlayer()) - return false; - - return IsRandomBot(bot->GetGUID().GetCounter()); + return false; } bool RandomPlayerbotMgr::IsRandomBot(ObjectGuid::LowType bot)