Attack more often than defend

This commit is contained in:
Daniel Odendahl Jr
2018-10-10 15:06:45 +00:00
parent f524f42e9c
commit 052a378a3c
+1 -1
View File
@@ -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)];