Skip to content

Commit

Permalink
Add support for Pokemoves
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV committed Aug 1, 2024
1 parent d060c39 commit 14c98ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion play.pokemonshowdown.com/js/client-teambuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,11 @@
}
break;
case 'move1': case 'move2': case 'move3': case 'move4':
val = (id in BattleMovedex ? BattleMovedex[id].name : '');
if (id in BattlePokedex && format && format.endsWith("pokemoves")) {
val = BattlePokedex[id].name;
} else {
val = (id in BattleMovedex ? BattleMovedex[id].name : '');
}
break;
}
if (!val) {
Expand Down

0 comments on commit 14c98ad

Please sign in to comment.