From 351252bdb1a391e62f7a154d7914ac367d32cb09 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 21 Jul 2024 14:43:25 -0700 Subject: [PATCH] Add explicit `Abilities.NONE` checks --- src/data/pokemon-species.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/pokemon-species.ts b/src/data/pokemon-species.ts index 5e68f285cf7b..be7b748061e3 100644 --- a/src/data/pokemon-species.ts +++ b/src/data/pokemon-species.ts @@ -179,10 +179,10 @@ export abstract class PokemonSpeciesForm { getAbilityCount(): integer { let count = 1; - if (this.ability2) { + if (this.ability2 !== Abilities.NONE) { count += 1; } - if (this.abilityHidden) { + if (this.abilityHidden !== Abilities.NONE) { count += 1; } return count;