mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix real guild check
This commit is contained in:
parent
bd909ca92a
commit
660fd2a0c1
@ -3517,9 +3517,13 @@ bool PlayerbotAI::IsInRealGuild()
|
||||
return false;
|
||||
|
||||
Guild* guild = sGuildMgr->GetGuildById(bot->GetGuildId());
|
||||
if (!guild)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
uint32 leaderAccount = sCharacterCache->GetCharacterAccountIdByGuid(guild->GetLeaderGUID());
|
||||
if (!leaderAccount)
|
||||
return false;
|
||||
|
||||
return sPlayerbotAIConfig->IsInRandomAccountList(leaderAccount);
|
||||
return !(sPlayerbotAIConfig->IsInRandomAccountList(leaderAccount));
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user