mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Clone the Owner object in Pokemon#clone
This commit is contained in:
@@ -1035,6 +1035,7 @@ class Pokemon
|
||||
ret.ivMaxed = @ivMaxed.clone
|
||||
ret.ev = @ev.clone
|
||||
ret.moves = []
|
||||
ret.owner = @owner.clone
|
||||
@moves.each_with_index { |m, i| ret.moves[i] = m.clone }
|
||||
ret.ribbons = @ribbons.clone if @ribbons
|
||||
return ret
|
||||
|
||||
Reference in New Issue
Block a user