mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes sentience potions working through cams (#30914)
This commit is contained in:
committed by
Jordan Brown
parent
292638c209
commit
41f551776d
@@ -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