Core/Spells: do not allow root auras to bypass the root movement data for creatures when getting removed

This commit is contained in:
Ovahlord committed 2019-04-27 20:10:03 +02:00
1 parent 1c7a520095
commit 5258dc74d1
1 file changed
+4
+4
View File
@@ -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;