- Added a GameActionUtil.showYesNoDialog() to Bringer of the Green Dawn.

- Updated the card text for Bringer of the Green Dawn.
This commit is contained in:
jendave
2011-08-06 14:02:53 +00:00
parent e2eb58f8b3
commit 5d686f0acf
2 changed files with 37 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
Name:Bringer of the Green Dawn
ManaCost:7 G G
Types:Creature Bringer
Text:At the beginning of your upkeep, you may put a 3/3 green Beast creature token into play.
Text:At the beginning of your upkeep, you may put a 3/3 green Beast creature token onto the battlefield.
PT:5/5
K:Trample
SVar:AltCost:W U B R G

View File

@@ -10626,32 +10626,33 @@ public class GameActionUtil {
list = list.getName("Bringer of the Green Dawn");
Ability ability;
for(int i = 0; i < list.size(); i++) {
for (int i = 0; i < list.size(); i++) {
final Card crd = list.get(i);
ability = new Ability(list.get(i), "0") {
@Override
public void resolve() {
String[] choices = {"Yes", "No"};
Object q = null;
if(player.equals(AllZone.HumanPlayer)) {
q = AllZone.Display.getChoiceOptional("Use Bringer of the Green Dawn?", choices);
if (player.equals(AllZone.HumanPlayer)) {
String question = "Place a 3/3 green Beast creature token onto the battlefield?";
if(q == null || q.equals("No")) return;
if(q.equals("Yes")) {
CardFactoryUtil.makeToken("Beast", "G 3 3 Beast", crd.getController(), "G", new String[] {
"Creature", "Beast"}, 3, 3, new String[] {""});
if (GameActionUtil.showYesNoDialog(crd, question)) {
makeBeastToken();
}
} else if(player.equals(AllZone.ComputerPlayer)) {
CardFactoryUtil.makeToken("Beast", "G 3 3 Beast", crd.getController(), "G", new String[] {
"Creature", "Beast"}, 3, 3, new String[] {""});
} // player is computer
else {
makeBeastToken();
}
}// resolve()
private void makeBeastToken() {
CardFactoryUtil.makeToken("Beast", "G 3 3 Beast", crd.getController(), "G",
new String[] {"Creature", "Beast"}, 3, 3, new String[] {""});
}
};// Ability
StringBuilder sb = new StringBuilder();
sb.append("Bringer of the Green Dawn - ").append(player);
sb.append(" puts a 3/3 Green Beast token creature into play.");
sb.append(" may place a 3/3 Green Beast token creature onto the battlefield.");
ability.setStackDescription(sb.toString());
AllZone.Stack.add(ability);