Skip to content

Commit

Permalink
Fix for extra innings
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Oct 11, 2024
1 parent 1be477b commit 488c7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/core/GameSim.baseball/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,7 @@ class GameSim extends GameSimBase {

if (saveOutsNeeded !== undefined) {
const outsLeft =
(this.numInnings - this.inning) * NUM_OUTS_PER_INNING +
Math.max(0, this.numInnings - this.inning) * NUM_OUTS_PER_INNING +
(NUM_OUTS_PER_INNING - this.outs);
if (saveOutsNeeded <= outsLeft) {
// In the situation where this is only a valid save if it goes 3 innings (9 outs), then it could be a save or a blown save, but it can't be a hold https://tht.fangraphs.com/the-unofficial-rules-of-holds-and-blown-saves/
Expand Down

0 comments on commit 488c7d2

Please sign in to comment.