mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Adds factory for Pokemon class
This commit is contained in:
@@ -304,7 +304,7 @@ module GameData
|
||||
level = getRematchLevel(level, nbRematch)
|
||||
species = getSpecies(evolveRematchPokemon(nbRematch, species)).id
|
||||
end
|
||||
pkmn = Pokemon.new(species, level, trainer, false)
|
||||
pkmn = Pokemon.create(species, level, trainer, false)
|
||||
|
||||
trainer.party.push(pkmn)
|
||||
# Set Pokémon's properties if defined
|
||||
|
||||
Reference in New Issue
Block a user