Skip to content

Commit

Permalink
Battle Animations: Fix nature check because natures don't have a `get…
Browse files Browse the repository at this point in the history
…` function for some reason
  • Loading branch information
KrisXV committed Jan 11, 2025
1 parent fac8296 commit dd3dc08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions play.pokemonshowdown.com/src/battle-animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2859,8 +2859,8 @@ export class PokemonSprite extends Sprite {
label = Dex.moves.get(id).name;
} else if (Dex.abilities.get(id).exists) {
label = Dex.abilities.get(id).name;
} else if (Dex.natures.get(id).exists) {
label = Dex.natures.get(id).name;
} else if ((BattleNatures as any)[id.substr(0, 1).toUpperCase() + id.substr(1).toLowerCase()]) {
label = id.substr(0, 1).toUpperCase() + id.substr(1).toLowerCase();
}
effect = [label, 'neutral'];
}
Expand Down

0 comments on commit dd3dc08

Please sign in to comment.