From 805757ba873bef4d0c5f38b760457ff99086dc9f Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Fri, 28 Feb 2025 16:10:46 -0600 Subject: [PATCH] [Bots] Fix unresponsive bots in groups upon group wipe (#4712) - Bots were failing to recall their group after dying due to the way it was grabbing the group from entity list. --- zone/bot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 1ff33c0f0..e27fa1c4f 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -3728,7 +3728,7 @@ bool Bot::Spawn(Client* botCharacterOwner) { SetVerifiedRaid(true); } } - else if (auto group = entity_list.GetGroupByMob(this)) { + else if (auto group = entity_list.GetGroupByMobName(GetName())) { // Safety Check to confirm we have a valid group auto owner = GetBotOwner(); if (owner && !group->IsGroupMember(owner->GetCleanName())) { @@ -3744,7 +3744,7 @@ bool Bot::Spawn(Client* botCharacterOwner) { if (RuleB(Bots, RunSpellTypeChecksOnSpawn)) { OwnerMessage("Running SpellType checks. There may be some spells that are mislabeled as incorrect. Use this as a loose guideline."); - CheckBotSpells(); //This runs through a serious of checks and outputs any spells that are set to the wrong spell type in the database + CheckBotSpells(); //This runs through a series of checks and outputs any spells that are set to the wrong spell type in the database } if (IsBotRanged()) {