From: Tomás Alves Date: Sat, 2 Dec 2023 20:02:17 +0000 (+0000) Subject: Fixes Electrocuting grabbed targets while insulated (#22087) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f689398504fd4fcd27cf543f6ce8b4309ae0bd22;p=space-station-14.git Fixes Electrocuting grabbed targets while insulated (#22087) --- 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)>();