Core/Spells: fixed root behaivior of creatures that are being rooted via movement template while getting a root aura removed (#23216)

* Core/Spells: do not allow root auras to bypass the root movement template state when getting removed

* yeah....

(cherry picked from commit d629bad7a1)
This commit is contained in:
Ovah
2019-08-01 15:40:07 +02:00
committed by Shauren
parent 4330b7c921
commit d01a22f58e

View File

@@ -10652,7 +10652,7 @@ void Unit::SetControlled(bool apply, UnitState state)
SetStunned(false);
break;
case UNIT_STATE_ROOT:
if (HasAuraType(SPELL_AURA_MOD_ROOT) || HasAuraType(SPELL_AURA_MOD_ROOT_2) || GetVehicle())
if (HasAuraType(SPELL_AURA_MOD_ROOT) || HasAuraType(SPELL_AURA_MOD_ROOT_2) || GetVehicle() || (ToCreature() && ToCreature()->GetMovementTemplate().IsRooted()))
return;
ClearUnitState(state);