From 8e91a396d91c03a376ab486fdb10cdab4c95b7c0 Mon Sep 17 00:00:00 2001 From: Agetian Date: Sun, 5 Feb 2017 12:41:25 +0000 Subject: [PATCH] - Using the copyState method of copying over card states. --- forge-game/src/main/java/forge/game/card/CardUtil.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/forge-game/src/main/java/forge/game/card/CardUtil.java b/forge-game/src/main/java/forge/game/card/CardUtil.java index 1ce9fe29eb4..ca7d841c779 100644 --- a/forge-game/src/main/java/forge/game/card/CardUtil.java +++ b/forge-game/src/main/java/forge/game/card/CardUtil.java @@ -275,10 +275,7 @@ public final class CardUtil { // don't just copy the current state. copy all of them // needed for Transformed to get the CMC correct for (final CardStateName state : in.getStates()) { - if (!newCopy.getStates().contains(state)) { - newCopy.addAlternateState(state, false); - } - newCopy.getState(state).copyFrom(in, in.getState(state)); + CardFactory.copyState(in, state, newCopy, state, false); } // TODO: the line below unexpectedly breaks the visual state of cards (tapped/untapped, // counters, etc.). If it's necessary, we need to figure out how to make it not break stuff.