From 83bbe9eb052fcd26dc1278d7e5be0fe15431c57a Mon Sep 17 00:00:00 2001 From: MrDerpi <109750345+MrDerpi@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:35:32 +0200 Subject: [PATCH] Makes synth livers EMP-able again. Woohoo! (#25412) Fixed typo in synth liver emp_act proc --- modular_skyrat/modules/synths/code/bodyparts/liver.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modular_skyrat/modules/synths/code/bodyparts/liver.dm b/modular_skyrat/modules/synths/code/bodyparts/liver.dm index 43597e6d422..cd0f6bae037 100644 --- a/modular_skyrat/modules/synths/code/bodyparts/liver.dm +++ b/modular_skyrat/modules/synths/code/bodyparts/liver.dm @@ -9,10 +9,10 @@ maxHealth = 1 * STANDARD_ORGAN_THRESHOLD organ_flags = ORGAN_ROBOTIC | ORGAN_SYNTHETIC_FROM_SPECIES -/obj/item/organ/internal/lungs/synth/emp_act(severity) +/obj/item/organ/internal/liver/synth/emp_act(severity) . = ..() - if(. & EMP_PROTECT_SELF) + if(!owner || . & EMP_PROTECT_SELF) return if(!COOLDOWN_FINISHED(src, severe_cooldown)) //So we cant just spam emp to kill people.