mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- 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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user