Computer and human flashback zones were mixed up

This commit is contained in:
Maxmtg
2013-01-19 08:19:36 +00:00
parent 819b66d357
commit 5adec01a9b

View File

@@ -335,8 +335,23 @@ public class CField implements ICDoc {
/** */ /** */
private void flashbackAction() { private void flashbackAction() {
if (!CField.this.player.isHuman()) { if (!CField.this.player.isHuman()) {
new ZoneAction(player.getZone(ZoneType.Graveyard), new ZoneAction(player.getZone(ZoneType.Graveyard), NewConstants.Lang.GuiDisplay.COMPUTER_FLASHBACK) {
NewConstants.Lang.GuiDisplay.HUMAN_FLASHBACK) {
private static final long serialVersionUID = 8120331222693706164L;
@Override
protected List<Card> getCardsAsIterable() {
return CardFactoryUtil.getExternalZoneActivationCards(player);
}
@Override
protected void doAction(final Card c) {
// you cannot play computer's card from graveyard
}
} .actionPerformed(null);
}
else {
new ZoneAction(CField.this.player.getZone(ZoneType.Graveyard), NewConstants.Lang.GuiDisplay.HUMAN_FLASHBACK) {
private static final long serialVersionUID = 8120331222693706164L; private static final long serialVersionUID = 8120331222693706164L;
@@ -356,23 +371,6 @@ public class CField implements ICDoc {
} }
} .actionPerformed(null); } .actionPerformed(null);
} }
else {
new ZoneAction(CField.this.player.getZone(ZoneType.Graveyard),
NewConstants.Lang.GuiDisplay.COMPUTER_FLASHBACK) {
private static final long serialVersionUID = 8120331222693706164L;
@Override
protected List<Card> getCardsAsIterable() {
return CardFactoryUtil.getExternalZoneActivationCards(player);
}
@Override
protected void doAction(final Card c) {
// you cannot play computer's card from graveyard
}
} .actionPerformed(null);
}
} }
/** */ /** */