Core/Unit: Also remove snare mechanics caused by effects on RemoveMovementImpairingAuras (#31207)

This commit is contained in:
Edan
2025-09-04 17:21:33 -04:00
committed by GitHub
parent d5921303b7
commit 0728b899a7

View File

@@ -4067,7 +4067,7 @@ void Unit::RemoveMovementImpairingAuras(bool withRoot)
if (withRoot)
RemoveAurasWithMechanic(1 << MECHANIC_ROOT, AURA_REMOVE_BY_DEFAULT, 0, true);
RemoveAurasWithMechanic(1 << MECHANIC_SNARE, AURA_REMOVE_BY_DEFAULT, 0, false);
RemoveAurasWithMechanic(1 << MECHANIC_SNARE, AURA_REMOVE_BY_DEFAULT, 0, true);
}
void Unit::RemoveAurasWithMechanic(uint32 mechanicMaskToRemove, AuraRemoveMode removeMode, uint32 exceptSpellId, bool withEffectMechanics)