From f577d46169df48eb140bf50968db2e87e18e64c4 Mon Sep 17 00:00:00 2001 From: Karthik99999 Date: Mon, 16 Oct 2023 22:02:10 -0700 Subject: [PATCH] Fix level in details --- src/battle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle.ts b/src/battle.ts index f44238005b..f86564a45b 100644 --- a/src/battle.ts +++ b/src/battle.ts @@ -3586,7 +3586,7 @@ export class Battle { const side = this.getSide(args[1]); side.clearPokemon(); for (const set of team) { - const details = set.species + (set.level === 100 ? '' : ', L' + set.level) + + const details = set.species + (!set.level || set.level === 100 ? '' : ', L' + set.level) + (!set.gender || set.gender === 'N' ? '' : ', ' + set.gender) + (set.shiny ? ', shiny' : ''); const pokemon = side.addPokemon('', '', details); if (set.item) pokemon.item = set.item;