mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Xiao only heals below 200 HP
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = class Battler {
|
|||||||
if (this.bot) {
|
if (this.bot) {
|
||||||
const botChoices = ['attack', 'attack', 'defend'];
|
const botChoices = ['attack', 'attack', 'defend'];
|
||||||
if (this.canSpecial) botChoices.push('special');
|
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)];
|
return botChoices[Math.floor(Math.random() * botChoices.length)];
|
||||||
}
|
}
|
||||||
let content = stripIndents`
|
let content = stripIndents`
|
||||||
|
|||||||
Reference in New Issue
Block a user