From 68e205e7b336dcbc63669a2bfab29f9af22137a0 Mon Sep 17 00:00:00 2001 From: mwerezak Date: Wed, 27 May 2015 00:43:17 -0400 Subject: [PATCH] Fixes robot limbs spamming sparks and messages endlessly Fixes robot limbs spamming malfunctioning messages and spark effects endlessly if one arm is malfunctioning while holding an item in the other arm. --- code/modules/mob/living/carbon/human/human_organs.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_organs.dm b/code/modules/mob/living/carbon/human/human_organs.dm index c962b8355b..6c92db09fe 100644 --- a/code/modules/mob/living/carbon/human/human_organs.dm +++ b/code/modules/mob/living/carbon/human/human_organs.dm @@ -118,8 +118,12 @@ else if(E.is_malfunctioning()) if(E.body_part == HAND_LEFT) + if(!l_hand) + continue drop_from_inventory(l_hand) else + if(!r_hand) + continue drop_from_inventory(r_hand) emote("me", 1, "drops what they were holding, their [E.name] malfunctioning!")