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;