Add back !IsBotNonSpellFighter() check to the different CastCheck

This commit is contained in:
nytmyr
2024-12-08 22:32:49 -06:00
parent 30f1960003
commit 0081d7673c
+3 -3
View File
@@ -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();
}