mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed default terrain not being set properly sometimes
This commit is contained in:
@@ -227,12 +227,14 @@ module BattleCreationHelperMethods
|
||||
battle.showAnims = ($PokemonSystem.battlescene == 0)
|
||||
battle.showAnims = battleRules["battleAnims"] if !battleRules["battleAnims"].nil?
|
||||
# Terrain
|
||||
if battleRules["defaultTerrain"].nil? && Settings::OVERWORLD_WEATHER_SETS_BATTLE_TERRAIN
|
||||
case $game_screen.weather_type
|
||||
when :Storm
|
||||
battle.defaultTerrain = :Electric
|
||||
when :Fog
|
||||
battle.defaultTerrain = :Misty
|
||||
if battleRules["defaultTerrain"].nil?
|
||||
if Settings::OVERWORLD_WEATHER_SETS_BATTLE_TERRAIN
|
||||
case $game_screen.weather_type
|
||||
when :Storm
|
||||
battle.defaultTerrain = :Electric
|
||||
when :Fog
|
||||
battle.defaultTerrain = :Misty
|
||||
end
|
||||
end
|
||||
else
|
||||
battle.defaultTerrain = battleRules["defaultTerrain"]
|
||||
|
||||
Reference in New Issue
Block a user