From ddc80d2d98572d8ac52f381c1dbf5bf86ca28a20 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 5 May 2024 11:28:01 -0400 Subject: [PATCH] Update hunger-games.js --- commands/games-sp/hunger-games.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/games-sp/hunger-games.js b/commands/games-sp/hunger-games.js index 43c24e2b..dbd950ac 100644 --- a/commands/games-sp/hunger-games.js +++ b/commands/games-sp/hunger-games.js @@ -128,6 +128,7 @@ module.exports = class HungerGamesCommand extends Command { return event.tributes <= turn.size && event.deaths < turn.size; }); const event = valid[Math.floor(Math.random() * valid.length)]; + if (!event) console.log(tribute); turn.delete(tribute.name); if (event.tributes === 1) { if (event.requires === 'food') tribute.food--;