mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Fix
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = class BattleCommand extends Command {
|
||||
}
|
||||
}
|
||||
while (!battle.winner) {
|
||||
const choice = await battle.attacker.chooseAction();
|
||||
const choice = await battle.attacker.chooseAction(msg);
|
||||
if (choice === 'fight') {
|
||||
const damage = Math.floor(Math.random() * (battle.defender.guarding ? 5 : 50)) + 1;
|
||||
await msg.say(`${battle.attacker} deals **${damage}** damage!`);
|
||||
|
||||
Reference in New Issue
Block a user