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