mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
Add back !IsBotNonSpellFighter() check to the different CastCheck
This commit is contained in:
+3
-3
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user