hello guys, i use this code to list preevolutions but it doesnt work for alolan pokemons - for example Alolan Muk is showing nonAlolan Muk as its preevolution - on discord i was said to report it as a bug
Code: Select allprivate List<PokemonSpec> getEvolutionsList(Pokemon pokemon) {
List<PokemonSpec> evolutions = new ArrayList<>();
// Invert list to get proper evolution order
PokemonSpec[] preEvolutions = pokemon.getBaseStats().specPreEvolutions;
if (preEvolutions != null && preEvolutions.length > 0) {
for (int i = preEvolutions.length - 1; i >= 0; i--) {
evolutions.add(preEvolutions[i]);
}
}