mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Add the checks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user