mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Support Transformed creatures in the game states.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user