fix(Core/DungeonFinder): Premade groups should be treated as normal groups. (#8520)

Fixes #8339
This commit is contained in:
UltraNix
2021-10-20 10:29:24 +02:00
committed by GitHub
parent fba0797f6b
commit 1ec612e65b
6 changed files with 50 additions and 16 deletions

View File

@@ -356,13 +356,13 @@ void WorldSession::HandleGroupUninviteGuidOpcode(WorldPacket& recvData)
return;
// Xinef: do not allow to kick with empty reason, this will resend packet with given reason
if (grp->isLFGGroup() && reason.empty())
if (grp->isLFGGroup(true) && reason.empty())
{
SendPartyResult(PARTY_OP_UNINVITE, name, ERR_VOTE_KICK_REASON_NEEDED);
return;
}
if (grp->IsLeader(guid) && !grp->isLFGGroup())
if (grp->IsLeader(guid) && !grp->isLFGGroup(true))
{
SendPartyResult(PARTY_OP_UNINVITE, name, ERR_NOT_LEADER);
return;
@@ -489,7 +489,7 @@ void WorldSession::HandleLootMethodOpcode(WorldPacket& recvData)
/** error handling **/
// Xinef: Check if group is LFG
if (!group->IsLeader(GetPlayer()->GetGUID()) || group->isLFGGroup())
if (!group->IsLeader(GetPlayer()->GetGUID()) || group->isLFGGroup(true))
return;
if (lootMethod > NEED_BEFORE_GREED)