From f689398504fd4fcd27cf543f6ce8b4309ae0bd22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tom=C3=A1s=20Alves?= Date: Sat, 2 Dec 2023 20:02:17 +0000 Subject: [PATCH] Fixes Electrocuting grabbed targets while insulated (#22087) --- Content.Server/Electrocution/ElectrocutionSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Electrocution/ElectrocutionSystem.cs b/Content.Server/Electrocution/ElectrocutionSystem.cs index 4dc4f198a5..c3ae246074 100644 --- a/Content.Server/Electrocution/ElectrocutionSystem.cs +++ b/Content.Server/Electrocution/ElectrocutionSystem.cs @@ -230,7 +230,7 @@ public sealed class ElectrocutionSystem : SharedElectrocutionSystem _appearance.SetData(uid, ElectrifiedVisuals.IsPowered, true); siemens *= electrified.SiemensCoefficient; - if (siemens <= 0 || !DoCommonElectrocutionAttempt(targetUid, uid, ref siemens)) + if (!DoCommonElectrocutionAttempt(targetUid, uid, ref siemens) || siemens <= 0) return false; // If electrocution would fail, do nothing. var targets = new List<(EntityUid entity, int depth)>(); -- 2.51.2