Fixes Electrocuting grabbed targets while insulated (#22087)
This commit is contained in:
parent
2741a3de9d
commit
fb0fcc4bd0
|
|
@ -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)>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue