mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-26 13:12:34 -05:00
Fix forme-changed icon support
This commit is contained in:
@@ -579,7 +579,7 @@ const Dex = {
|
||||
let id = toId(pokemon);
|
||||
if (pokemon && pokemon.species) id = toId(pokemon.species);
|
||||
if (pokemon && pokemon.volatiles && pokemon.volatiles.formechange && !pokemon.volatiles.transform) {
|
||||
id = toId(pokemon.volatiles.formechange[2]);
|
||||
id = toId(pokemon.volatiles.formechange[1]);
|
||||
}
|
||||
if (pokemon && pokemon.num) num = pokemon.num;
|
||||
else if (window.BattlePokemonSprites && BattlePokemonSprites[id] && BattlePokemonSprites[id].num) num = BattlePokemonSprites[id].num;
|
||||
|
||||
Reference in New Issue
Block a user