From be122f4f081101acf3918c04ab52657ae59c248d Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 20 Feb 2024 12:05:25 -0500 Subject: [PATCH] Bosses can heal through broken segments --- src/pokemon.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pokemon.ts b/src/pokemon.ts index 96d652404d5..0eba28788f3 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -2381,7 +2381,8 @@ export class EnemyPokemon extends Pokemon { const healAmount = Math.min(amount, this.getMaxHp() - this.hp, Math.round(hpThreshold + (segmentSize * segmentBypassCount) - this.hp)); this.hp += healAmount; return healAmount; - } + } else if (s >= this.bossSegmentIndex) + return super.heal(amount); } }