mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
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)
|
||||
return;
|
||||
|
||||
if (grp->IsLeader(guid))
|
||||
{
|
||||
SendPartyResult(PARTY_OP_UNINVITE, "", ERR_NOT_LEADER);
|
||||
return;
|
||||
}
|
||||
|
||||
if (grp->IsMember(guid))
|
||||
{
|
||||
Player::RemoveFromGroup(grp, guid, GROUP_REMOVEMETHOD_KICK, GetPlayer()->GetGUID(), reason.c_str());
|
||||
|
||||
Reference in New Issue
Block a user