Use new Pokemon::Owner methods

This commit is contained in:
jonisavo
2020-10-16 12:19:15 +03:00
parent 66c255546d
commit 2b2df4ae8f
7 changed files with 11 additions and 14 deletions

View File

@@ -141,8 +141,7 @@ module PokeBattle_BattleCommon
end
# Modify the Pokémon's properties because of the capture
if pbIsSnagBall?(ball)
pkmn.ot = pbPlayer.name
pkmn.trainerID = pbPlayer.id
pkmn.owner = Pokemon::Owner.new_from_trainer(pbPlayer)
end
BallHandlers.onCatch(ball,self,pkmn)
pkmn.ballused = pbGetBallType(ball)