Skip to content

Commit

Permalink
Fix level in details
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik99999 committed Oct 17, 2023
1 parent 96de1da commit f577d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f577d46

Please sign in to comment.