mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
Fix a crash in PokeBattle_Trainer.copy (#95)
This commit is contained in:
@@ -45,9 +45,8 @@ class PokeBattle_Trainer
|
|||||||
attr_reader :mysterygiftaccess, :mysterygift
|
attr_reader :mysterygiftaccess, :mysterygift
|
||||||
|
|
||||||
def self.copy(trainer)
|
def self.copy(trainer)
|
||||||
ret = PlayerTrainer.new
|
validate trainer => self
|
||||||
ret.trainer_type = trainer.trainertype
|
ret = PlayerTrainer.new(trainer.name, trainer.trainertype)
|
||||||
ret.name = trainer.name
|
|
||||||
ret.id = trainer.id
|
ret.id = trainer.id
|
||||||
ret.character_ID = trainer.metaID if trainer.metaID
|
ret.character_ID = trainer.metaID if trainer.metaID
|
||||||
ret.outfit = trainer.outfit if trainer.outfit
|
ret.outfit = trainer.outfit if trainer.outfit
|
||||||
|
|||||||
Reference in New Issue
Block a user