diff --git a/Content.Server/Stories/Garrote/GarroteSystem.cs b/Content.Server/Stories/Garrote/GarroteSystem.cs index 69a1ae8d14..e76f68d0e6 100644 --- a/Content.Server/Stories/Garrote/GarroteSystem.cs +++ b/Content.Server/Stories/Garrote/GarroteSystem.cs @@ -134,10 +134,10 @@ private void OnGarroteDoAfter(EntityUid uid, GarroteComponent comp, GarroteDoAft /// /// Does not check for the presence of TransformComponent. /// - private bool IsRightTargetDistance(TransformComponent user, TransformComponent target, float minUseDistance) + private bool IsRightTargetDistance(TransformComponent user, TransformComponent target, float maxUseDistance) { - if (Math.Abs(user.LocalPosition.X - target.LocalPosition.X) <= minUseDistance - && Math.Abs(user.LocalPosition.Y - target.LocalPosition.Y) <= minUseDistance) + if (Math.Abs(user.LocalPosition.X - target.LocalPosition.X) <= maxUseDistance + && Math.Abs(user.LocalPosition.Y - target.LocalPosition.Y) <= maxUseDistance) return true; else return false;