From 0e6d88530951eee6446ac98a89abebf62d3dede9 Mon Sep 17 00:00:00 2001 From: Jeremy Scheff Date: Mon, 23 Dec 2024 11:23:23 -0500 Subject: [PATCH] Fix logging of passing TDs --- src/worker/core/GameSim.football/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/worker/core/GameSim.football/index.ts b/src/worker/core/GameSim.football/index.ts index 7104b0c68..d06d28df3 100644 --- a/src/worker/core/GameSim.football/index.ts +++ b/src/worker/core/GameSim.football/index.ts @@ -2031,13 +2031,14 @@ class GameSim extends GameSimBase { }); } + // Do safety before logging event, otherwise pts for safety show up on the next play (kickoff) if (safety) { - // Do safety before logging event, otherwise pts for safety show up on the next play (kickoff) this.doSafety(); - this.playByPlay.logEvent(completeEvent); - } else if (!td) { - this.playByPlay.logEvent(completeEvent); + } + + this.playByPlay.logEvent(completeEvent); + if (!td) { this.doTackle({ loss: yds < 0, });