Core/Spells: Spells with Attribute SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY should dispel snare auras.

Port From (https://github.com/TrinityCore/TrinityCore/commit/22d5a2a2eb42cfb0f52a294669c31c7d32b27693)
This commit is contained in:
hondacrx
2021-01-08 20:34:36 -05:00
parent 7f637d28b8
commit 90f8029fe1
+1 -7
View File
@@ -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;