mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
minor improvements to AF_Dig
This commit is contained in:
@@ -127,14 +127,14 @@ public class AbilityFactory_Reveal {
|
|||||||
if(numToDig != 1) sb.append("s");
|
if(numToDig != 1) sb.append("s");
|
||||||
sb.append(" of ");
|
sb.append(" of ");
|
||||||
if(tgtPlayers.contains(host.getController())) {
|
if(tgtPlayers.contains(host.getController())) {
|
||||||
sb.append("his or her");
|
sb.append("his or her ");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for(Player p:tgtPlayers) {
|
for(Player p:tgtPlayers) {
|
||||||
sb.append(p).append("'s");
|
sb.append(p).append("'s ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sb.append(" library.");
|
sb.append("library.");
|
||||||
|
|
||||||
Ability_Sub abSub = sa.getSubAbility();
|
Ability_Sub abSub = sa.getSubAbility();
|
||||||
if (abSub != null) {
|
if (abSub != null) {
|
||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user