Core/Spells: Fixed issues with School Immune vs SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE

Port From (https://github.com/TrinityCore/TrinityCore/commit/5a82598f03140cbfb288e1848efc983cf5d1f8cb)
This commit is contained in:
hondacrx
2021-01-03 15:02:24 -05:00
parent d605ebca38
commit 031158b243
+2 -1
View File
@@ -679,7 +679,8 @@ namespace Game.Spells
return true;
// These auras (Cyclone for example) are not dispelable
if (auraSpellInfo.HasAttribute(SpellAttr1.UnaffectedBySchoolImmune) || auraSpellInfo.HasAttribute(SpellAttr2.UnaffectedByAuraSchoolImmune))
if ((auraSpellInfo.HasAttribute(SpellAttr1.UnaffectedBySchoolImmune) && auraSpellInfo.Mechanic != Mechanics.None)
|| auraSpellInfo.HasAttribute(SpellAttr2.UnaffectedByAuraSchoolImmune))
return false;
return true;