From 9d5b679fc49a2d4bba38733e7cf95f5fd1a48872 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:04:07 -0600 Subject: [PATCH] Add more checks for CommandedSubTypes::AETarget --- zone/bot.cpp | 2 +- zone/botspellsai.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index f803ffce4..ef5012ce3 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -11894,7 +11894,7 @@ bool Bot::IsValidSpellTypeSubType(uint16 spellType, uint16 subType, uint16 spell break; case CommandedSubTypes::AETarget: - if (IsAnyAESpell(spell_id)) { + if (IsAnyAESpell(spell_id) && !IsGroupSpell(spell_id)) { return true; } diff --git a/zone/botspellsai.cpp b/zone/botspellsai.cpp index 93c38ccf6..c6ac70397 100644 --- a/zone/botspellsai.cpp +++ b/zone/botspellsai.cpp @@ -216,7 +216,7 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint16 spellType, uint16 subTarge break; } - std::list botSpellList = GetPrioritizedBotSpellsBySpellType(this, spellType, tar, IsAEBotSpellType(spellType), subTargetType, subType); + std::list botSpellList = GetPrioritizedBotSpellsBySpellType(this, spellType, tar, (IsAEBotSpellType(spellType) || subTargetType == CommandedSubTypes::AETarget), subTargetType, subType); for (const auto& s : botSpellList) {