[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:
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>")
|
||||
|
||||
Reference in New Issue
Block a user