mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
@@ -123,7 +123,7 @@ module.exports = class HungerGamesCommand extends Command {
|
||||
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() * 2);
|
||||
const useWeapon = Math.floor(Math.random() * 3);
|
||||
if (useWeapon) return false;
|
||||
}
|
||||
if (event.requires && event.requires !== 'food' && event.requires !== tribute.weapon) return false;
|
||||
|
||||
Reference in New Issue
Block a user