- Using the copyState method of copying over card states.

This commit is contained in:
Agetian
2017-02-05 12:41:25 +00:00
parent d63b3b7846
commit 8e91a396d9

View File

@@ -275,10 +275,7 @@ public final class CardUtil {
// don't just copy the current state. copy all of them // don't just copy the current state. copy all of them
// needed for Transformed to get the CMC correct // needed for Transformed to get the CMC correct
for (final CardStateName state : in.getStates()) { for (final CardStateName state : in.getStates()) {
if (!newCopy.getStates().contains(state)) { CardFactory.copyState(in, state, newCopy, state, false);
newCopy.addAlternateState(state, false);
}
newCopy.getState(state).copyFrom(in, in.getState(state));
} }
// TODO: the line below unexpectedly breaks the visual state of cards (tapped/untapped, // 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. // counters, etc.). If it's necessary, we need to figure out how to make it not break stuff.