mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 16:14:01 -05:00
Battle Animations: Fix nature check because natures don't have a get function for some reason
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
This commit is contained in:
parent
fac8296675
commit
dd3dc08a6d
|
|
@ -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'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user