Revert "Core/Spells: Spells with Attribute SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY should dispel snare auras. (#20621)"

This reverts commit b507acf1c0.
This commit is contained in:
Keader
2021-04-03 10:20:16 -03:00
parent 0c3bbf5c65
commit c6e2b6e88c

View File

@@ -2869,7 +2869,13 @@ void SpellInfo::ApplyAllSpellImmunitiesTo(Unit* target, uint8 effIndex, bool app
target->ApplySpellImmune(Id, IMMUNITY_MECHANIC, i, apply);
if (apply && HasAttribute(SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY))
target->RemoveAurasWithMechanic(mechanicImmunity, AURA_REMOVE_BY_DEFAULT, Id);
{
// exception for purely snare mechanic (eg. hands of freedom)!
if (mechanicImmunity == (1 << MECHANIC_SNARE))
target->RemoveMovementImpairingAuras(false);
else
target->RemoveAurasWithMechanic(mechanicImmunity, AURA_REMOVE_BY_DEFAULT, Id);
}
}
if (uint32 dispelImmunity = immuneInfo.DispelImmune)