paper-dynasty-discord/command_logic
Cal Corum 046b35e5a5
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m5s
fix: preserve batter at plate when half-inning ends on caught stealing
When a half-inning ended with a CS (or pickoff), the batter who was at
the plate was incorrectly skipped in the next inning. The side-switch
code unconditionally advanced the batting order by 1 without checking
whether the last play was a plate appearance. Now checks opponent_play.pa
before incrementing, matching the existing non-side-switch logic.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 22:26:30 -06:00
..
logic_gameplay.py fix: preserve batter at plate when half-inning ends on caught stealing 2026-02-10 22:26:30 -06:00