mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
Fix
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = class BlackjackCommand extends Command {
|
||||
const card = this.draw(msg.channel, playerHand);
|
||||
const total = this.calculate(playerHand);
|
||||
if (total > 21) {
|
||||
reason = `Drew ${card.display}, total of ${total}! Bust`;
|
||||
reason = `You drew ${card.display}, total of ${total}! Bust`;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@@ -71,7 +71,7 @@ module.exports = class BlackjackCommand extends Command {
|
||||
const card = this.draw(msg.channel, dealerHand);
|
||||
const total = this.calculate(dealerHand);
|
||||
if (total > 21) {
|
||||
reason = `Drew ${card.display}, total of ${total}! Dealer bust`;
|
||||
reason = `Dealer drew ${card.display}, total of ${total}! Dealer bust`;
|
||||
win = true;
|
||||
} else if (total >= 17) {
|
||||
const playerTotal = this.calculate(playerHand);
|
||||
|
||||
Reference in New Issue
Block a user