Fixes possible battle error when registering pokemon in pokedex

This commit is contained in:
infinitefusion
2024-12-22 11:33:14 -05:00
parent 5085a89614
commit b89420afd7

View File

@@ -634,6 +634,7 @@ class PokeBattle_Battle
def pbSetSeen(battler)
return if !battler || !@internalBattle
try_resync_pokedex()
pbPlayer.pokedex.register(battler.displaySpecies,battler.displayGender,battler.displayForm)
end