Skip to content

Commit

Permalink
fix: 0 cards bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekCornerGH committed Jan 29, 2025
1 parent c934335 commit 170355e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/game/playCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default async function (game: runningUnoGame, card: unoCard | "draw" | "s
endTurn(interaction.client, game, interaction, interaction.user.id, "played", toAppend);
}
}
else if (game.settings.sevenAndZero && ["7", "0"].includes(type)) {
else if (game.settings.sevenAndZero && ["7", "0"].includes(type) && game.cards[interaction.user.id].length === 0) {
if (type === "7") {
game.turnProgress = "pickPlayer";
game.playedCard = card as `${typeof colors[number]}-7`;
Expand Down

0 comments on commit 170355e

Please sign in to comment.