[Bots] Fix Bards not casting (#4638)

This commit is contained in:
nytmyr 2025-02-03 14:40:04 -06:00 committed by GitHub
parent aa423e398a
commit e3ab90695f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2508,7 +2508,7 @@ void Bot::AI_Process()
if (!IsBotNonSpellFighter() && AI_HasSpells() && TryIdleChecks(fm_distance)) {
return;
}
if (!IsBotNonSpellFighter() && AI_HasSpells() && TryBardMovementCasts()) {
if (GetClass() == Class::Bard && AI_HasSpells() && TryBardMovementCasts()) {
return;
}
}

View File

@ -809,7 +809,7 @@ public:
bool IsBotWISCaster() { return IsWISCasterClass(GetClass()); }
bool IsBotSpellFighter() { return IsSpellFighterClass(GetClass()); }
bool IsBotFighter() { return IsFighterClass(GetClass()); }
bool IsBotNonSpellFighter() { return IsNonSpellFighterClass(GetClass()); }
bool IsBotNonSpellFighter() { return (GetClass() == Class::Bard ? false : IsNonSpellFighterClass(GetClass())); }
uint8 GetBotClass() { return GetClass(); }
int GetRawACNoShield(int &shield_ac);