Core/Player: New PartyLevelReq setting
This commit is contained in:
1 parent
75cd39b66d
commit
56feab44d9
4 files changed
+17
No files matched your search
@@ -145,6 +145,12 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket& recvData)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!player->GetSocial()->HasFriend(GetPlayer()->GetGUID().GetCounter()) && player->getLevel() < sWorld->getIntConfig(CONFIG_PARTY_LEVEL_REQ))
|
||||
{
|
||||
SendPartyResult(PARTY_OP_INVITE, membername, ERR_INVITE_RESTRICTED);
|
||||
return;
|
||||
}
|
||||
|
||||
ObjectGuid invitedGuid = player->GetGUID();
|
||||
|
||||
Group* group = GetPlayer()->GetGroup();
|
||||
|
||||
Reference in new issue
Block a user