diff --git a/scenes/ball/ball.gd b/scenes/ball/ball.gd index d97edaa..34b342b 100644 --- a/scenes/ball/ball.gd +++ b/scenes/ball/ball.gd @@ -27,7 +27,8 @@ func _on_hit(hitbox: Area2D) -> void: var player: Player = hitbox.get_parent() var timer: Timer = player.hit_timer launch() - timer.connect("timeout", _on_hit_end) + if not timer.is_connected("timeout", _on_hit_end): + timer.connect("timeout", _on_hit_end) EventBus.ball_hit.emit(player.id, linear_velocity) is_hit = true