Merge pull request #1489 from LOuroboros/panchams_evo_method

Fixed Pancham's evo method
This commit is contained in:
Eduardo Quezada D'Ottone 2021-05-21 11:38:22 -04:00 committed by GitHub
commit dff6a574f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6483,9 +6483,9 @@ u16 GetEvolutionTargetSpecies(struct Pokemon *mon, u8 mode, u16 evolutionItem, u
{
for (j = 0; j < PARTY_SIZE; j++)
{
u16 species = GetMonData(&gPlayerParty[j], MON_DATA_SPECIES, NULL);
if (gBaseStats[species].type1 == TYPE_DARK
|| gBaseStats[species].type2 == TYPE_DARK)
u16 currSpecies = GetMonData(&gPlayerParty[j], MON_DATA_SPECIES, NULL);
if (gBaseStats[currSpecies].type1 == TYPE_DARK
|| gBaseStats[currSpecies].type2 == TYPE_DARK)
{
targetSpecies = gEvolutionTable[species][i].targetSpecies;
break;