Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HGSS pokedex preevolutions #3894

Merged
merged 3 commits into from
Jan 3, 2024

Conversation

kaisermg5
Copy link

With all the pokemon refactoring in 1.7 there were a couple bugs introduced while searching pokemon pre-evolutions in the HGSS pokedex.

Description

When printing a pokemon's pre-evolutions there is a loop that goes through all the species to look for the pre-evos. Because of an error the loop was checking the evolution array of the species selected in the pokedex, instead of the species being looped.

Also, since now mega-evolutions are no longer stored as an evolution but as a form, the previous logic used to find a megaevolution base species was wrong. I changed the code so it now checks the form change array.

Discord contact info

mauro58

@Bassoonian
Copy link
Collaborator

Hey, thanks for contributing! Bugfixes go to master rather than upcoming, so if you could rebase, that'd be very nice :) thanks!

@kaisermg5 kaisermg5 changed the base branch from upcoming to master January 3, 2024 00:53
@kaisermg5
Copy link
Author

Sorry... Now it should be ok I think.

@Bassoonian Bassoonian merged commit e2c8ede into rh-hideout:master Jan 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants