From 14c98adc6fee3cab4ec2fed6c1fe2f2bfe311598 Mon Sep 17 00:00:00 2001 From: Kris Johnson <11083252+KrisXV@users.noreply.github.com> Date: Thu, 1 Aug 2024 01:32:00 -0600 Subject: [PATCH] Add support for Pokemoves --- play.pokemonshowdown.com/js/client-teambuilder.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/play.pokemonshowdown.com/js/client-teambuilder.js b/play.pokemonshowdown.com/js/client-teambuilder.js index 3c2fa70a1c..1f0031d84a 100644 --- a/play.pokemonshowdown.com/js/client-teambuilder.js +++ b/play.pokemonshowdown.com/js/client-teambuilder.js @@ -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) {