mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user