From e758b407e925fb59ba2934048e2af28ae0dd3fa9 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Wed, 9 Apr 2025 21:32:38 -0500 Subject: [PATCH] [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. --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index acfc9bf4f..1885fd1a5 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -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; }