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

This commit is contained in:
Kris Johnson 2025-01-11 12:53:45 -07:00
parent fac8296675
commit dd3dc08a6d

View File

@ -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'];
}