Fix click disabling when unbuckling via resist

This commit is contained in:
Cyantime
2018-03-08 18:11:07 +00:00
committed by GitHub
parent a3228cd0c5
commit 602a505ec7

View File

@@ -159,12 +159,12 @@
return ..()
/mob/living/carbon/escape_buckle()
setClickCooldown(100)
if(!buckled) return
if(!restrained())
..()
else
setClickCooldown(100)
visible_message(
"<span class='danger'>[usr] attempts to unbuckle themself!</span>",
"<span class='warning'>You attempt to unbuckle yourself. (This will take around 2 minutes and you need to stand still)</span>"