Core/Groups: Raid leader can't be kicked from group by raid assistants
This commit is contained in:
@@ -277,6 +277,12 @@ void WorldSession::HandleGroupUninviteGuidOpcode(WorldPacket & recv_data)
|
|||||||
if (!grp)
|
if (!grp)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (grp->IsLeader(guid))
|
||||||
|
{
|
||||||
|
SendPartyResult(PARTY_OP_UNINVITE, "", ERR_NOT_LEADER);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (grp->IsMember(guid))
|
if (grp->IsMember(guid))
|
||||||
{
|
{
|
||||||
Player::RemoveFromGroup(grp, guid, GROUP_REMOVEMETHOD_KICK, GetPlayer()->GetGUID(), reason.c_str());
|
Player::RemoveFromGroup(grp, guid, GROUP_REMOVEMETHOD_KICK, GetPlayer()->GetGUID(), reason.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user