break out more reusable code to GameAction.promptForShuffle(Player);

updated Natural Selection to exercise this new function
This commit is contained in:
jendave
2011-08-06 04:14:44 +00:00
parent 7f4575589f
commit 1f41c4c6b8
2 changed files with 29 additions and 39 deletions

View File

@@ -17779,12 +17779,7 @@ public class CardFactory implements NewConstants {
public void resolve() {
String player = getTargetPlayer();
AllZoneUtil.rearrangeTopOfLibrary(player, 3, false);
String[] choices = new String[] {"Yes", "No"};
Object o = AllZone.Display.getChoice("Shuffle target player's library?", choices);
String myChoice = (String) o;
if(myChoice.equals("Yes")) {
AllZone.GameAction.shuffle(player);
}
AllZone.GameAction.promptForShuffle(player);
}
@Override
public boolean canPlayAI() {