This commit is contained in:
infinitefusion
2022-07-21 11:09:04 -04:00
parent 92bd2a3cf7
commit 5b4ee681d6
6 changed files with 118 additions and 3 deletions

View File

@@ -56,6 +56,10 @@ module PokeBattle_BattleCommon
pbPlayer.pokedex.set_shadow_pokemon_owned(pkmn.species) if pkmn.shadowPokemon?
# Store caught Pokémon
pbStorePokemon(pkmn)
if $game_switches[AUTOSAVE_CATCH_SWITCH]
Kernel.tryAutosave()
end
end
@caughtPokemon.clear
end

View File

@@ -417,6 +417,10 @@ class PokeBattle_Battle
pbGainMoney if @decision!=4
# Hide remaining trainer
@scene.pbShowOpponent(@opponent.length) if trainerBattle? && @caughtPokemon.length>0
if $game_switches[AUTOSAVE_WIN_SWITCH]
Kernel.tryAutosave()
end
##### LOSE, DRAW #####
when 2, 5
PBDebug.log("")