Xiao only heals below 200 HP

This commit is contained in:
Daniel Odendahl Jr
2018-10-10 15:09:18 +00:00
parent 052a378a3c
commit 1201f2e1b6
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class Battler {
if (this.bot) {
const botChoices = ['attack', 'attack', 'defend'];
if (this.canSpecial) botChoices.push('special');
if (this.canHeal) botChoices.push('cure');
if (this.canHeal && this.hp < 200) botChoices.push('cure');
return botChoices[Math.floor(Math.random() * botChoices.length)];
}
let content = stripIndents`