From e7ba9b7b06f77f4d95b315e1fdbe439b9a1f6034 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 5 Apr 2024 12:30:48 -0400 Subject: [PATCH] Master balls can bypass boss bar segments --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index b22c7aebe..78f6cbd5c 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -1537,7 +1537,7 @@ export class CommandPhase extends FieldPhase { }, null, true); } else if (cursor < 5) { const targetPokemon = this.scene.getEnemyField().find(p => p.isActive(true)); - if (targetPokemon.isBoss() && targetPokemon.bossSegmentIndex >= 1) { + if (targetPokemon.isBoss() && targetPokemon.bossSegmentIndex >= 1 && cursor < PokeballType.MASTER_BALL) { 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, () => {