mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
[Bug] Pokemon not on the field can't be caught (#6454)
This commit is contained in:
parent
264dd6b2d0
commit
5c22d9ccac
@ -456,7 +456,7 @@ export class CommandPhase extends FieldPhase {
|
|||||||
|
|
||||||
const numBallTypes = 5;
|
const numBallTypes = 5;
|
||||||
if (cursor < numBallTypes) {
|
if (cursor < numBallTypes) {
|
||||||
const targetPokemon = globalScene.getEnemyPokemon();
|
const targetPokemon = globalScene.getEnemyPokemon(false);
|
||||||
if (
|
if (
|
||||||
targetPokemon?.isBoss() &&
|
targetPokemon?.isBoss() &&
|
||||||
targetPokemon?.bossSegmentIndex >= 1 &&
|
targetPokemon?.bossSegmentIndex >= 1 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user