[Bots] Flag all buffs with SE_DamageShield as Damage Shield (#4833)

- Certain resist spells have a DS bonus on them and can be casted as a resist rather than a damage shield. This forces anything with a damage shield as a damage shield buff.
This commit is contained in:
nytmyr 2025-04-09 21:32:38 -05:00 committed by GitHub
parent 758dd1875e
commit e758b407e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11842,7 +11842,7 @@ bool Bot::IsValidSpellTypeBySpellID(uint16 spell_type, uint16 spell_id) {
return false;
case BotSpellTypes::ResistBuffs:
case BotSpellTypes::PetResistBuffs:
if (IsResistanceBuffSpell(spell_id)) {
if (IsResistanceBuffSpell(spell_id) && !IsEffectInSpell(spell_id, SE_DamageShield)) {
return true;
}