From 0b18768832adc003b311d6c90e5f4e473f4c3e38 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 17 Sep 2018 16:47:16 +0000 Subject: [PATCH] Fix --- commands/games/blackjack.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/games/blackjack.js b/commands/games/blackjack.js index b035e7ea..50b8d199 100644 --- a/commands/games/blackjack.js +++ b/commands/games/blackjack.js @@ -59,6 +59,9 @@ module.exports = class BlackjackCommand extends Command { if (total > 21) { reason = `You drew ${card.display}, total of ${total}! Bust`; break; + } else if (total === 21) { + reason = 'You hit 21'; + break; } } else { const dealerTotal = this.calculate(dealerHand);