Fixed AI_GetSwitchinWeather not considering CONFIG_SNOW_WARNING (#8533)
This commit is contained in:
parent
a3a16acd72
commit
26688dd1ce
@ -1823,7 +1823,7 @@ u32 AI_GetSwitchinWeather(struct BattlePokemon battleMon)
|
||||
case ABILITY_SAND_STREAM:
|
||||
return B_WEATHER_SANDSTORM;
|
||||
case ABILITY_SNOW_WARNING:
|
||||
return B_SNOW_WARNING >= GEN_9 ? B_WEATHER_SNOW : B_WEATHER_HAIL;
|
||||
return GetConfig(CONFIG_SNOW_WARNING) >= GEN_9 ? B_WEATHER_SNOW : B_WEATHER_HAIL;
|
||||
default:
|
||||
return gBattleWeather;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user