mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/DungeonFinder): Premade groups should be treated as normal groups. (#8520)
Fixes #8339
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user