- Added support for PhasedOut to GameState.

This commit is contained in:
Agetian
2017-08-16 03:47:54 +00:00
parent 244d5bba47
commit 6b799be7dd

View File

@@ -218,6 +218,9 @@ public abstract class GameState {
newText.append("|Monstrous:"); newText.append("|Monstrous:");
newText.append(c.getMonstrosityNum()); newText.append(c.getMonstrosityNum());
} }
if (c.isPhasedOut()) {
newText.append("|PhasedOut");
}
if (c.isFaceDown()) { if (c.isFaceDown()) {
newText.append("|FaceDown"); newText.append("|FaceDown");
if (c.isManifested()) { if (c.isManifested()) {
@@ -824,6 +827,8 @@ public abstract class GameState {
} else if (info.startsWith("Monstrous:")) { } else if (info.startsWith("Monstrous:")) {
c.setMonstrous(true); c.setMonstrous(true);
c.setMonstrosityNum(Integer.parseInt(info.substring((info.indexOf(':') + 1)))); c.setMonstrosityNum(Integer.parseInt(info.substring((info.indexOf(':') + 1))));
} else if (info.startsWith("PhasedOut")) {
c.setPhasedOut(true);
} else if (info.startsWith("Counters:")) { } else if (info.startsWith("Counters:")) {
applyCountersToGameEntity(c, info.substring(info.indexOf(':') + 1)); applyCountersToGameEntity(c, info.substring(info.indexOf(':') + 1));
} else if (info.startsWith("SummonSick")) { } else if (info.startsWith("SummonSick")) {