Bugfix: it was possible to score while in the celebration phase

master
Zughy 2020-12-01 15:13:52 +01:00
parent fe1186036b
commit fab5eea111
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ function check_for_touchdown(id, arena, ball, wielder, w_pos, goal)
math.abs(w_pos.x - goal.x) <= 1.5 and math.abs(w_pos.x - goal.x) <= 1.5 and
math.abs(w_pos.z - goal.z) <= 1.5 and math.abs(w_pos.z - goal.z) <= 1.5 and
w_pos.y >= goal.y - 1 and w_pos.y >= goal.y - 1 and
w_pos.y <= goal.y + 3 then w_pos.y <= goal.y + 3 and
not arena.in_celebration then
wielder:get_meta():set_int("bl_has_ball", 0) wielder:get_meta():set_int("bl_has_ball", 0)