minor improvements to AF_Dig

This commit is contained in:
jendave
2011-08-06 23:09:53 +00:00
parent d290f01f78
commit 882e440663

View File

@@ -273,7 +273,13 @@ public class AbilityFactory_Reveal {
if(destZone2.equals("Library")) { if(destZone2.equals("Library")) {
//put them in any order //put them in any order
while(rest.size() > 0) { while(rest.size() > 0) {
Card chosen = GuiUtils.getChoice("Put the rest in your library in any order", rest.toArray()); Card chosen;
if(rest.size() > 1) {
chosen = GuiUtils.getChoice("Put the rest in the library in any order", rest.toArray());
}
else {
chosen = rest.get(0);
}
AllZone.GameAction.moveToLibrary(chosen, libraryPosition2); AllZone.GameAction.moveToLibrary(chosen, libraryPosition2);
rest.remove(chosen); rest.remove(chosen);
} }
@@ -298,6 +304,7 @@ public class AbilityFactory_Reveal {
} }
}//end resolve }//end resolve
//returns a CardList that is a subset of list with cards that share a name with a permanent on the battlefield
private static CardList sharesNameWithCardOnBattlefield(CardList list) { private static CardList sharesNameWithCardOnBattlefield(CardList list) {
CardList toReturn = new CardList(); CardList toReturn = new CardList();
CardList play = AllZoneUtil.getCardsInPlay(); CardList play = AllZoneUtil.getCardsInPlay();