Update pokemon-species.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Bertie690 2025-05-11 15:36:08 -04:00 committed by GitHub
parent 4bac0ed3ec
commit 28aa875e78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ export const normalForm: Species[] = [
*/
export function getPokemonSpecies(species: Species | Species[]): PokemonSpecies {
if (Array.isArray(species)) {
// TODO: can't we just use normal int number gen rather than this junk
// TODO: this should not be handled by this function
species = species[Math.floor(Math.random() * species.length)];
}
if (species >= 2000) {