From 999ccd66451c947d83a5f0407bcfe1e9169e2d26 Mon Sep 17 00:00:00 2001 From: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> Date: Sun, 23 May 2021 19:55:17 -0400 Subject: [PATCH] Ghosts can no longer extract cells from items. (#5888) --- modular_skyrat/modules/cell_component/code/cell_component.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modular_skyrat/modules/cell_component/code/cell_component.dm b/modular_skyrat/modules/cell_component/code/cell_component.dm index cb0c75ce2fd..61bacd91949 100644 --- a/modular_skyrat/modules/cell_component/code/cell_component.dm +++ b/modular_skyrat/modules/cell_component/code/cell_component.dm @@ -144,6 +144,9 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa if(!cell_can_be_removed) return + if(!isliving(user)) + return + if(inserted_cell) to_chat(user, "You remove [inserted_cell] from [equipment]!") playsound(equipment, 'sound/weapons/magout.ogg', 40, TRUE)