Full revert: no xp bot when master has xp disabled (#1948)

Will reimplement the feature later in time.
This commit is contained in:
bashermens
2025-12-25 03:00:21 +01:00
committed by GitHub
parent 1fcd6c5cda
commit 2317652d72

View File

@@ -2593,16 +2593,19 @@ void RandomPlayerbotMgr::Refresh(Player* bot)
bool RandomPlayerbotMgr::IsRandomBot(Player* bot) bool RandomPlayerbotMgr::IsRandomBot(Player* bot)
{ {
if (!bot) if (bot && GET_PLAYERBOT_AI(bot))
{
if (GET_PLAYERBOT_AI(bot)->IsRealPlayer())
return false; return false;
}
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot); if (bot)
if (!botAI || botAI->IsRealPlayer()) {
return false;
return IsRandomBot(bot->GetGUID().GetCounter()); return IsRandomBot(bot->GetGUID().GetCounter());
} }
return false;
}
bool RandomPlayerbotMgr::IsRandomBot(ObjectGuid::LowType bot) bool RandomPlayerbotMgr::IsRandomBot(ObjectGuid::LowType bot)
{ {
ObjectGuid guid = ObjectGuid::Create<HighGuid::Player>(bot); ObjectGuid guid = ObjectGuid::Create<HighGuid::Player>(bot);