mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Fixed GameData::Species.icon_bitmap_from_pokemon causing a crash, fixed trainer intro music not stopping after skipping their battle
This commit is contained in:
@@ -146,11 +146,17 @@ module BattleCreationHelperMethods
|
||||
pbMessage(_INTL("SKIPPING BATTLE...")) if trainer_battle && $DEBUG
|
||||
pbMessage(_INTL("AFTER WINNING...")) if trainer_battle && $player.able_pokemon_count > 0
|
||||
$game_temp.clear_battle_rules
|
||||
if $game_temp.memorized_bgm && $game_system.is_a?(Game_System)
|
||||
$game_system.bgm_position = $game_temp.memorized_bgm_position
|
||||
$game_system.bgm_resume($game_temp.memorized_bgm)
|
||||
end
|
||||
$game_temp.memorized_bgm = nil
|
||||
$game_temp.memorized_bgm_position = 0
|
||||
$PokemonGlobal.nextBattleBGM = nil
|
||||
$PokemonGlobal.nextBattleVictoryBGM = nil
|
||||
$PokemonGlobal.nextBattleCaptureME = nil
|
||||
$PokemonGlobal.nextBattleBack = nil
|
||||
pbMEStop
|
||||
$PokemonEncounters.reset_step_count
|
||||
outcome = 1 # Win
|
||||
outcome = 0 if trainer_battle && $player.able_pokemon_count == 0 # Undecided
|
||||
pbSet(outcome_variable, outcome)
|
||||
|
||||
Reference in New Issue
Block a user