mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user