Corrected two more comments.

This commit is contained in:
Ovalord committed 2018-02-15 10:47:57 +01:00
1 parent 6e853f2146
commit 9b8b296b8a
1 file changed
+3 -2
+3 -2
View File
@@ -11838,7 +11838,7 @@ void Unit::SetStunned(bool apply)
SetTarget(ObjectGuid::Empty);
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
// Stop movement if unit is affected by parabolic splines (eg. knockbacks, pulls, etc.)
// Do not stop movement when the unit is affected by parabolic spline movement (knockbacks, pulls, scripted leaps etc.)
if (!movespline->isParabolic())
StopMoving();
@@ -11874,7 +11874,8 @@ void Unit::SetRooted(bool apply, bool packetOnly /*= false*/)
// setting MOVEMENTFLAG_ROOT
RemoveUnitMovementFlag(MOVEMENTFLAG_MASK_MOVING);
AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
// Stop movement if unit is affected by parabolic splines (eg. knockbacks, pulls, etc.)
// Do not stop movement when the unit is affected by parabolic spline movement (knockbacks, pulls, scripted leaps etc.)
if (!movespline->isParabolic())
StopMoving();
}