Added method $Trainer.party_full?

This commit is contained in:
Maruno17
2021-01-11 23:41:35 +00:00
parent f72ce06654
commit 2ab552ad3c
11 changed files with 40 additions and 28 deletions

View File

@@ -7,7 +7,7 @@ class PokeBattle_NullBattlePeer
def pbOnLeavingBattle(battle,pkmn,usedInBattle,endBattle=false); end
def pbStorePokemon(player,pkmn)
player.party[player.party.length] = pkmn if player.party.length < MAX_PARTY_SIZE
player.party[player.party.length] = pkmn if !player.party_full?
return -1
end
@@ -23,7 +23,7 @@ end
#===============================================================================
class PokeBattle_RealBattlePeer
def pbStorePokemon(player,pkmn)
if player.party.length < MAX_PARTY_SIZE
if !player.party_full?
player.party[player.party.length] = pkmn
return -1
end