Updated zone action listener for computer's flashback area.

This commit is contained in:
Doublestrike
2012-02-08 00:08:39 +00:00
parent a22ba2ca8a
commit 287c0873f5

View File

@@ -376,7 +376,21 @@ public class ControlField {
} .actionPerformed(null); } .actionPerformed(null);
} else { } else {
new ZoneAction(ControlField.this.player.getZone(Zone.Graveyard), new ZoneAction(ControlField.this.player.getZone(Zone.Graveyard),
NewConstants.Lang.GuiDisplay.COMPUTER_FLASHBACK).actionPerformed(null); NewConstants.Lang.GuiDisplay.COMPUTER_FLASHBACK) {
private static final long serialVersionUID = 8120331222693706164L;
@Override
protected Iterable<Card> getCardsAsIterable() {
return new ImmutableIterableFrom<Card>(CardFactoryUtil.getExternalZoneActivationCards(AllZone
.getComputerPlayer()));
}
@Override
protected void doAction(final Card c) {
AllZone.getGameAction().playCard(c);
}
} .actionPerformed(null);
} }
} }
}; };