mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Fix zone crash when a group member raid invites own group leader
This commit is contained in:
parent
c82d08cf11
commit
43da07fb55
@ -11130,6 +11130,11 @@ void Client::Handle_OP_RaidCommand(const EQApplicationPacket *app)
|
||||
break;
|
||||
}
|
||||
|
||||
if (player_to_invite_group && player_to_invite_group->IsGroupMember(this)) {
|
||||
MessageString(Chat::Red, ALREADY_IN_PARTY);
|
||||
break;
|
||||
}
|
||||
|
||||
if (player_to_invite_group && !player_to_invite_group->IsLeader(player_to_invite)) {
|
||||
Message(Chat::Red, "You can only invite an ungrouped player or group leader to join your raid.");
|
||||
break;
|
||||
|
||||
@ -417,6 +417,7 @@
|
||||
#define TARGET_PLAYER_FOR_GUILD_STATUS 12260
|
||||
#define GROUP_INVITEE_NOT_FOUND 12268 //You must target a player or use /invite <name> to invite someone to your group.
|
||||
#define GROUP_INVITEE_SELF 12270 //12270 You cannot invite yourself.
|
||||
#define ALREADY_IN_PARTY 12272 //That person is already in your party.
|
||||
#define NO_LONGER_HIDDEN 12337 //You are no longer hidden.
|
||||
#define STOP_SNEAKING 12338 //You stop sneaking
|
||||
#define NOT_IN_CONTROL 12368 //You do not have control of yourself right now.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user