Core/Spells: do not allow root auras to bypass the root movement data for creatures when getting removed
This commit is contained in:
1 parent
1c7a520095
commit
5258dc74d1
1 file changed
+4
@@ -11970,6 +11970,10 @@ void Unit::SetControlled(bool apply, UnitState state)
|
||||
if (HasAuraType(SPELL_AURA_MOD_ROOT) || GetVehicle())
|
||||
return;
|
||||
|
||||
if (Creature* creature = ToCreature())
|
||||
if (creature->GetMovementTemplate().IsRooted)
|
||||
return;
|
||||
|
||||
ClearUnitState(state);
|
||||
SetRooted(false);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user