From 45dd3cb2efd7d6549b37797c9bf0a2cf879b65c8 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 9 May 2021 18:32:47 +0000 Subject: Fix another bug --- back/src/Game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/src/Game.ts b/back/src/Game.ts index e7e69ac..816754b 100644 --- a/back/src/Game.ts +++ b/back/src/Game.ts @@ -110,11 +110,11 @@ export default class Game { } while (this.lastPlayed > 0) { // Phase 2 await this.flip(); - this.lastPlayed--; if (this.phase === 3 as number) { // Oops, flipped over a red card! await this.giveup(); // The player who called BS won and now the challenged player must give up a card! return; } + this.lastPlayed--; } this.phase = 3; await this.giveup(); // The player who called BS won and now they must give up a card! -- cgit v1.2.3-70-g09d2