mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Using the copyState method of copying over card states.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user