From 5edc228fa6ea8b275cd7e8e9e0795c316aec7de3 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 26 May 2022 16:15:22 -0400 Subject: [PATCH] Revert "Core/Spells: Spells with Attribute SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY should dispel snare auras. Port From (https://github.com/TrinityCore/TrinityCore/commit/2e69b64d6711efa5c6c92f02d7b05aae72f08002) --- Source/Game/Spells/SpellInfo.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index 5867b2dba..06ef96283 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -2458,7 +2458,13 @@ namespace Game.Spells target.ApplySpellImmune(Id, SpellImmunity.Mechanic, i, apply); if (apply && HasAttribute(SpellAttr1.DispelAurasOnImmunity)) - target.RemoveAurasWithMechanic(mechanicImmunity, AuraRemoveMode.Default, Id); + { + // 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); + } } uint dispelImmunity = immuneInfo.DispelImmune;