- Added support for Renowned and Monstrous X properties to GameState.

This commit is contained in:
Agetian
2017-08-08 04:12:49 +00:00
parent 174d1f7838
commit 431d5ef8a8

View File

@@ -199,6 +199,13 @@ public abstract class GameState {
if (c.isSick()) {
newText.append("|SummonSick");
}
if (c.isRenowned()) {
newText.append("|Renowned");
}
if (c.isMonstrous()) {
newText.append("|Monstrous:");
newText.append(c.getMonstrosityNum());
}
if (c.isFaceDown()) {
newText.append("|FaceDown");
if (c.isManifested()) {
@@ -801,6 +808,11 @@ public abstract class GameState {
for (final String info : cardinfo) {
if (info.startsWith("Tapped")) {
c.tap();
} else if (info.startsWith("Renowned")) {
c.setRenowned(true);
} else if (info.startsWith("Monstrous:")) {
c.setMonstrous(true);
c.setMonstrosityNum(Integer.parseInt(info.substring((info.indexOf(':') + 1))));
} else if (info.startsWith("Counters:")) {
applyCountersToGameEntity(c, info.substring(info.indexOf(':') + 1));
} else if (info.startsWith("SummonSick")) {