From 9bedbc882103618dabe34c3b70a53a1d0438e1cf Mon Sep 17 00:00:00 2001 From: LoneFox Date: Thu, 24 Sep 2015 09:47:59 +0300 Subject: [PATCH] Add copy() method to tokens that need it. --- Mage/src/mage/game/permanent/token/DemonToken.java | 9 +++++++++ Mage/src/mage/game/permanent/token/HumanToken.java | 9 +++++++++ Mage/src/mage/game/permanent/token/WarriorToken.java | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/Mage/src/mage/game/permanent/token/DemonToken.java b/Mage/src/mage/game/permanent/token/DemonToken.java index 5643ff2ad8..824d6eb0a2 100644 --- a/Mage/src/mage/game/permanent/token/DemonToken.java +++ b/Mage/src/mage/game/permanent/token/DemonToken.java @@ -50,6 +50,15 @@ public class DemonToken extends Token { availableImageSetCodes.addAll(Arrays.asList("INN", "AVR", "C14", "ORI")); } + public DemonToken(final DemonToken token) { + super(token); + } + + @Override + public DemonToken copy() { + return new DemonToken(this); + } + @Override public void setExpansionSetCodeForImage(String code) { super.setExpansionSetCodeForImage(code); diff --git a/Mage/src/mage/game/permanent/token/HumanToken.java b/Mage/src/mage/game/permanent/token/HumanToken.java index 9ca595ce97..6e580a5642 100644 --- a/Mage/src/mage/game/permanent/token/HumanToken.java +++ b/Mage/src/mage/game/permanent/token/HumanToken.java @@ -48,6 +48,15 @@ public class HumanToken extends Token { availableImageSetCodes.addAll(Arrays.asList("DKA", "AVR", "FNMP")); } + public HumanToken(final HumanToken token) { + super(token); + } + + @Override + public HumanToken copy() { + return new HumanToken(this); + } + @Override public void setExpansionSetCodeForImage(String code) { super.setExpansionSetCodeForImage(code); diff --git a/Mage/src/mage/game/permanent/token/WarriorToken.java b/Mage/src/mage/game/permanent/token/WarriorToken.java index a864106d3a..5ddc1c3aa2 100644 --- a/Mage/src/mage/game/permanent/token/WarriorToken.java +++ b/Mage/src/mage/game/permanent/token/WarriorToken.java @@ -49,6 +49,15 @@ public class WarriorToken extends Token { availableImageSetCodes.addAll(Arrays.asList("KTK", "DTK")); } + public WarriorToken(final WarriorToken token) { + super(token); + } + + @Override + public WarriorToken copy() { + return new WarriorToken(this); + } + @Override public void setExpansionSetCodeForImage(String code) { super.setExpansionSetCodeForImage(code);