From 1201f2e1b6202215526c723d137def7aa4cfa726 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 10 Oct 2018 15:09:18 +0000 Subject: [PATCH] Xiao only heals below 200 HP --- structures/battle/Battler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/battle/Battler.js b/structures/battle/Battler.js index 3fd13c15..c51e818a 100644 --- a/structures/battle/Battler.js +++ b/structures/battle/Battler.js @@ -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`