Bugfix: in certain circumstances pplayers could keep moving fast after taking the ball and having no stamina left
This commit is contained in:
parent
82c9322b80
commit
abe2b33bac
@ -36,6 +36,7 @@ function block_league.stamina_drain(arena, w_name)
|
||||
arena.players[w_name].stamina = arena.players[w_name].stamina -2
|
||||
block_league.HUD_stamina_update(arena, w_name)
|
||||
else
|
||||
arena.players[w_name].stamina = 0 -- in case went to -1
|
||||
wielder:set_physics_override({speed = block_league.SPEED_LOW})
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user