[Bots] Add Support for AA bonuses that were missing. (#2764)

* [Bots] Add Support for AA bonuses that were missing.

* Fix GetFocusEffect, add virtual override to Bot to prevent using NPC
This commit is contained in:
Aeadoin
2023-01-19 23:45:09 -05:00
committed by GitHub
parent 900837f633
commit a16f21d6fe
5 changed files with 36 additions and 34 deletions
+5 -5
View File
@@ -3544,7 +3544,7 @@ bool Mob::HasProcs() const
}
}
if (IsClient()) {
if (IsClient() || IsBot()) {
for (int i = 0; i < MAX_AA_PROCS; i += 4) {
if (aabonuses.SpellProc[i]) {
return true;
@@ -3562,7 +3562,7 @@ bool Mob::HasDefensiveProcs() const
}
}
if (IsClient()) {
if (IsClient() || IsBot()) {
for (int i = 0; i < MAX_AA_PROCS; i += 4) {
if (aabonuses.DefensiveProc[i]) {
return true;
@@ -3598,7 +3598,7 @@ bool Mob::HasRangedProcs() const
}
}
if (IsClient()) {
if (IsClient() || IsBot()) {
for (int i = 0; i < MAX_AA_PROCS; i += 4) {
if (aabonuses.RangedProc[i]) {
return true;
@@ -4367,7 +4367,7 @@ void Mob::TryDefensiveProc(Mob *on, uint16 hand) {
}
//AA Procs
if (IsClient()){
if (IsClient() || IsBot()){
for (int i = 0; i < MAX_AA_PROCS; i += 4) {
int32 aa_rank_id = aabonuses.DefensiveProc[i + +SBIndex::COMBAT_PROC_ORIGIN_ID];
int32 aa_spell_id = aabonuses.DefensiveProc[i + SBIndex::COMBAT_PROC_SPELL_ID];
@@ -4625,7 +4625,7 @@ void Mob::TrySpellProc(const EQ::ItemInstance *inst, const EQ::ItemData *weapon,
}
//AA Melee and Ranged Procs
if (IsClient()) {
if (IsClient() || IsBot()) {
for (int i = 0; i < MAX_AA_PROCS; i += 4) {
int32 aa_rank_id = 0;