Merge pull request #197 from AsparagusEduardo/EvoMap_fix

Fix for EVO_MAP evolution.
This commit is contained in:
DizzyEggg 2019-10-06 14:47:11 +02:00 committed by GitHub
commit 8071255e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5785,7 +5785,7 @@ u16 GetEvolutionTargetSpecies(struct Pokemon *mon, u8 type, u16 evolutionItem)
targetSpecies = gEvolutionTable[species][i].targetSpecies; targetSpecies = gEvolutionTable[species][i].targetSpecies;
break; break;
case EVO_MAP: case EVO_MAP:
if (gEvolutionTable[species][i].param <= level && gMapHeader.regionMapSectionId == gEvolutionTable[species][i].param) if (gMapHeader.regionMapSectionId == gEvolutionTable[species][i].param)
targetSpecies = gEvolutionTable[species][i].targetSpecies; targetSpecies = gEvolutionTable[species][i].targetSpecies;
break; break;
} }