From 0081d7673c04e86b97bccd7ef0285404f6811362 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 60505e4a3..c465b999b 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -2370,10 +2370,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; } } @@ -2665,7 +2665,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(); }