Fixed default weather not returning after a primal weather ends

This commit is contained in:
Maruno17
2020-09-21 19:23:59 +01:00
parent 7c1b08c6b4
commit 7749dec2d4

View File

@@ -692,9 +692,11 @@ class PokeBattle_Battle
pbDisplay("The mysterious air current has dissipated!")
end
end
# Check for form changes caused by the weather changing
if @field.weather!=oldWeather
# Check for form changes caused by the weather changing
eachBattler { |b| b.pbCheckFormOnWeatherChange }
# Start up the default weather
pbStartWeather(nil,@field.defaultWeather) if @field.defaultWeather!=PBWeather::None
end
end