aboutsummaryrefslogtreecommitdiff
path: root/back/src
diff options
context:
space:
mode:
authorAnthony Wang2022-05-03 10:57:27 -0500
committerAnthony Wang2022-05-03 10:57:27 -0500
commita13b6f46a00e3f0e34a1d95a87492cb5da539e65 (patch)
treeb858d0fbde81441e91d618e4c26f0a5581bdcc9d /back/src
parentabd3e2edc1e695f0d34a4010e3250203927a9fe8 (diff)
Flip over red cards inatead of blackHEADmaster
Diffstat (limited to 'back/src')
-rw-r--r--back/src/Game.ts4
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;