Skip to content

Commit

Permalink
Battle Animations: Add support for natures as effect tags
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV authored Jan 11, 2025
1 parent ec3e542 commit fac8296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions play.pokemonshowdown.com/src/battle-animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2859,6 +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) {

Check failure on line 2862 in play.pokemonshowdown.com/src/battle-animations.ts

View workflow job for this annotation

GitHub Actions / build (14.x)

Property 'natures' does not exist on type '(Anonymous class)'.
label = Dex.natures.get(id).name;

Check failure on line 2863 in play.pokemonshowdown.com/src/battle-animations.ts

View workflow job for this annotation

GitHub Actions / build (14.x)

Property 'natures' does not exist on type '(Anonymous class)'.
}
effect = [label, 'neutral'];
}
Expand Down

0 comments on commit fac8296

Please sign in to comment.