mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 07:35:00 +00:00
Replace all usage of pbNewPkmn with Pokemon.new
This commit is contained in:
@@ -76,7 +76,7 @@ def pbLoadTrainer(trainerid,trainername,partyid=0)
|
||||
for poke in trainer[3]
|
||||
species = pbGetSpeciesFromFSpecies(poke[TPSPECIES])[0]
|
||||
level = poke[TPLEVEL]
|
||||
pokemon = pbNewPkmn(species,level,opponent,false)
|
||||
pokemon = Pokemon.new(species,level,opponent,false)
|
||||
if poke[TPFORM]
|
||||
pokemon.forcedForm = poke[TPFORM] if MultipleForms.hasFunction?(pokemon.species,"getForm")
|
||||
pokemon.formSimple = poke[TPFORM]
|
||||
|
||||
Reference in New Issue
Block a user