From 21c1f1a9a40b9e18b7157afc802535b199d6bdda Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Thu, 30 Jan 2025 13:55:38 +1100 Subject: [PATCH] Update src/data/pokemon-species.ts Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com> --- src/data/pokemon-species.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/pokemon-species.ts b/src/data/pokemon-species.ts index 5a8b628baa5..f2ab2f6520f 100644 --- a/src/data/pokemon-species.ts +++ b/src/data/pokemon-species.ts @@ -237,7 +237,7 @@ export abstract class PokemonSpeciesForm { * @returns The id of the ability */ getPassiveAbility(formIndex?: number): Abilities { - if (formIndex === undefined) { + if (Utils.isNullOrUndefined(formIndex)) { formIndex = this.formIndex; } let starterSpeciesId = this.speciesId;