Fixes unbuckling while unconscious (#24371)

This commit is contained in:
adrian
2019-10-05 19:51:17 -03:00
committed by Probe1
parent 9eca321299
commit d706cc14a8

View File

@@ -940,7 +940,7 @@ Thanks.
L.visible_message("<span class='danger'>[L] resists!</span>") L.visible_message("<span class='danger'>[L] resists!</span>")
if(L.locked_to) if(L.locked_to && !L.isUnconscious())
//unbuckling yourself //unbuckling yourself
if(istype(L.locked_to, /obj/structure/bed)) if(istype(L.locked_to, /obj/structure/bed))
var/obj/structure/bed/B = L.locked_to var/obj/structure/bed/B = L.locked_to