mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
break out more reusable code to GameAction.promptForShuffle(Player);
updated Natural Selection to exercise this new function
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user