mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
fixes unsynced pokedex issue
This commit is contained in:
@@ -634,7 +634,6 @@ class PokeBattle_Battle
|
||||
|
||||
def pbSetSeen(battler)
|
||||
return if !battler || !@internalBattle
|
||||
pbPlayer.pokedex.try_resync_pokedex()
|
||||
pbPlayer.pokedex.register(battler.displaySpecies,battler.displayGender,battler.displayForm)
|
||||
end
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ class Player < Trainer
|
||||
end
|
||||
|
||||
def resync_pokedex
|
||||
echoln "syncing pokedex"
|
||||
@seen_standard = resync_standard_pokedex_array(@seen_standard)
|
||||
@owned_standard = resync_standard_pokedex_array(@owned_standard)
|
||||
|
||||
@@ -141,6 +142,7 @@ class Player < Trainer
|
||||
end
|
||||
|
||||
def set_seen(species, should_refresh_dexes = true)
|
||||
try_resync_pokedex()
|
||||
dexNum = getDexNumberForSpecies(species)
|
||||
if isTripleFusion(dexNum)
|
||||
set_seen_triple(species)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user