Add the checks

This commit is contained in:
Dovixx
2020-09-19 23:16:59 +03:00
parent ff26229f34
commit b35a9f3af3
4 changed files with 5 additions and 3 deletions
+2
View File
@@ -141,6 +141,8 @@
if(paddles_on_defib)
//Detach the paddles into the user's hands
if(usr.incapacitated()) return
if(!usr.put_in_hands(paddles))
to_chat(user, "<span class='warning'>You need a free hand to hold the paddles!</span>")
update_icon()
@@ -117,7 +117,7 @@
/obj/structure/bed/roller/MouseDrop(over_object, src_location, over_location)
..()
if(over_object == usr && Adjacent(usr) && (in_range(src, usr) || usr.contents.Find(src)))
if(!ishuman(usr))
if(!ishuman(usr) || usr.incapacitated())
return
if(has_buckled_mobs())
return 0