diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp index 921ec057..f0dd4a80 100644 --- a/src/game/Object/Player.cpp +++ b/src/game/Object/Player.cpp @@ -18659,7 +18659,7 @@ PartyResult Player::CanUninviteFromGroup() const { return ERR_NOT_LEADER; } if (InBattleGround()) - { return ERR_INVITE_RESTRICTED; } + { return ERR_NOT_IN_GROUP; } // error message is not so appropriated but no other option for classic return ERR_PARTY_RESULT_OK; } diff --git a/src/game/Server/WorldSession.h b/src/game/Server/WorldSession.h index c07a8726..d122dbd7 100644 --- a/src/game/Server/WorldSession.h +++ b/src/game/Server/WorldSession.h @@ -70,14 +70,12 @@ enum PartyResult ERR_PARTY_RESULT_OK = 0, ERR_BAD_PLAYER_NAME_S = 1, ERR_TARGET_NOT_IN_GROUP_S = 2, - ERR_TARGET_NOT_IN_INSTANCE_S = 3, - ERR_GROUP_FULL = 4, - ERR_ALREADY_IN_GROUP_S = 5, - ERR_NOT_IN_GROUP = 6, - ERR_NOT_LEADER = 7, - ERR_PLAYER_WRONG_FACTION = 8, - ERR_IGNORING_YOU_S = 9, - ERR_INVITE_RESTRICTED = 13, + ERR_GROUP_FULL = 3, + ERR_ALREADY_IN_GROUP_S = 4, + ERR_NOT_IN_GROUP = 5, + ERR_NOT_LEADER = 6, + ERR_PLAYER_WRONG_FACTION = 7, + ERR_IGNORING_YOU_S = 8 }; enum TutorialDataState diff --git a/src/game/WorldHandlers/GroupHandler.cpp b/src/game/WorldHandlers/GroupHandler.cpp index 52b46ef2..4ed86449 100644 --- a/src/game/WorldHandlers/GroupHandler.cpp +++ b/src/game/WorldHandlers/GroupHandler.cpp @@ -88,7 +88,7 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket& recv_data) if (GetPlayer()->GetInstanceId() != 0 && player->GetInstanceId() != 0 && GetPlayer()->GetInstanceId() != player->GetInstanceId() && GetPlayer()->GetMapId() == player->GetMapId()) { - SendPartyResult(PARTY_OP_INVITE, membername, ERR_TARGET_NOT_IN_INSTANCE_S); + SendPartyResult(PARTY_OP_INVITE, membername, ERR_ALREADY_IN_GROUP_S); // error message is not so appropriated but no other option for classic return; } @@ -336,7 +336,7 @@ void WorldSession::HandleGroupDisbandOpcode(WorldPacket& /*recv_data*/) if (_player->InBattleGround()) { - SendPartyResult(PARTY_OP_INVITE, "", ERR_INVITE_RESTRICTED); + SendPartyResult(PARTY_OP_INVITE, "", ERR_NOT_LEADER); // error message is not so appropriated but no other option for classic return; }