- Support Transformed creatures in the game states.

This commit is contained in:
Agetian
2017-07-02 07:44:57 +00:00
parent 119ebda877
commit ce5b4e1fad

View File

@@ -151,6 +151,9 @@ public abstract class GameState {
newText.append(":Manifested"); newText.append(":Manifested");
} }
} }
if (c.getCurrentStateName().equals(CardStateName.Transformed)) {
newText.append("|Transformed");
}
Map<CounterType, Integer> counters = c.getCounters(); Map<CounterType, Integer> counters = c.getCounters();
if (!counters.isEmpty()) { if (!counters.isEmpty()) {
newText.append("|Counters:"); newText.append("|Counters:");
@@ -456,6 +459,8 @@ public abstract class GameState {
if (info.endsWith("Manifested")) { if (info.endsWith("Manifested")) {
c.setManifested(true); c.setManifested(true);
} }
} else if (info.startsWith("Transformed")) {
c.setState(CardStateName.Transformed, true);
} else if (info.startsWith("IsCommander")) { } else if (info.startsWith("IsCommander")) {
// TODO: This doesn't seem to properly restore the ability to play the commander. Why? // TODO: This doesn't seem to properly restore the ability to play the commander. Why?
c.setCommander(true); c.setCommander(true);