- Added a GameActionUtil.showYesNoDialog() to Squee, Goblin Nabob.

This commit is contained in:
jendave
2011-08-06 14:01:52 +00:00
parent c0f699e025
commit 4110b4ebb3

View File

@@ -7306,10 +7306,8 @@ public class GameActionUtil {
Card c = squees.get(index[0]);
if (AllZone.GameAction.isCardInZone(c, graveyard)) {
if (player.equals(AllZone.HumanPlayer)) {
String[] choices = {"Yes", "No"};
Object o = AllZone.Display.getChoiceOptional(
"Return Squee from your graveyard to your hand?", choices);
if(!o.equals("Yes")) {
String question = "Return Squee, Goblin Nabob from your graveyard to your hand?";
if (!GameActionUtil.showYesNoDialog(c, question)) {
index[0] = index[0] + 1;
return;
}
@@ -7320,13 +7318,14 @@ public class GameActionUtil {
index[0] = index[0] + 1;
}
}
};// Ability
ability.setStackDescription("Squee gets returned from graveyard to hand.");
StringBuilder sb = new StringBuilder();
sb.append("Squee, Goblin Nabob - ").append(player);
sb.append(" may return Squee, Goblin Nabob from graveyard to hand.");
ability.setStackDescription(sb.toString());
AllZone.Stack.add(ability);
} // if creatures > 0
}
} // upkeep_Squee()
/*
private static void upkeep_AEther_Vial() {