[MIRROR] [S] fixes sentience potions working through cams (#2896)

* Fixes sentience potions working through cams (#30914)

* [S] fixes sentience potions working through cams
This commit is contained in:
CitadelStationBot
2017-09-22 19:00:07 -05:00
committed by Poojawa
parent d0274da310
commit 0925853992
@@ -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, "<span class='warning'>[M] is already too intelligent for this to work!</span>")