feat(Core/Player): PartyLevelReq invite settings (#1919)
- Minimum level at which players can invite to group setting
This commit is contained in:
parent
3abbaaec57
commit
97e65bd447
4 changed files with 17 additions and 0 deletions
|
|
@ -110,6 +110,12 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket& recvData)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!player->GetSocial()->HasFriend(GetPlayer()->GetGUID()) && GetPlayer()->getLevel() < sWorld->getIntConfig(CONFIG_PARTY_LEVEL_REQ))
|
||||
{
|
||||
SendPartyResult(PARTY_OP_INVITE, player->GetName(), ERR_INVITE_RESTRICTED);
|
||||
return;
|
||||
}
|
||||
|
||||
Group* group = GetPlayer()->GetGroup();
|
||||
if (group && (group->isBGGroup() || group->isBFGroup()))
|
||||
group = GetPlayer()->GetOriginalGroup();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue