mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 15:53:11 -05:00
Fix crash in getPokemon
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user