From 8ecca64dd37b640f4a93777ff631c6f8eeb5d5d9 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Mon, 30 May 2022 14:08:09 +1200 Subject: [PATCH] Interrupt uncuff on target movement (#8511) --- Content.Server/Cuffs/Components/CuffableComponent.cs | 1 + Content.Server/Cuffs/CuffableSystem.cs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Cuffs/Components/CuffableComponent.cs b/Content.Server/Cuffs/Components/CuffableComponent.cs index 9b34ea58c6..ba43055792 100644 --- a/Content.Server/Cuffs/Components/CuffableComponent.cs +++ b/Content.Server/Cuffs/Components/CuffableComponent.cs @@ -227,6 +227,7 @@ namespace Content.Server.Cuffs.Components var doAfterEventArgs = new DoAfterEventArgs(user, uncuffTime) { BreakOnUserMove = true, + BreakOnTargetMove = true, BreakOnDamage = true, BreakOnStun = true, NeedHand = true diff --git a/Content.Server/Cuffs/CuffableSystem.cs b/Content.Server/Cuffs/CuffableSystem.cs index 213f07d1c9..a92a921ffd 100644 --- a/Content.Server/Cuffs/CuffableSystem.cs +++ b/Content.Server/Cuffs/CuffableSystem.cs @@ -73,8 +73,7 @@ namespace Content.Server.Cuffs } else { - // Uh... let it go through??? - // TODO CUFFABLE/STUN add UncuffAttemptEvent subscription to StunSystem + // TODO Find a way for cuffable to check ActionBlockerSystem.CanInteract() without blocking itself } } else