diff --git a/src/main.lua b/src/main.lua index b579273..685e945 100644 --- a/src/main.lua +++ b/src/main.lua @@ -225,6 +225,9 @@ end ---@param pitchTypeIndex number | nil ---@param accuracy number The closer to 1.0, the better function Game:pitch(pitchFlyTimeMs, pitchTypeIndex, accuracy) + if pitchTypeIndex == nil then + return -- No throw! + end self.state.ball:markUncatchable() self.state.ball.heldBy = nil self.state.pitchIsOver = false