1st commit

This commit is contained in:
UltraNix
2021-12-06 11:16:04 +01:00
parent 7b92ac90ae
commit 2cab3258bb
26 changed files with 557 additions and 19 deletions

View File

@@ -401,6 +401,22 @@ namespace lfg
return LFG_COMPATIBLES_WITH_LESS_PLAYERS;
}
#ifdef PLAYERBOTS
bool nonBotFound = false;
for (uint8 i = 0; i < 5 && check.guids[i]; ++i)
{
ObjectGuid guid = check.guids[i];
Player* player = ObjectAccessor::FindPlayer(guid);
if (guid.IsGroup() || (player && !player->GetPlayerbotAI()))
{
nonBotFound = true;
break;
}
}
if (!nonBotFound)
return LFG_INCOMPATIBLES_HAS_IGNORES;
#endif
proposal.queues = strGuids;
proposal.isNew = numLfgGroups != 1 || sLFGMgr->GetOldState(proposal.group) != LFG_STATE_DUNGEON;