mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Fix
This commit is contained in:
@@ -73,8 +73,7 @@ module.exports = class BlackjackCommand extends Command {
|
|||||||
if (total > 21) {
|
if (total > 21) {
|
||||||
reason = `Drew ${card.display}, total of ${total}! Dealer bust`;
|
reason = `Drew ${card.display}, total of ${total}! Dealer bust`;
|
||||||
win = true;
|
win = true;
|
||||||
}
|
} else if (total >= 17) {
|
||||||
if (total >= 17) {
|
|
||||||
const playerTotal = this.calculate(playerHand);
|
const playerTotal = this.calculate(playerHand);
|
||||||
if (total === playerTotal) {
|
if (total === playerTotal) {
|
||||||
reason = `${playerTotal}-${total}`;
|
reason = `${playerTotal}-${total}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user