People who are unconscious can no longer disrupt surgery by unresting

This commit is contained in:
Crazylemon64
2017-01-08 21:31:15 -08:00
parent cb328a1742
commit 412130ccec
+3 -3
View File
@@ -1009,7 +1009,7 @@ proc/get_mob_with_client_list()
else if(zone == "l_foot") return "left foot"
else if(zone == "r_foot") return "right foot"
else return zone
/*
Gets the turf this atom's *ICON* appears to inhabit
@@ -1222,7 +1222,7 @@ var/global/list/common_tools = list(
//check if mob is lying down on something we can operate him on.
/proc/can_operate(mob/living/carbon/M)
return (locate(/obj/machinery/optable, M.loc) && M.resting) || \
return (locate(/obj/machinery/optable, M.loc) && (M.lying || M.resting)) || \
(locate(/obj/structure/stool/bed/roller, M.loc) && \
(M.buckled || M.lying || M.weakened || M.stunned || M.paralysis || M.sleeping || M.stat)) && prob(75) || \
(locate(/obj/structure/table/, M.loc) && \
@@ -1819,4 +1819,4 @@ var/global/list/g_fancy_list_of_types = null
var/num = pick(num_sample)
num_sample -= num
result += (1 << num)
return result
return result