mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Attack more often than defend
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = class Battler {
|
||||
|
||||
async chooseAction(msg) {
|
||||
if (this.bot) {
|
||||
const botChoices = ['attack', 'defend'];
|
||||
const botChoices = ['attack', 'attack', 'defend'];
|
||||
if (this.canSpecial) botChoices.push('special');
|
||||
if (this.canHeal) botChoices.push('cure');
|
||||
return botChoices[Math.floor(Math.random() * botChoices.length)];
|
||||
|
||||
Reference in New Issue
Block a user