From 1d46a90bbdec49569e3dbcf7a6cd32d0e97cf1a0 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 17 Nov 2012 21:01:05 +0100 Subject: [PATCH] Fixed a bug that copys of tokens used the increased values from cards like "Intangible Virtue" for power and toughness. --- Mage/src/mage/util/functions/CopyTokenFunction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mage/src/mage/util/functions/CopyTokenFunction.java b/Mage/src/mage/util/functions/CopyTokenFunction.java index 423f246731..65af057b5d 100644 --- a/Mage/src/mage/util/functions/CopyTokenFunction.java +++ b/Mage/src/mage/util/functions/CopyTokenFunction.java @@ -75,9 +75,9 @@ public class CopyTokenFunction implements Function { ability.setSourceId(target.getId()); target.addAbility(ability); } - - target.getPower().setValue(source.getPower().getValue()); - target.getToughness().setValue(source.getToughness().getValue()); + // Needed to do it this way because else the increased value from cards like "Intangible Virtue" will be copied. + target.getPower().setValue(Integer.parseInt(source.getPower().toString())); + target.getToughness().setValue(Integer.parseInt(source.getToughness().toString())); return target; }