Fix final boss burn cheese

pull/34/head
Flashfyre 2024-04-04 14:20:14 -04:00
parent dc9dc98c71
commit b04cdd3f60
1 changed files with 7 additions and 1 deletions

View File

@ -2509,7 +2509,13 @@ export class EnemyPokemon extends Pokemon {
} }
} }
const ret = super.damage(damage, ignoreSegments, preventEndure); switch (this.scene.currentBattle.battleSpec) {
case BattleSpec.FINAL_BOSS:
if (!this.formIndex && this.bossSegmentIndex < 1)
damage = Math.min(damage, this.hp - 1);
}
let ret = super.damage(damage, ignoreSegments, preventEndure);
if (this.isBoss()) { if (this.isBoss()) {
if (ignoreSegments) { if (ignoreSegments) {