mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
*Readded the etbCounter handling I accidentally deleted.
This commit is contained in:
@@ -141,6 +141,26 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone {
|
|||||||
c.setSickness(true); // summoning sickness
|
c.setSickness(true); // summoning sickness
|
||||||
c.comesIntoPlay();
|
c.comesIntoPlay();
|
||||||
|
|
||||||
|
for (String keyword : c.getKeyword()) {
|
||||||
|
if (keyword.startsWith("etbCounter")) {
|
||||||
|
final String[] p = keyword.split(":");
|
||||||
|
final Counters counter = Counters.valueOf(p[1]);
|
||||||
|
final String numCounters = p[2];
|
||||||
|
final String condition = p.length > 3 ? p[3] : "";
|
||||||
|
if (GameActionUtil.specialConditionsMet(c, condition)) {
|
||||||
|
int toAdd = 0;
|
||||||
|
if (numCounters.equals("X")) {
|
||||||
|
toAdd = CardFactoryUtil.xCount(c, c.getSVar("X"));
|
||||||
|
} else {
|
||||||
|
toAdd = Integer.parseInt(numCounters);
|
||||||
|
}
|
||||||
|
|
||||||
|
c.addCounter(counter, toAdd);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (c.isLand()) {
|
if (c.isLand()) {
|
||||||
CardList list = player.getCardsIn(ZoneType.Battlefield);
|
CardList list = player.getCardsIn(ZoneType.Battlefield);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user