From d653989b03b09a02756dd9ac621af5c932187bb0 Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Mon, 3 Apr 2023 16:28:05 -0400 Subject: [PATCH] [Bug Fix] Fix issue with Bot Raid invites not working. (#3249) * [Bug Fix] Fix issue with Bot Raid invites not always working. * ordering --- zone/client_packet.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index ccb3a227e..c6e89406a 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -11760,17 +11760,14 @@ void Client::Handle_OP_RaidCommand(const EQApplicationPacket* app) { case RaidCommandInviteIntoExisting: case RaidCommandInvite: { - - Bot* player_to_invite = nullptr; - if (RuleB(Bots, Enabled) && entity_list.GetBotByBotName(raid_command_packet->player_name)) { + auto player_to_invite = entity_list.GetBotByBotName(raid_command_packet->player_name); + if (!player_to_invite) { break; } - Bot* player_to_invite = entity_list.GetBotByBotName(raid_command_packet->player_name); - Group* player_to_invite_group = player_to_invite->GetGroup(); - + auto player_to_invite_group = player_to_invite->GetGroup(); if (player_to_invite_group && player_to_invite_group->IsGroupMember(this)) { MessageString(Chat::Red, ALREADY_IN_PARTY); break;