From 0925853992350c7152090e150ac2af9cbdfc2783 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Fri, 22 Sep 2017 19:00:07 -0500 Subject: [PATCH] [MIRROR] [S] fixes sentience potions working through cams (#2896) * Fixes sentience potions working through cams (#30914) * [S] fixes sentience potions working through cams --- code/modules/research/xenobiology/xenobiology.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm index 79fc4078f8..0b3c930962 100644 --- a/code/modules/research/xenobiology/xenobiology.dm +++ b/code/modules/research/xenobiology/xenobiology.dm @@ -168,7 +168,7 @@ var/sentience_type = SENTIENCE_ORGANIC /obj/item/slimepotion/sentience/afterattack(mob/living/M, mob/user) - if(being_used || !ismob(M)) + if(being_used || !ismob(M) || !user.Adjacent(M)) return if(!isanimal(M) || M.ckey) //only works on animals that aren't player controlled to_chat(user, "[M] is already too intelligent for this to work!")