From 302fc82618cc445c1a1ac552ecc650a3d4b5be06 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 5 May 2024 12:06:49 -0400 Subject: [PATCH] Update hunger-games.js --- commands/games-sp/hunger-games.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-sp/hunger-games.js b/commands/games-sp/hunger-games.js index 8770879f..6d4e2b94 100644 --- a/commands/games-sp/hunger-games.js +++ b/commands/games-sp/hunger-games.js @@ -117,8 +117,8 @@ module.exports = class HungerGamesCommand extends Command { for (const tributeKey of remainingArr) { const tribute = tributes.get(tributeKey); if (!turn.has(tribute.name)) continue; - const types = this.decideTypes(tribute); - if (turn.size === 1) removeFromArray(types, 'kill'); + let types = this.decideTypes(tribute); + if (turn.size === 1) types = removeFromArray(types, 'kill'); const type = types[Math.floor(Math.random() * types.length)]; const valid = eventsArr.filter(event => { if (event.type !== type) return false;