mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix hunger-games bug
This commit is contained in:
@@ -78,7 +78,7 @@ module.exports = class HungerGamesCommand extends Command {
|
|||||||
And the winner is... **${remainingArr[0]}**!
|
And the winner is... **${remainingArr[0]}**!
|
||||||
|
|
||||||
__**Kills Leaderboard:**__
|
__**Kills Leaderboard:**__
|
||||||
${this.makeLeaderboard(kills).join('\n')}
|
${this.makeLeaderboard(tributes, kills).join('\n')}
|
||||||
`);
|
`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.client.games.delete(msg.channel.id);
|
this.client.games.delete(msg.channel.id);
|
||||||
@@ -132,7 +132,7 @@ module.exports = class HungerGamesCommand extends Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
makeLeaderboard(kills) {
|
makeLeaderboard(tributes, kills) {
|
||||||
let i = 0;
|
let i = 0;
|
||||||
let previousPts = null;
|
let previousPts = null;
|
||||||
let positionsMoved = 1;
|
let positionsMoved = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user