mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Replace all usage of pbNewPkmn with Pokemon.new
This commit is contained in:
@@ -206,7 +206,7 @@ def pbStartTrade(pokemonIndex,newpoke,nickname,trainerName,trainerGender=0)
|
||||
raise _INTL("Species does not exist ({1}).",newpoke) if !hasConst?(PBSpecies,newpoke)
|
||||
newpoke = getID(PBSpecies,newpoke)
|
||||
end
|
||||
yourPokemon = pbNewPkmn(newpoke,myPokemon.level,opponent)
|
||||
yourPokemon = Pokemon.new(newpoke,myPokemon.level,opponent)
|
||||
end
|
||||
yourPokemon.name = nickname
|
||||
yourPokemon.obtainMode = 2 # traded
|
||||
|
||||
Reference in New Issue
Block a user