Fixed some bugs which prevented correct usage of balls

This commit is contained in:
Wlowscha 2025-08-16 16:25:35 +02:00
parent 7673d8dfae
commit 98df023c11
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -402,6 +402,8 @@ export class CommandPhase extends FieldPhase {
} else if ((isClassic && missingMultipleStarters) || (isEndless && isEndlessMinorBoss) || isDaily) {
// Uncatchable final boss in classic and endless
this.queueShowText("battle:noPokeballForceFinalBoss");
} else {
return true;
}
} else if (battleType === BattleType.TRAINER) {
this.queueShowText("battle:noPokeballTrainer");
@ -450,10 +452,12 @@ export class CommandPhase extends FieldPhase {
) {
if (restrictMasterBall) {
this.queueShowText("battle:noPokeballStrongFinalBossCatchable");
} else if (cursor < PokeballType.MASTER_BALL) {
this.queueShowText("battle:noPokeballStrong");
return false;
}
if (cursor < PokeballType.MASTER_BALL) {
this.queueShowText("battle:noPokeballStrong");
return false;
}
return false;
}
globalScene.currentBattle.turnCommands[this.fieldIndex] = {