mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: SPELL_AURA_SCHOOL_IMMUNITY auras shouldn't remove passive auras (even if negative)
Ref issue #6375
(cherry picked from commit b2fbd2c75d)
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user