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