fix(Core/Spells): Cloak of Shadows: Spell [Pounce Bleed] should not be (#5305)

This commit is contained in:
KiK0
2021-04-24 10:15:26 -07:00
committed by GitHub
parent 1952ca4c20
commit 45d92751dd

View File

@@ -881,6 +881,10 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
// remove all harmful spells on you...
SpellInfo const* spell = iter->second->GetBase()->GetSpellInfo();
// Pounce Bleed shouldn't be removed by Cloak of Shadows.
if (spell->GetAllEffectsMechanicMask() & 1 << MECHANIC_BLEED)
return;
bool dmgClassNone = false;
if (spell->DmgClass == SPELL_DAMAGE_CLASS_NONE && spell->SpellFamilyName == SPELLFAMILY_GENERIC)
for (uint8 i = EFFECT_0; i < MAX_SPELL_EFFECTS; ++i)