* Bugfixes

Fixed pbLearnMove not asking you to replace a move if you have the max amount of moves
Removed instance of hasOwned

Co-authored-by: Maruno17 <serialcolour@hotmail.com>
This commit is contained in:
Golisopod-User
2021-05-01 22:10:05 +05:30
committed by GitHub
parent 748ea472ba
commit 90c18ecc79
2 changed files with 11 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ module PokeBattle_BattleCommon
@caughtPokemon.each do |pkmn|
pbPlayer.pokedex.register(pkmn) # In case the form changed upon leaving battle
# Record the Pokémon's species as owned in the Pokédex
if !pbPlayer.hasOwned?(pkmn.species)
if !pbPlayer.owned?(pkmn.species)
pbPlayer.pokedex.set_owned(pkmn.species)
if $Trainer.has_pokedex
pbDisplayPaused(_INTL("{1}'s data was added to the Pokédex.",pkmn.name))