@@ -27,7 +27,7 @@ const getPokemon = async (minLat, maxLat, minLon, maxLon, showPVP, showIV, updat
2727 if ( split . length === 2 ) {
2828 const pokemonId = parseInt ( split [ 0 ] ) ;
2929 const formId = parseInt ( split [ 1 ] ) ;
30- if ( ( masterfile . pokemon [ pokemonId ] || { } ) . default_form_id === split [ 1 ] ) {
30+ if ( ( masterfile . pokemon [ pokemonId ] || { } ) . default_form_id === formId ) {
3131 pokemonLookup [ pokemonId ] = false ;
3232 }
3333 formLookup [ formId ] = false ;
@@ -56,7 +56,7 @@ const getPokemon = async (minLat, maxLat, minLon, maxLon, showPVP, showIV, updat
5656 if ( split . length === 2 ) {
5757 const pokemonId = parseInt ( split [ 0 ] ) ;
5858 const formId = parseInt ( split [ 1 ] ) ;
59- if ( ( masterfile . pokemon [ pokemonId ] || { } ) . default_form_id === split [ 1 ] ) {
59+ if ( ( masterfile . pokemon [ pokemonId ] || { } ) . default_form_id === formId ) {
6060 pokemonLookup [ pokemonId ] = jsFilter ;
6161 }
6262 formLookup [ formId ] = jsFilter ;
@@ -179,7 +179,7 @@ const getGyms = async (minLat, maxLat, minLon, maxLon, updated = 0, showRaids =
179179 excludePokemonIds . push ( pokemonId ) ;
180180 } else {
181181 excludeFormIds . push ( formId ) ;
182- if ( ( masterfile . pokemon [ pokemonId ] || { } ) . default_form_id === split [ 1 ] ) {
182+ if ( ( masterfile . pokemon [ pokemonId ] || { } ) . default_form_id === formId ) {
183183 excludePokemonIds . push ( pokemonId ) ;
184184 }
185185 }
0 commit comments