Fixes restrained message spam by giving it a cooldown.

This commit is contained in:
phil235
2015-02-24 14:32:31 +01:00
parent 82a7beb02c
commit 712f599ccf
+3 -2
View File
@@ -135,17 +135,18 @@
if(isturf(mob.loc))
move_delay = world.time//set move delay
if(mob.restrained()) //Why being pulled while cuffed prevents you from moving
for(var/mob/M in range(mob, 1))
if(M.pulling == mob)
if(!M.incapacitated() && mob.Adjacent(M))
src << "<span class='notice'>You're restrained! You can't move!</span>"
move_delay += 10
return 0
else
M.stop_pulling()
move_delay = world.time//set move delay
switch(mob.m_intent)
if("run")
if(mob.drowsyness > 0)