Fixed typo in Duel minigame, fixed crash when battling a single trainer while you have a

This commit is contained in:
Maruno17
2020-11-11 22:09:34 +00:00
parent 5534f338e7
commit 9841bd2630
4 changed files with 6 additions and 3 deletions

View File

@@ -266,6 +266,7 @@ def pbWildBattleCore(*args)
$Trainer.party.each { |pkmn| playerParty.push(pkmn) }
playerPartyStarts.push(playerParty.length)
ally.party.each { |pkmn| playerParty.push(pkmn) }
setBattleRule("double") if !$PokemonTemp.battleRules["size"]
end
# Create the battle scene (the visual side of it)
scene = pbNewBattleScene
@@ -411,6 +412,7 @@ def pbTrainerBattleCore(*args)
$Trainer.party.each { |pkmn| playerParty.push(pkmn) }
playerPartyStarts.push(playerParty.length)
ally.party.each { |pkmn| playerParty.push(pkmn) }
setBattleRule("double") if !$PokemonTemp.battleRules["size"]
end
# Create the battle scene (the visual side of it)
scene = pbNewBattleScene