Merge pull request #1996 from ghoulslash/pe/evo_weather

fix EVO_LEVEL_RAIN
This commit is contained in:
ultima-soul 2021-12-16 16:14:08 -08:00 committed by GitHub
commit 5788caef39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6557,7 +6557,8 @@ u16 GetEvolutionTargetSpecies(struct Pokemon *mon, u8 mode, u16 evolutionItem, u
break;
case EVO_LEVEL_RAIN:
j = GetCurrentWeather();
if (j == WEATHER_RAIN || j == WEATHER_RAIN_THUNDERSTORM || j == WEATHER_DOWNPOUR)
if (gEvolutionTable[species][i].param <= level
&& (j == WEATHER_RAIN || j == WEATHER_RAIN_THUNDERSTORM || j == WEATHER_DOWNPOUR))
targetSpecies = gEvolutionTable[species][i].targetSpecies;
break;
case EVO_MAPSEC: