mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
@@ -113,8 +113,9 @@ module.exports = class HungerGamesCommand extends Command {
|
||||
const deaths = [];
|
||||
const remaining = tributes.filter(tribute => !tribute.dead);
|
||||
const remainingArr = shuffle([...remaining.keys()]);
|
||||
const turn = new Set(...remainingArr);
|
||||
for (const tribute of remainingArr) {
|
||||
const turn = new Set(remainingArr);
|
||||
for (const tributeKey of remainingArr) {
|
||||
const tribute = tributes.get(tributeKey);
|
||||
if (!turn.has(tribute.name)) continue;
|
||||
const types = this.decideTypes(tribute);
|
||||
const type = types[Math.floor(Math.random() * types.length)];
|
||||
|
||||
Reference in New Issue
Block a user