mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- 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:
@@ -1,7 +1,7 @@
|
|||||||
Name:Bringer of the Green Dawn
|
Name:Bringer of the Green Dawn
|
||||||
ManaCost:7 G G
|
ManaCost:7 G G
|
||||||
Types:Creature Bringer
|
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
|
PT:5/5
|
||||||
K:Trample
|
K:Trample
|
||||||
SVar:AltCost:W U B R G
|
SVar:AltCost:W U B R G
|
||||||
|
|||||||
@@ -10626,32 +10626,33 @@ public class GameActionUtil {
|
|||||||
list = list.getName("Bringer of the Green Dawn");
|
list = list.getName("Bringer of the Green Dawn");
|
||||||
|
|
||||||
Ability ability;
|
Ability ability;
|
||||||
for(int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
final Card crd = list.get(i);
|
final Card crd = list.get(i);
|
||||||
ability = new Ability(list.get(i), "0") {
|
ability = new Ability(list.get(i), "0") {
|
||||||
@Override
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
String[] choices = {"Yes", "No"};
|
|
||||||
|
|
||||||
Object q = null;
|
if (player.equals(AllZone.HumanPlayer)) {
|
||||||
if(player.equals(AllZone.HumanPlayer)) {
|
String question = "Place a 3/3 green Beast creature token onto the battlefield?";
|
||||||
q = AllZone.Display.getChoiceOptional("Use Bringer of the Green Dawn?", choices);
|
|
||||||
|
|
||||||
if(q == null || q.equals("No")) return;
|
if (GameActionUtil.showYesNoDialog(crd, question)) {
|
||||||
if(q.equals("Yes")) {
|
makeBeastToken();
|
||||||
CardFactoryUtil.makeToken("Beast", "G 3 3 Beast", crd.getController(), "G", new String[] {
|
|
||||||
"Creature", "Beast"}, 3, 3, new String[] {""});
|
|
||||||
}
|
}
|
||||||
} else if(player.equals(AllZone.ComputerPlayer)) {
|
} // player is computer
|
||||||
CardFactoryUtil.makeToken("Beast", "G 3 3 Beast", crd.getController(), "G", new String[] {
|
else {
|
||||||
"Creature", "Beast"}, 3, 3, new String[] {""});
|
makeBeastToken();
|
||||||
}
|
}
|
||||||
}// resolve()
|
}// resolve()
|
||||||
|
|
||||||
|
private void makeBeastToken() {
|
||||||
|
CardFactoryUtil.makeToken("Beast", "G 3 3 Beast", crd.getController(), "G",
|
||||||
|
new String[] {"Creature", "Beast"}, 3, 3, new String[] {""});
|
||||||
|
}
|
||||||
};// Ability
|
};// Ability
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("Bringer of the Green Dawn - ").append(player);
|
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());
|
ability.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
AllZone.Stack.add(ability);
|
||||||
|
|||||||
Reference in New Issue
Block a user