mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Tokens can now enter the battlefield with counters on them.
This commit is contained in:
@@ -107,9 +107,7 @@ public class CountersPutEffect extends SpellAbilityEffect {
|
||||
counterAmount = max - tgtCard.getCounters(counterType);
|
||||
}
|
||||
final Zone zone = Singletons.getModel().getGame().getZoneOf(tgtCard);
|
||||
if (zone == null) {
|
||||
// Do nothing, token disappeared
|
||||
} else if (zone.is(ZoneType.Battlefield) || zone.is(ZoneType.Stack)) {
|
||||
if (zone == null || zone.is(ZoneType.Battlefield) || zone.is(ZoneType.Stack)) {
|
||||
if (remember) {
|
||||
final int value = tgtCard.getTotalCountersToAdd(counterType, counterAmount, true);
|
||||
tgtCard.addCountersAddedBy(card, counterType, value);
|
||||
|
||||
@@ -114,7 +114,7 @@ public class GameAction {
|
||||
}
|
||||
return c;
|
||||
}
|
||||
if ((zoneFrom == null) && !c.isToken()) {
|
||||
if (zoneFrom == null && !c.isToken()) {
|
||||
if (position == null) {
|
||||
zoneTo.add(c);
|
||||
}
|
||||
@@ -127,9 +127,7 @@ public class GameAction {
|
||||
}
|
||||
|
||||
boolean suppress;
|
||||
if ((zoneFrom == null) && !c.isToken()) {
|
||||
suppress = true;
|
||||
} else if (c.isToken()) {
|
||||
if (c.isToken()) {
|
||||
suppress = false;
|
||||
} else {
|
||||
suppress = zoneFrom.equals(zoneTo);
|
||||
|
||||
Reference in New Issue
Block a user