Fixed crash when using upgradeRibbon, fixed crash when trading Pokémon, fixed crash when trying to play Triple Triad, fixed crash when generating Battle Frontier data

This commit is contained in:
Maruno17
2021-12-11 13:25:23 +00:00
parent b9d69b780b
commit 241851a75b
4 changed files with 16 additions and 17 deletions

View File

@@ -730,7 +730,7 @@ class TriadScreen
square = TriadSquare.new
if @elements
loop do
trial_type = type_keys[type_keys.sample]
trial_type = type_keys.sample
type_data = GameData::Type.get(trial_type)
next if type_data.pseudo_type
square.type = type_data.id
@@ -774,7 +774,7 @@ class TriadScreen
species_keys = GameData::Species.keys
candidates = []
while candidates.length < 200
card = species_keys[species_keys.sample]
card = species_keys.sample
card_data = GameData::Species.get(card)
card = card_data.id # Make sure it's a symbol
triad = TriadCard.new(card)