fix evo_level_rain

This commit is contained in:
ghoulslash 2021-12-14 13:56:25 -05:00
parent e4315c89e9
commit bb9fb72436

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: