fix(Core/Spells): Fix Improved Barkskin armor (#26150)

This commit is contained in:
AlsoNotMehh
2026-06-14 17:32:49 -04:00
committed by GitHub
parent d2cbba20bf
commit 133167b0ae
@@ -847,7 +847,9 @@ void AuraEffect::ApplySpellMod(Unit* target, bool apply)
Aura* aura = iter->second->GetBase();
// only passive and permament auras-active auras should have amount set on spellcast and not be affected
// if aura is casted by others, it will not be affected
if ((aura->IsPassive() || aura->IsPermanent()) && aura->GetCasterGUID() == guid && aura->GetSpellInfo()->IsAffectedBySpellMod(m_spellmod))
if ((aura->IsPassive() || aura->IsPermanent()) && aura->GetCasterGUID() == guid &&
aura->GetSpellInfo()->CheckShapeshift(target->GetShapeshiftForm()) == SPELL_CAST_OK &&
aura->GetSpellInfo()->IsAffectedBySpellMod(m_spellmod))
{
if (GetMiscValue() == SPELLMOD_ALL_EFFECTS)
{