mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Added method $Trainer.party_full?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user