Update hunger-games.js

This commit is contained in:
Dragon Fire
2024-05-05 17:23:54 -04:00
committed by GitHub
parent 45bd776946
commit 8f2c98d14f
+1 -1
View File
@@ -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);