mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-28 17:26:00 +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.ivMaxed = @ivMaxed.clone
|
||||||
ret.ev = @ev.clone
|
ret.ev = @ev.clone
|
||||||
ret.moves = []
|
ret.moves = []
|
||||||
|
ret.owner = @owner.clone
|
||||||
@moves.each_with_index { |m, i| ret.moves[i] = m.clone }
|
@moves.each_with_index { |m, i| ret.moves[i] = m.clone }
|
||||||
ret.ribbons = @ribbons.clone if @ribbons
|
ret.ribbons = @ribbons.clone if @ribbons
|
||||||
return ret
|
return ret
|
||||||
|
|||||||
Reference in New Issue
Block a user