From 5de72999fe97dc5eb42f88a3e04ad4618f600782 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Mon, 20 Jan 2025 19:29:57 -0600 Subject: [PATCH] Add GetParentSpellType when checking spelltypes for idle, engaged, pursue CastChecks. --- zone/botspellsai.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/botspellsai.cpp b/zone/botspellsai.cpp index bea80d337..53d251135 100644 --- a/zone/botspellsai.cpp +++ b/zone/botspellsai.cpp @@ -648,7 +648,7 @@ bool Bot::AI_PursueCastCheck() { continue; } - if (AIBot_spells_by_type[current_cast.spellType].empty()) { + if (AIBot_spells_by_type[current_cast.spellType].empty() && AIBot_spells_by_type[GetParentSpellType(current_cast.spellType)].empty()) { continue; } @@ -724,7 +724,7 @@ bool Bot::AI_IdleCastCheck() { continue; } - if (AIBot_spells_by_type[current_cast.spellType].empty()) { + if (AIBot_spells_by_type[current_cast.spellType].empty() && AIBot_spells_by_type[GetParentSpellType(current_cast.spellType)].empty()) { continue; } @@ -784,7 +784,7 @@ bool Bot::AI_EngagedCastCheck() { continue; } - if (AIBot_spells_by_type[current_cast.spellType].empty()) { + if (AIBot_spells_by_type[current_cast.spellType].empty() && AIBot_spells_by_type[GetParentSpellType(current_cast.spellType)].empty()) { continue; }