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