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)
This commit is contained in:
hondacrx
2022-05-26 16:15:22 -04:00
parent 99618142d3
commit 5edc228fa6
+6
View File
@@ -2458,8 +2458,14 @@ namespace Game.Spells
target.ApplySpellImmune(Id, SpellImmunity.Mechanic, i, apply); target.ApplySpellImmune(Id, SpellImmunity.Mechanic, i, apply);
if (apply && HasAttribute(SpellAttr1.DispelAurasOnImmunity)) 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; uint dispelImmunity = immuneInfo.DispelImmune;
if (dispelImmunity != 0) if (dispelImmunity != 0)