Fix Static/Magnet Pull wild encounter modifier

This commit is contained in:
SylviBlossom
2023-05-12 19:48:40 -07:00
parent 89977a8d49
commit e7d52aea9b

View File

@@ -293,7 +293,7 @@ class PokemonEncounters
if favored_type
new_enc_list = []
enc_list.each do |enc|
species_data = GameData::Species.get(enc[0])
species_data = GameData::Species.get(enc[1])
t1 = species_data.type1
t2 = species_data.type2
new_enc_list.push(enc) if t1 == favored_type || t2 == favored_type