mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Fix
This commit is contained in:
@@ -69,7 +69,7 @@ module.exports = class PokerCommand extends Command {
|
|||||||
while (!winner) {
|
while (!winner) {
|
||||||
for (const player of players.values()) {
|
for (const player of players.values()) {
|
||||||
if (players.has(player.id)) continue;
|
if (players.has(player.id)) continue;
|
||||||
rotation = removeFromArray(rotation, player.id);
|
removeFromArray(rotation, player.id);
|
||||||
}
|
}
|
||||||
const bigBlind = players.get(rotation[1]);
|
const bigBlind = players.get(rotation[1]);
|
||||||
bigBlind.money -= bigBlindAmount;
|
bigBlind.money -= bigBlindAmount;
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ module.exports = class MinesweeperCommand extends Command {
|
|||||||
const flag = Boolean(coordPicked[1]);
|
const flag = Boolean(coordPicked[1]);
|
||||||
if (flag) {
|
if (flag) {
|
||||||
if (flagged.includes(`${x - 1},${y - 1}`)) {
|
if (flagged.includes(`${x - 1},${y - 1}`)) {
|
||||||
flagged = removeFromArray(flagged, `${x - 1},${y - 1}`);
|
removeFromArray(flagged, `${x - 1},${y - 1}`);
|
||||||
} else {
|
} else {
|
||||||
flagged.push(`${x - 1},${y - 1}`);
|
flagged.push(`${x - 1},${y - 1}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user