Ishadijcks / Ishadijcks.github.io

PokéClicker
15 stars 32 forks source link

Some Pokémons don't evolve correctly. #6

Closed Ishadijcks closed 8 years ago

Ishadijcks commented 8 years ago

For some reason, Pokémon don't always evolve correctly. I suspect it has something to do with the sort method combined with the evolution check. But I couldn't find anything wrong in the evolution check.

Ishadijcks commented 8 years ago

I'm 100% sure the evolved attribute can only be set when the pokemon should evolve. And when that happens the game also tries to catch that pokemons evolution. So I think that only 2 things can go wrong:

I'm suspecting the first one, but I can't replicate it so I can't fix it

Ishadijcks commented 8 years ago

Fixed, huge thanks to @elegant-rake. He was the one who figured out that capturing a Pokémon resorts the list.