- GameState: added support for counters in exile zone (e.g. via Mairsil) and for face-down cards in exile (e.g. via Bomat Courier).

This commit is contained in:
Agetian
2017-08-27 04:12:19 +00:00
parent 4c3c7e3807
commit 8331f92775

View File

@@ -262,11 +262,6 @@ public abstract class GameState {
} else if (c.getCurrentStateName().equals(CardStateName.Meld)) { } else if (c.getCurrentStateName().equals(CardStateName.Meld)) {
newText.append("|Meld"); newText.append("|Meld");
} }
Map<CounterType, Integer> counters = c.getCounters();
if (!counters.isEmpty()) {
newText.append("|Counters:");
newText.append(countersToString(counters));
}
if (c.getEquipping() != null) { if (c.getEquipping() != null) {
newText.append("|Attaching:").append(c.getEquipping().getId()); newText.append("|Attaching:").append(c.getEquipping().getId());
} else if (c.getFortifying() != null) { } else if (c.getFortifying() != null) {
@@ -311,6 +306,18 @@ public abstract class GameState {
if (c.getExiledWith() != null) { if (c.getExiledWith() != null) {
newText.append("|ExiledWith:").append(c.getExiledWith().getId()); newText.append("|ExiledWith:").append(c.getExiledWith().getId());
} }
if (c.isFaceDown()) {
newText.append("|FaceDown"); // Exiled face down
}
}
if (zoneType == ZoneType.Battlefield || zoneType == ZoneType.Exile) {
// A card can have counters on the battlefield and in exile (e.g. exiled by Mairsil, the Pretender)
Map<CounterType, Integer> counters = c.getCounters();
if (!counters.isEmpty()) {
newText.append("|Counters:");
newText.append(countersToString(counters));
}
} }
if (c.getGame().getCombat() != null) { if (c.getGame().getCombat() != null) {