Skip to content

Commit

Permalink
always ignore the first quick resign of the day
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Nov 15, 2024
1 parent 0182a4c commit 64c9ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/playban/src/main/PlaybanApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ final class PlaybanApi(
val veryQuick = (game.clock.fold(600)(_.estimateTotalSeconds / 3)).atMost(60)
game.durationSeconds.exists(_ < veryQuick)
} && {
game.mode.rated || game.loserUserId.exists(loser => !quickResignCasualOnce(loser))
game.loserUserId.exists(loser => !quickResignCasualOnce(loser))
}

private def handleQuickResign(game: Game, userId: UserId): Funit =
Expand Down

0 comments on commit 64c9ce0

Please sign in to comment.