From 031158b243bed5069950c6002cbb84e8747900a5 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 3 Jan 2021 15:02:24 -0500 Subject: [PATCH] Core/Spells: Fixed issues with School Immune vs SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE Port From (https://github.com/TrinityCore/TrinityCore/commit/5a82598f03140cbfb288e1848efc983cf5d1f8cb) --- Source/Game/Spells/SpellInfo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index 3627826e8..efed14509 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -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;