mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
Fix
This commit is contained in:
@@ -66,9 +66,10 @@ module.exports = class BlackjackCommand extends Command {
|
|||||||
playerTurn = false;
|
playerTurn = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const total = this.calculate(dealerHand);
|
const inital = this.calculate(dealerHand);
|
||||||
let card;
|
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) {
|
if (total > 21) {
|
||||||
reason = `Dealer drew ${card.display}, total of ${total}! Dealer bust`;
|
reason = `Dealer drew ${card.display}, total of ${total}! Dealer bust`;
|
||||||
win = true;
|
win = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user