[Bug] Pokemon not on the field can't be caught (#6454)

This commit is contained in:
Wlowscha 2025-08-31 02:54:35 +02:00 committed by GitHub
parent 264dd6b2d0
commit 5c22d9ccac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -456,7 +456,7 @@ export class CommandPhase extends FieldPhase {
const numBallTypes = 5;
if (cursor < numBallTypes) {
const targetPokemon = globalScene.getEnemyPokemon();
const targetPokemon = globalScene.getEnemyPokemon(false);
if (
targetPokemon?.isBoss() &&
targetPokemon?.bossSegmentIndex >= 1 &&