- Fixed Brainstorm ability of Jace, the Mind Sculptor.

This commit is contained in:
jendave
2011-08-06 22:06:35 +00:00
parent 30795ebde4
commit df98af78b2

View File

@@ -1073,19 +1073,26 @@ class CardFactory_Planeswalkers {
CardList putOnTop = new CardList(hand.getCards()); CardList putOnTop = new CardList(hand.getCards());
Object o = GuiUtils.getChoiceOptional("First card to put on top: ", putOnTop.toArray()); if(putOnTop.size() > 0) {
Object o = GuiUtils.getChoice("First card to put on top: ", putOnTop.toArray());
if(o != null) { if(o != null) {
Card c1 = (Card) o; Card c1 = (Card) o;
putOnTop.remove(c1); putOnTop.remove(c1);
AllZone.GameAction.moveToLibrary(c1); AllZone.GameAction.moveToLibrary(c1);
} }
o = GuiUtils.getChoiceOptional("Second card to put on top: ", putOnTop.toArray()); }
putOnTop = new CardList(hand.getCards());
if(putOnTop.size() > 0) {
Object o = GuiUtils.getChoice("Second card to put on top: ", putOnTop.toArray());
if(o != null) { if(o != null) {
Card c2 = (Card) o; Card c2 = (Card) o;
putOnTop.remove(c2); putOnTop.remove(c2);
AllZone.GameAction.moveToLibrary(c2); AllZone.GameAction.moveToLibrary(c2);
} }
} }
}
@Override @Override
public boolean canPlayAI() { public boolean canPlayAI() {