This commit is contained in:
Daniel Odendahl Jr
2018-09-17 16:24:19 +00:00
parent 2cfb7e2338
commit d4a8076fe3
+1 -2
View File
@@ -73,8 +73,7 @@ module.exports = class BlackjackCommand extends Command {
if (total > 21) {
reason = `Drew ${card.display}, total of ${total}! Dealer bust`;
win = true;
}
if (total >= 17) {
} else if (total >= 17) {
const playerTotal = this.calculate(playerHand);
if (total === playerTotal) {
reason = `${playerTotal}-${total}`;