mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +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 = ($PokemonSystem.battlescene == 0)
|
||||||
battle.showAnims = battleRules["battleAnims"] if !battleRules["battleAnims"].nil?
|
battle.showAnims = battleRules["battleAnims"] if !battleRules["battleAnims"].nil?
|
||||||
# Terrain
|
# Terrain
|
||||||
if battleRules["defaultTerrain"].nil? && Settings::OVERWORLD_WEATHER_SETS_BATTLE_TERRAIN
|
if battleRules["defaultTerrain"].nil?
|
||||||
case $game_screen.weather_type
|
if Settings::OVERWORLD_WEATHER_SETS_BATTLE_TERRAIN
|
||||||
when :Storm
|
case $game_screen.weather_type
|
||||||
battle.defaultTerrain = :Electric
|
when :Storm
|
||||||
when :Fog
|
battle.defaultTerrain = :Electric
|
||||||
battle.defaultTerrain = :Misty
|
when :Fog
|
||||||
|
battle.defaultTerrain = :Misty
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
battle.defaultTerrain = battleRules["defaultTerrain"]
|
battle.defaultTerrain = battleRules["defaultTerrain"]
|
||||||
|
|||||||
Reference in New Issue
Block a user