From 8f2c98d14f951f9c0c82fd3a305130f95631b9a4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 5 May 2024 17:23:54 -0400 Subject: [PATCH] Update hunger-games.js --- commands/games-sp/hunger-games.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-sp/hunger-games.js b/commands/games-sp/hunger-games.js index 808c9f9a..d08b7438 100644 --- a/commands/games-sp/hunger-games.js +++ b/commands/games-sp/hunger-games.js @@ -130,7 +130,7 @@ module.exports = class HungerGamesCommand extends Command { }); let event = valid[Math.floor(Math.random() * valid.length)]; if (!event) { - const fallback = eventsArr.filter(e => e.type === 'action' && event.deaths.length === 0); + const fallback = eventsArr.filter(e => e.type === 'action' && e.deaths.length === 0); event = fallback[Math.floor(Math.random() * fallback.length)]; } turn.delete(tribute.name);