Fixes self surgery with beds (#16004)

* fix

* mochi's suggestion. added check for self surgery starting

* line
This commit is contained in:
hal9000PR
2021-05-16 09:37:25 +01:00
committed by GitHub
parent 509c1d5638
commit 9c4b73be1e
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -86,7 +86,7 @@
/mob/living/update_canmove(delay_action_updates = 0)
var/fall_over = !can_stand()
var/buckle_lying = !(buckled && !buckled.buckle_lying)
if(fall_over || resting || stunned)
if(fall_over || resting || stunned || (buckled && buckle_lying != 0))
drop_r_hand()
drop_l_hand()
else
+3
View File
@@ -11,6 +11,9 @@
/obj/item/weldingtool = 30
)
if(M == user)
return // no self surgery
if(istype(M, /mob/living/carbon/human))
H = M
affecting = H.get_organ(check_zone(selected_zone))