Fixes Googly eyes being able to be unattached by dead people (#14029)

This commit is contained in:
RisingValiant
2022-05-22 12:48:39 +02:00
committed by GitHub
parent 0a85c2828f
commit 3215b8fb2a
2 changed files with 44 additions and 1 deletions
+3 -1
View File
@@ -16,7 +16,7 @@
icon_state = pick(rand_icons)
/obj/item/sticker/attack_hand(mob/user)
if(!attached)
if(!isliving(user) || !attached)
return ..()
if(user.a_intent == I_HELP)
@@ -88,6 +88,8 @@
set name = "Remove Sticker"
set src in view(1)
if(!isliving(usr))
return
var/obj/item/sticker/S = locate() in src
if(S)
S.remove_sticker(usr)