diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 3d91e9779..2fc8e09c5 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -2374,6 +2374,10 @@ export class EnemyPokemon extends Pokemon { const ret = super.damage(damage, ignoreSegments, preventEndure); if (this.isBoss()) { + if (ignoreSegments) { + const segmentSize = this.getMaxHp() / this.bossSegments; + clearedBossSegmentIndex = Math.ceil(this.hp / segmentSize); + } if (clearedBossSegmentIndex <= this.bossSegmentIndex) this.handleBossSegmentCleared(clearedBossSegmentIndex); this.battleInfo.updateBossSegments(this);