mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Zone: do not add Tokens to the cardList if its not the Battlefield
that does fix The Great Aurora
This commit is contained in:
@@ -91,13 +91,16 @@ public class Zone implements java.io.Serializable, Iterable<Card> {
|
||||
if (zoneType != ZoneType.Battlefield) {
|
||||
c.setTapped(false);
|
||||
}
|
||||
c.setZone(this);
|
||||
|
||||
if (index == null) {
|
||||
cardList.add(c);
|
||||
}
|
||||
else {
|
||||
cardList.add(index.intValue(), c);
|
||||
// Do not add Tokens to other zones than the battlefield.
|
||||
if (zoneType == ZoneType.Battlefield || !c.isToken()) {
|
||||
c.setZone(this);
|
||||
|
||||
if (index == null) {
|
||||
cardList.add(c);
|
||||
} else {
|
||||
cardList.add(index.intValue(), c);
|
||||
}
|
||||
}
|
||||
onChanged();
|
||||
game.fireEvent(new GameEventZone(zoneType, getPlayer(), EventValueChangeType.Added, c));
|
||||
|
||||
Reference in New Issue
Block a user