paper-dynasty-discord/command_logic
Cal Corum 1eda66a06c
Some checks failed
Build Docker Image / build (pull_request) Failing after 15s
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:37:42 -06:00
..
__init__.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00
logic_gameplay.py fix: preserve batter at plate when half-inning ends on caught stealing 2026-02-10 22:37:42 -06:00
play_context.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00