mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-26 11:38:54 +00:00
Master balls can bypass boss bar segments
This commit is contained in:
parent
3d083a7d4d
commit
e7ba9b7b06
@ -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, () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user