mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Committing a temporary version of getLKICopy that does not break visuals of many cards in many different circumstances (may need further improvement).
This commit is contained in:
@@ -275,10 +275,14 @@ 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()) {
|
||||||
CardFactory.copyState(in, state, newCopy, state, false);
|
if (!newCopy.getStates().contains(state)) {
|
||||||
|
newCopy.addAlternateState(state, false);
|
||||||
}
|
}
|
||||||
// DO NOT UPDATE THE VIEW!
|
newCopy.getState(state).copyFrom(in, in.getState(state));
|
||||||
newCopy.setState(in.getCurrentStateName(), 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.
|
||||||
|
//newCopy.setState(in.getCurrentStateName(), false);
|
||||||
|
|
||||||
if (in.isCloned()) {
|
if (in.isCloned()) {
|
||||||
newCopy.addAlternateState(CardStateName.Cloner, false);
|
newCopy.addAlternateState(CardStateName.Cloner, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user