From d0f4b9df9721ebb87d2f9d425cf53f68bcd68c48 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 7 Feb 2025 00:50:49 -0500 Subject: [PATCH] Disallow zero-speed bats --- src/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.lua b/src/main.lua index 9caaa53..063c9c5 100644 --- a/src/main.lua +++ b/src/main.lua @@ -727,7 +727,7 @@ function updateBatting(batDeg, batSpeed) batTip.y = batBase.y + (BatLength * math.cos(batAngle)) if - batSpeed >= 0 -- > 0 + batSpeed > 0 and utils.pointDirectlyUnderLine(ball.x, ball.y, batBase.x, batBase.y, batTip.x, batTip.y, Screen.H) and ball.y < 232 --not isTouchingBall(fielders.catcher.x, fielders.catcher.y) then -- 2.47.1