From 0df6327b095c60a2e9463b092318b8cfad33f6a2 Mon Sep 17 00:00:00 2001 From: TheGamerdk <5618080+TheGamerdk@users.noreply.github.com> Date: Wed, 10 Apr 2024 18:58:37 +0200 Subject: [PATCH] Update synth_pod.dm --- code/game/machinery/synth_pod.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/synth_pod.dm b/code/game/machinery/synth_pod.dm index 2ee0c4aaf0cd..f933d8e14fc7 100644 --- a/code/game/machinery/synth_pod.dm +++ b/code/game/machinery/synth_pod.dm @@ -82,8 +82,8 @@ GLOBAL_LIST_EMPTY(synth_pods) close_machine(target) stored = target update_icon() - - switch_body(target) + if(target.client) + switch_body(target) /obj/machinery/synth_pod/proc/switch_body(mob/living/carbon/human/user) var/datum/species/wy_synth/S = user.dna.species @@ -98,6 +98,12 @@ GLOBAL_LIST_EMPTY(synth_pods) continue if(!pod.stored) continue + else + var/mob/living/carbon/human/target_synth = pod.stored + if(!istype(target_synth)) + continue + if(target_synth.stat == DEAD) + continue options["[get_area(pod)] ([pod.x], [pod.y])"] = pod var/response = tgui_input_list(user, "Which synthetic unit would you like to transfer into?", "Synthetic Personality Transfer", options)