mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Use new Pokemon::Owner methods
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user