**Use movement half when crediting steal-home runs** #66
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
umpire274/bs_scoring#66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use movement half when crediting steal-home runs
add_runs_to_score(state, 1)credits runs usingstate.half/state.inning, but replay links steals to the previous committed PA (rm.pa_seq = last_pa_seqinplay_ball.rs), so a steal during the first in-progress at-bat of a new half can be replayed whilestate.halfis still the prior half. In that case, this line assigns the run to the wrong team/inning bucket instead of the row’s recordedrm.half_inning, which regresses resume accuracy for steal-home events across half-inning boundaries.Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in https://github.com/umpire274/bs_scoring/pull/65#discussion_r3114074699