From 221333a7bacd6d5c5abf1d33b862b1a1ffc89b23 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Sun, 8 Dec 2024 22:32:49 -0600 Subject: [PATCH] Add back !IsBotNonSpellFighter() check to the different CastCheck --- zone/bot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 24394d5b6..bdd3a32e5 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -2368,10 +2368,10 @@ void Bot::AI_Process() if (TryNonCombatMovementChecks(bot_owner, follow_mob, Goal)) { return; } - if (AI_HasSpells() && TryIdleChecks(fm_distance)) { + if (!IsBotNonSpellFighter() && AI_HasSpells() && TryIdleChecks(fm_distance)) { return; } - if (AI_HasSpells() && TryBardMovementCasts()) { + if (!IsBotNonSpellFighter() && AI_HasSpells() && TryBardMovementCasts()) { return; } } @@ -2663,7 +2663,7 @@ bool Bot::TryPursueTarget(float leash_distance, glm::vec3& Goal) { } // This is a mob that is fleeing either because it has been feared or is low on hitpoints - if (!HOLDING && AI_HasSpells()) { + if (!HOLDING && !IsBotNonSpellFighter() && AI_HasSpells()) { AI_PursueCastCheck(); }