Update _movespeed_modifier.dm

This commit is contained in:
silicons
2020-07-18 20:42:39 -07:00
committed by GitHub
parent 7fc7d5888a
commit a0250cfaaa

View File

@@ -203,8 +203,9 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache)
// your delay decreases, "give" the delay back to the client
cached_multiplicative_slowdown = .
var/diff = old - cached_multiplicative_slowdown
if(diff > 0)
client.move_delay -= diff
if((diff > 0) && client)
if(client.move_delay > world.time + 1.5)
client.move_delay -= diff
/// Get the move speed modifiers list of the mob
/mob/proc/get_movespeed_modifiers()