Skip to content

Commit

Permalink
Add explicit Abilities.NONE checks
Browse files Browse the repository at this point in the history
  • Loading branch information
DayKev committed Jul 21, 2024
1 parent 71f4205 commit 351252b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/pokemon-species.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 351252b

Please sign in to comment.