mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28: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
|
// 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user