fix(Core/Groups): Level restriction on allowing raid groups (#12110)
This commit is contained in:
parent
345f3a4b5c
commit
73bd2b446c
4 changed files with 28 additions and 0 deletions
|
|
@ -621,6 +621,12 @@ void WorldSession::HandleGroupRaidConvertOpcode(WorldPacket& /*recvData*/)
|
|||
return;
|
||||
|
||||
/** error handling **/
|
||||
if (group->CheckLevelForRaid())
|
||||
{
|
||||
SendPartyResult(PARTY_OP_INVITE, "", ERR_RAID_DISALLOWED_BY_LEVEL);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!group->IsLeader(GetPlayer()->GetGUID()) || group->GetMembersCount() < 2 || group->isLFGGroup()) // pussywizard: not allowed for lfg groups, it is either raid from the beginning or not!
|
||||
return;
|
||||
/********************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue