fix(Core/Spells): Fix Improved Barkskin armor (#26150)
This commit is contained in:
@@ -847,7 +847,9 @@ void AuraEffect::ApplySpellMod(Unit* target, bool apply)
|
|||||||
Aura* aura = iter->second->GetBase();
|
Aura* aura = iter->second->GetBase();
|
||||||
// only passive and permament auras-active auras should have amount set on spellcast and not be affected
|
// 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 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)
|
if (GetMiscValue() == SPELLMOD_ALL_EFFECTS)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user