Core/Spells: SPELL_AURA_SCHOOL_IMMUNITY auras shouldn't remove passive auras (even if negative)

Ref issue #6375
This commit is contained in:
ariel-
2016-10-02 02:48:02 -03:00
parent a4baef19dd
commit b2fbd2c75d

View File

@@ -3370,6 +3370,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
});
}