From fcb21f8b619b940225f0137c69a50a1e1674569d Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 20 Feb 2024 10:32:21 -0500 Subject: [PATCH] Fix boss catch logic not taking cleared segments into account --- src/battle-phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle-phases.ts b/src/battle-phases.ts index 5d0964ebee3..a878b8db18b 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -1372,7 +1372,7 @@ export class CommandPhase extends FieldPhase { }, null, true); } else if (cursor < 4) { const targetPokemon = this.scene.getEnemyField().find(p => p.isActive(true)); - if (targetPokemon.isBoss() && targetPokemon.getBossSegmentIndex()) { + if (targetPokemon.isBoss() && targetPokemon.bossSegmentIndex) { this.scene.ui.setMode(Mode.COMMAND, this.fieldIndex); this.scene.ui.setMode(Mode.MESSAGE); this.scene.ui.showText(`The target Pokémon is too strong to be caught!\nYou need to weaken it first!`, null, () => {