diff --git a/src/battle.ts b/src/battle.ts index f82cc78f1..9e173fbb6 100644 --- a/src/battle.ts +++ b/src/battle.ts @@ -3017,7 +3017,7 @@ class Battle { return null; } getPokemon(pokemonid: string | undefined) { - if (!pokemonid || pokemonid === '??') return null; + if (!pokemonid || pokemonid === '??' || pokemonid === 'null') return null; const {siden, slot, pokemonid: parsedPokemonid} = this.parsePokemonId(pokemonid); pokemonid = parsedPokemonid;