From e085780c0a9e3ae28bfbca87d191ec501050282a Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:45:39 -0600 Subject: [PATCH] merge with cls cleanup --- zone/bot_commands/cast.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/bot_commands/cast.cpp b/zone/bot_commands/cast.cpp index 6b3a201a9..d02c9f2a9 100644 --- a/zone/bot_commands/cast.cpp +++ b/zone/bot_commands/cast.cpp @@ -495,7 +495,7 @@ void bot_command_cast(Client* c, const Seperator* sep) if (!aaType && !bySpellID) { //LogTestDebug("{}: {} says, 'Attempting {} [{}-{}] on {}'", __LINE__, bot_iter->GetCleanName(), c->GetSpellTypeNameByID(spellType), (subType != UINT16_MAX ? c->GetSubTypeNameByID(subType) : "Standard"), (subTargetType != UINT16_MAX ? c->GetSubTypeNameByID(subTargetType) : "Standard"), (newTar ? newTar->GetCleanName() : "NOBODY")); //deleteme - if (!SpellTypeRequiresTarget(spellType, bot_iter->GetClass())) { + if (!SpellTypeRequiresTarget(spellType)) { newTar = bot_iter; } @@ -511,7 +511,7 @@ void bot_command_cast(Client* c, const Seperator* sep) continue; } - if (IsBotSpellTypeDetrimental(spellType, bot_iter->GetClass()) && !bot_iter->IsAttackAllowed(newTar)) { + if (IsBotSpellTypeDetrimental(spellType) && !bot_iter->IsAttackAllowed(newTar)) { bot_iter->BotGroupSay( bot_iter, fmt::format(