Skip to content

Commit

Permalink
Fix pitching runs tracking - otherwise some extra runs are added when…
Browse files Browse the repository at this point in the history
… there is an ER for a pitcher that does not count for the team
  • Loading branch information
dumbmatter committed Jan 19, 2025
1 parent bc4b4b4 commit 29192a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/worker/core/GameSim.baseball/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2762,7 +2762,6 @@ class GameSim extends GameSimBase {
} else if (s === "er") {
if (this.outsIfNoErrors >= NUM_OUTS_PER_INNING) {
// It's an ER for this reliever, but not for the team
this.team[t].t.stat.rPit += amt;
} else {
this.team[t].t.stat.er += amt;
}
Expand Down

0 comments on commit 29192a8

Please sign in to comment.