mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Update hunger-games.js
This commit is contained in:
@@ -131,7 +131,7 @@ module.exports = class HungerGamesCommand extends Command {
|
|||||||
let event = valid[Math.floor(Math.random() * valid.length)];
|
let event = valid[Math.floor(Math.random() * valid.length)];
|
||||||
if (!event) {
|
if (!event) {
|
||||||
const fallback = eventsArr.filter(e => e.type === 'action' && event.deaths.length === 0);
|
const fallback = eventsArr.filter(e => e.type === 'action' && event.deaths.length === 0);
|
||||||
event = fallback[Math.floor(Math.random() * fallback.length];
|
event = fallback[Math.floor(Math.random() * fallback.length)];
|
||||||
}
|
}
|
||||||
turn.delete(tribute.name);
|
turn.delete(tribute.name);
|
||||||
if (event.tributes === 1) {
|
if (event.tributes === 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user