Even more

This commit is contained in:
Zughy 2020-11-16 23:06:07 +01:00
parent f83f0cb398
commit 0ad24e30b0

View File

@ -1,4 +1,4 @@
local recursive_time = 0.2 local recursive_time = 0.1
@ -38,7 +38,7 @@ function block_league.energy_drain(arena, w_name)
if not arena.in_game or not wielder or wielder:get_meta():get_int("bl_has_ball") == 0 then return end if not arena.in_game or not wielder or wielder:get_meta():get_int("bl_has_ball") == 0 then return end
if arena.players[w_name].energy > 0 then if arena.players[w_name].energy > 0 then
arena.players[w_name].energy = arena.players[w_name].energy -3 arena.players[w_name].energy = arena.players[w_name].energy -2
block_league.energy_update(arena, w_name) block_league.energy_update(arena, w_name)
else else
wielder:set_physics_override({speed = block_league.SPEED_LOW}) wielder:set_physics_override({speed = block_league.SPEED_LOW})