Core/Groups: Allow inviting members of opposite faction with GM mode on.

Closes #510
This commit is contained in:
Shocker
2011-03-26 05:10:18 +02:00
parent b9af020e72
commit ab83c36687

View File

@@ -86,7 +86,7 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recv_data)
return;
// can't group with
if (!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP) && GetPlayer()->GetTeam() != player->GetTeam())
if (!GetPlayer()->isGameMaster() && !sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP) && GetPlayer()->GetTeam() != player->GetTeam())
{
SendPartyResult(PARTY_OP_INVITE, membername, ERR_PLAYER_WRONG_FACTION);
return;