mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
Prevents crash from movement (#19287)
Prevents crashing when moving while restrained
This commit is contained in:
@@ -236,6 +236,7 @@
|
||||
if(M.pulling == my_mob)
|
||||
if(!M.restrained() && M.stat == 0 && M.canmove && my_mob.Adjacent(M))
|
||||
to_chat(src, span_blue("You're restrained! You can't move!"))
|
||||
my_mob.setMoveCooldown(my_mob.movement_delay()) //Prevent no-cooldown attempts at moving while restrained.
|
||||
return 0
|
||||
else
|
||||
M.stop_pulling()
|
||||
|
||||
Reference in New Issue
Block a user