diff options
author | Anthony Wang | 2022-05-03 10:57:27 -0500 |
---|---|---|
committer | Anthony Wang | 2022-05-03 10:57:27 -0500 |
commit | a13b6f46a00e3f0e34a1d95a87492cb5da539e65 (patch) | |
tree | b858d0fbde81441e91d618e4c26f0a5581bdcc9d /back/src/Game.ts | |
parent | abd3e2edc1e695f0d34a4010e3250203927a9fe8 (diff) |
Diffstat (limited to 'back/src/Game.ts')
-rw-r--r-- | back/src/Game.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/back/src/Game.ts b/back/src/Game.ts index 00b05b4..a658927 100644 --- a/back/src/Game.ts +++ b/back/src/Game.ts @@ -195,8 +195,8 @@ export default class Game { delete p.disconnectListener; (() => { if (this.players[selectedPlayer].stack.length > 0) { - if (this.players[selectedPlayer].stack[0].suit === Suit.Diamonds || - this.players[selectedPlayer].stack[0].suit === Suit.Hearts) this.phase = 3; // Red card + if (this.players[selectedPlayer].stack[0].suit === Suit.Spades || + this.players[selectedPlayer].stack[0].suit === Suit.Clubs) this.phase = 3; // Red card this.players[selectedPlayer].flipped.push(this.players[selectedPlayer].stack[0]); this.players[selectedPlayer].stack.splice(0, 1); return; |