This commit is contained in:
Dragon Fire
2021-01-16 17:23:30 -05:00
parent 5f114cbb81
commit aef7601b88
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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}`);
}