Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Apr 8, 2024
1 parent 28e7112 commit a193593
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ shootouts
- make sure game-tying shots are logged as clutch right before a shootout
- might need to call checkGameTyingShot again
- make sure it works for player feats - see PlayerFeats.tsx "const result" - needs shootout info
- force tie should not be an option if shootout will happen this game
- upgrades
- league file import
- idb upgrade
Expand Down
6 changes: 3 additions & 3 deletions src/common/allowForceTie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const allowForceTie = ({
}

if (isSport("basketball")) {
if (elam) {
const isAllStarGame = homeTid === -1 && awayTid === -2;

if (!isAllStarGame && elam) {
return false;
}

const isAllStarGame = homeTid === -1 && awayTid === -2;

if (isAllStarGame && elamASG) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/worker/core/season/hasTies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { g } from "../../util";
const hasTies = (season: number | "current") => {
return (
g.get("maxOvertimes", season) !== null &&
g.get("shootoutRounds", season) === null
g.get("shootoutRounds", season) <= 0
);
};

Expand Down

0 comments on commit a193593

Please sign in to comment.