Fix 2 silly typo´s in GroupHandler.

- No longer can any party member invite a new member
- Assinging raid roles is doable by raid assistant again

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-06-23 19:05:35 +02:00
parent 606b27eb6b
commit e75c39781f

View File

@@ -126,7 +126,7 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recv_data)
if (group)
{
// not have permissions for invite
if (group->isRaidGroup() && !group->IsLeader(GetPlayer()->GetGUID()) && !group->IsAssistant(GetPlayer()->GetGUID()))
if (!group->IsLeader(GetPlayer()->GetGUID() && group->IsAssistant(GetPlayer()->GetGUID())
{
SendPartyResult(PARTY_OP_INVITE, "", ERR_NOT_LEADER);
return;
@@ -597,7 +597,7 @@ void WorldSession::HandlePartyAssignmentOpcode(WorldPacket & recv_data)
/** error handling **/
uint64 senderGuid = GetPlayer()->GetGUID();
if (!group->IsLeader(senderGuid) && group->IsAssistant(senderGuid))
if (!group->IsLeader(senderGuid) && !group->IsAssistant(senderGuid))
return;
/********************/