Bugfix: in certain circumstances pplayers could keep moving fast after taking the ball and having no stamina left

This commit is contained in:
Zughy 2022-10-14 01:49:47 +02:00
parent 82c9322b80
commit abe2b33bac

View File

@ -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