From 0bca9befcad537369e07f3a86d16d41befdb9e2b Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Thu, 28 Oct 2021 11:50:31 +0200 Subject: [PATCH] Fix being able to electrocute pulled mobs when completely insulated. --- Content.Server/Electrocution/ElectrocutionSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/Electrocution/ElectrocutionSystem.cs b/Content.Server/Electrocution/ElectrocutionSystem.cs index 252f13a102..d9b89d264e 100644 --- a/Content.Server/Electrocution/ElectrocutionSystem.cs +++ b/Content.Server/Electrocution/ElectrocutionSystem.cs @@ -155,6 +155,10 @@ namespace Content.Server.Electrocution } } + var siemens = electrified.SiemensCoefficient; + if (!DoCommonElectrocutionAttempt(targetUid, uid, ref siemens) || siemens <= 0) + return false; // If electrocution would fail, do nothing. + var targets = new List<(EntityUid entity, int depth)>(); GetChainedElectrocutionTargets(targetUid, targets); if (!electrified.RequirePower)