From: themias <89101928+themias@users.noreply.github.com> Date: Mon, 10 Feb 2025 22:17:57 +0000 (-0500) Subject: Fix pacified players attacking with mechs (#34954) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=36bf5543523fbd7c805fc296f2619e9a7a17f849;p=space-station-14.git Fix pacified players attacking with mechs (#34954) --- diff --git a/Content.Shared/ActionBlocker/ActionBlockerSystem.cs b/Content.Shared/ActionBlocker/ActionBlockerSystem.cs index 8a4b5baffd..6152699ccb 100644 --- a/Content.Shared/ActionBlocker/ActionBlockerSystem.cs +++ b/Content.Shared/ActionBlocker/ActionBlockerSystem.cs @@ -199,7 +199,8 @@ namespace Content.Shared.ActionBlocker { var containerEv = new CanAttackFromContainerEvent(uid, target); RaiseLocalEvent(uid, containerEv); - return containerEv.CanAttack; + if (!containerEv.CanAttack) + return false; } var ev = new AttackAttemptEvent(uid, target, weapon, disarm);