Can open doors without access requirement when handcuffed

This commit is contained in:
Yoshax
2016-11-21 01:27:15 +00:00
parent 284d68bc3c
commit 59994a5656

View File

@@ -95,14 +95,18 @@
return 1
/obj/machinery/door/Bumped(atom/AM)
if(p_open || operating) return
if(p_open || operating)
return
if(ismob(AM))
var/mob/M = AM
if(world.time - M.last_bumped <= 10) return //Can bump-open one airlock per second. This is to prevent shock spam.
if(world.time - M.last_bumped <= 10)
return //Can bump-open one airlock per second. This is to prevent shock spam.
M.last_bumped = world.time
if(!M.restrained())
if(M.restrained() && !check_access(null))
return
else
bumpopen(M)
return
if(istype(AM, /mob/living/bot))
var/mob/living/bot/bot = AM