From 4602bd033ffa9890ba8fe4caaa0b8ea5354ac53e Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Wed, 6 May 2015 15:41:39 +0200 Subject: [PATCH] Fixes #9106. Now only carbons can be given items, as intended. --- code/modules/mob/living/carbon/give.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm index 107e660d39..579321a512 100644 --- a/code/modules/mob/living/carbon/give.dm +++ b/code/modules/mob/living/carbon/give.dm @@ -1,7 +1,7 @@ mob/living/carbon/verb/give(var/mob/living/carbon/target in view(1)-usr) set category = "IC" set name = "Give" - if(target.stat == 2 || usr.stat == 2|| target.client == null) + if(!istype(target) || target.stat == 2 || usr.stat == 2|| target.client == null) return var/obj/item/I if(!usr.hand && usr.r_hand == null)