From 3b71487846bd25de632e390ad863483297e5dac3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 3 May 2024 00:29:20 -0400 Subject: [PATCH] Fix --- commands/games-sp/hunger-games.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/games-sp/hunger-games.js b/commands/games-sp/hunger-games.js index 6d1ec9d7..7d52474d 100644 --- a/commands/games-sp/hunger-games.js +++ b/commands/games-sp/hunger-games.js @@ -109,8 +109,9 @@ module.exports = class HungerGamesCommand extends Command { makeEvents(tributes, eventsArr) { const results = []; const deaths = []; - const turn = new Set(tributes.keys()); - for (const tribute of tributes.values()) { + const remaining = tributes.filter(tribute => !tribute.dead); + const turn = new Set(remaining.keys()); + for (const tribute of remaining.values()) { if (!turn.has(tribute.name)) continue; const valid = eventsArr.filter(event => { if (event.requires && event.requires !== 'food' && event.requires !== tribute.weapon) return false;