From 478ec45e9c2e5eed4dc6e2471fd1f0e01f944eb5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 6 May 2024 14:26:55 -0400 Subject: [PATCH] Fix --- 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 7d4cd6d3..b558c0d1 100644 --- a/commands/games-sp/hunger-games.js +++ b/commands/games-sp/hunger-games.js @@ -120,10 +120,10 @@ module.exports = class HungerGamesCommand extends Command { let types = this.decideTypes(tribute); if (turn.size === 1) types = removeFromArray(types, 'kill'); const type = types[Math.floor(Math.random() * types.length)]; + const useWeapon = Math.floor(Math.random() * 3); const valid = eventsArr.filter(event => { if (event.type !== type) return false; if (event.type === 'kill' && tribute.weapon && !event.requires) { - const useWeapon = Math.floor(Math.random() * 3); if (useWeapon) return false; } if (event.requires && event.requires !== 'food' && event.requires !== tribute.weapon) return false;