From bb9fb72436ad9615de806f9381d8ad65a42ea9ea Mon Sep 17 00:00:00 2001 From: ghoulslash Date: Tue, 14 Dec 2021 13:56:25 -0500 Subject: [PATCH] fix evo_level_rain --- src/pokemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pokemon.c b/src/pokemon.c index eb4ec02d5..0767af63f 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -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: