Fixes sentience potions working through cams (#30914)

This commit is contained in:
ExcessiveUseOfCobblestone
2017-09-22 13:45:56 -04:00
committed by Jordan Brown
parent 292638c209
commit 41f551776d

View File

@@ -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>")