From 90f8029fe17dd3f7a25c96052947843db9f3838a Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 8 Jan 2021 20:34:36 -0500 Subject: [PATCH] Core/Spells: Spells with Attribute SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY should dispel snare auras. Port From (https://github.com/TrinityCore/TrinityCore/commit/22d5a2a2eb42cfb0f52a294669c31c7d32b27693) --- Source/Game/Spells/SpellInfo.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index efed14509..5a38588b8 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -2374,13 +2374,7 @@ namespace Game.Spells target.ApplySpellImmune(Id, SpellImmunity.Mechanic, i, apply); if (apply && HasAttribute(SpellAttr1.DispelAurasOnImmunity)) - { - // exception for purely snare mechanic (eg. hands of freedom)! - if (mechanicImmunity == (1 << (int)Mechanics.Snare)) - target.RemoveMovementImpairingAuras(false); - else - target.RemoveAurasWithMechanic(mechanicImmunity, AuraRemoveMode.Default, Id); - } + target.RemoveAurasWithMechanic(mechanicImmunity, AuraRemoveMode.Default, Id); } uint dispelImmunity = immuneInfo.DispelImmune;