mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Updated the code for Creakwood Liege, it now creates a token named "bg_1_1_worm.jpg".
This commit is contained in:
@@ -11310,20 +11310,16 @@ public class GameActionUtil {
|
|||||||
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)) {
|
||||||
q = AllZone.Display.getChoiceOptional("Use Creakwood Liege?", choices);
|
String question = "Put a 1/1 black and green Worm creature token onto the battlefield?";
|
||||||
|
if (showYesNoDialog(crd, question)) {
|
||||||
if(q == null || q.equals("No")) return;
|
CardFactoryUtil.makeToken("Worm", "BG 1 1 Worm", crd.getController(), "BG",
|
||||||
if(q.equals("Yes")) {
|
new String[] {"Creature", "Worm"}, 1, 1, new String[] {""});
|
||||||
CardFactoryUtil.makeToken("Worm", "B G 1 1 Worm", crd.getController(), "B G", new String[] {
|
|
||||||
"Creature", "Worm"}, 1, 1, new String[] {""});
|
|
||||||
}
|
}
|
||||||
} else if(player.equals(AllZone.ComputerPlayer)) {
|
} else {
|
||||||
CardFactoryUtil.makeToken("Worm", "B G 1 1 Worm", crd.getController(), "B G", new String[] {
|
CardFactoryUtil.makeToken("Worm", "BG 1 1 Worm", crd.getController(), "BG",
|
||||||
"Creature", "Worm"}, 1, 1, new String[] {""});
|
new String[] {"Creature", "Worm"}, 1, 1, new String[] {""});
|
||||||
}
|
}
|
||||||
}// resolve()
|
}// resolve()
|
||||||
};// Ability
|
};// Ability
|
||||||
|
|||||||
Reference in New Issue
Block a user