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