Skip to content

Commit

Permalink
Core/Spells: SPELL_AURA_SCHOOL_IMMUNITY auras shouldn't remove passiv…
Browse files Browse the repository at this point in the history
…e auras (even if negative)

Ref issue #6375

(cherry picked from commit b2fbd2c)
  • Loading branch information
ariel- authored and joschiwald committed Mar 4, 2017
1 parent 3ce3acf commit 4c0bed8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/game/Spells/Auras/SpellAuraEffects.cpp
Expand Up @@ -3438,6 +3438,7 @@ void AuraEffect::HandleAuraModSchoolImmunity(AuraApplication const* aurApp, uint
return (spell->GetSchoolMask() & schoolMask) // Check for school mask
&& GetSpellInfo()->CanDispelAura(spell)
&& !aurApp->IsPositive() // Don't remove positive spells
&& !spell->IsPassive() // Don't remove passive auras
&& spell->Id != GetId(); // Don't remove self
});
}
Expand Down

0 comments on commit 4c0bed8

Please sign in to comment.