mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 15:08:22 +00:00
[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:
+5
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user