mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
More bugfixes (and one Gen 8 addition) (#155)
* Added comment indicating unused method pbRefreshSceneMap * Removed superfluous ending of Beak Blast's effect * Fixed crash when playing an animation in the animation player * Added SwSh Terrain effects
This commit is contained in:
@@ -109,11 +109,20 @@ def pbPrepareBattle(battle)
|
||||
battle.showAnims = ($PokemonSystem.battlescene == 0)
|
||||
battle.showAnims = battleRules["battleAnims"] if !battleRules["battleAnims"].nil?
|
||||
# Terrain
|
||||
battle.defaultTerrain = battleRules["defaultTerrain"] if !battleRules["defaultTerrain"].nil?
|
||||
if battleRules["defaultTerrain"].nil? && Settings::OVERWORLD_WEATHERS_SET_TERRAINS
|
||||
case $game_screen.weather_type
|
||||
when :Storm
|
||||
battle.defaultTerrain = :Electric
|
||||
when :Fog
|
||||
battle.defaultTerrain = :Misty
|
||||
end
|
||||
else
|
||||
battle.defaultTerrain = battleRules["defaultTerrain"]
|
||||
end
|
||||
# Weather
|
||||
if battleRules["defaultWeather"].nil?
|
||||
case GameData::Weather.get($game_screen.weather_type).category
|
||||
when :Rain
|
||||
when :Rain, :Storm
|
||||
battle.defaultWeather = :Rain
|
||||
when :Hail
|
||||
battle.defaultWeather = :Hail
|
||||
|
||||
Reference in New Issue
Block a user