Prevents the removal of objects from yourself while disabled. (#20446)

* Prevents removal of objects while disabled

* Better handling
This commit is contained in:
Kell-E
2023-10-01 04:47:52 +01:00
committed by GitHub
parent 5ee6d4ad4f
commit 161d84c04b

View File

@@ -248,7 +248,10 @@ If you're feeling frisky, examine yourself and click the underlined item to pull
/atom/movable/screen/alert/embeddedobject/Click()
if(iscarbon(usr))
var/mob/living/carbon/C = usr
return C.try_remove_embedded_object(C)
if (C.incapacitated())
to_chat(C, span_warning("You can't do that while disabled!"))
else
return C.try_remove_embedded_object(C)
/atom/movable/screen/alert/weightless
name = "Weightless"