This commit is contained in:
Daniel Odendahl Jr
2018-09-17 16:41:55 +00:00
parent 8b5719963f
commit 518ba68e32
+3 -2
View File
@@ -66,9 +66,10 @@ module.exports = class BlackjackCommand extends Command {
playerTurn = false;
}
} else {
const total = this.calculate(dealerHand);
const inital = this.calculate(dealerHand);
let card;
if (total < 17) card = this.draw(msg.channel, dealerHand);
if (inital < 17) card = this.draw(msg.channel, dealerHand);
const total = this.calculate(dealerHand);
if (total > 21) {
reason = `Dealer drew ${card.display}, total of ${total}! Dealer bust`;
win = true;