mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fix Crash on attempting to get Favored Types (#120)
This commit is contained in:
@@ -279,7 +279,7 @@ class PokemonEncounters
|
|||||||
if favored_type
|
if favored_type
|
||||||
new_enc_list = []
|
new_enc_list = []
|
||||||
enc_list.each do |enc|
|
enc_list.each do |enc|
|
||||||
species_data = GameData::Species.get(enc[0])
|
species_data = GameData::Species.get(enc[1])
|
||||||
t1 = species_data.type1
|
t1 = species_data.type1
|
||||||
t2 = species_data.type2
|
t2 = species_data.type2
|
||||||
new_enc_list.push(enc) if t1 == favored_type || t2 == favored_type
|
new_enc_list.push(enc) if t1 == favored_type || t2 == favored_type
|
||||||
|
|||||||
Reference in New Issue
Block a user