mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 18:58:21 +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)) {
|
if (TryNonCombatMovementChecks(bot_owner, follow_mob, Goal)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (AI_HasSpells() && TryIdleChecks(fm_distance)) {
|
if (!IsBotNonSpellFighter() && AI_HasSpells() && TryIdleChecks(fm_distance)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (AI_HasSpells() && TryBardMovementCasts()) {
|
if (!IsBotNonSpellFighter() && AI_HasSpells() && TryBardMovementCasts()) {
|
||||||
return;
|
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
|
// 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();
|
AI_PursueCastCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user