mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
Correct pet buff type logic to catch DS/Resists with other spell effects in them
This commit is contained in:
@@ -32,10 +32,7 @@ bool Bot::AICastSpell(Mob* tar, uint8 chance, uint16 spell_type, uint16 sub_targ
|
||||
!AI_HasSpells() ||
|
||||
(spell_type == BotSpellTypes::Pet && tar != this) ||
|
||||
(IsPetBotSpellType(spell_type) && !tar->IsPet()) ||
|
||||
(spell_type == BotSpellTypes::Buff && tar->IsPet()) ||
|
||||
(spell_type == BotSpellTypes::InCombatBuffSong && tar->IsPet()) ||
|
||||
(spell_type == BotSpellTypes::OutOfCombatBuffSong && tar->IsPet()) ||
|
||||
(spell_type == BotSpellTypes::PreCombatBuffSong && tar->IsPet()) ||
|
||||
(!IsPetBotSpellType(spell_type) && tar->IsPet()) ||
|
||||
(!RuleB(Bots, AllowBuffingHealingFamiliars) && tar->IsFamiliar()) ||
|
||||
(tar->IsPet() && tar->IsCharmed() && spell_type == BotSpellTypes::PetBuffs && !RuleB(Bots, AllowCharmedPetBuffs)) ||
|
||||
(tar->IsPet() && tar->IsCharmed() && spell_type == BotSpellTypes::PetCures && !RuleB(Bots, AllowCharmedPetCures)) ||
|
||||
|
||||
Reference in New Issue
Block a user