Master balls can bypass boss bar segments

pull/40/head
Flashfyre 2024-04-05 12:30:48 -04:00
parent 3d083a7d4d
commit e7ba9b7b06
1 changed files with 1 additions and 1 deletions

View File

@ -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, () => {