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,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)