mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Full revert: no xp bot when master has xp disabled (#1948)
Will reimplement the feature later in time.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user