allow ties

This commit is contained in:
Jonathan Lamothe committed 2020-04-07 21:30:47 -04:00
1 parent 2adfe9b016
commit 1bd3ae9564
3 files changed
+26 -55

No files matched your search

+1 -3
View File
@@ -43,9 +43,7 @@ import Mtlstats.Util
overtimeCheck :: ProgState -> ProgState
overtimeCheck s
| fromMaybe False $ gameTied $ s^.progMode.gameStateL =
s & progMode.gameStateL
%~ (homeScore .~ Nothing)
. (awayScore .~ Nothing)
s & progMode.gameStateL.overtimeFlag ?~ True
| fromMaybe False $ gameWon $ s^.progMode.gameStateL =
s & progMode.gameStateL.overtimeFlag ?~ False
| otherwise = s