mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
convert Great Whale and Cloud of Faeries to triggers
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
Name:Cloud of Faeries
|
||||
ManaCost:1 U
|
||||
Types:Creature Faerie
|
||||
Text:When CARDNAME enters the battlefield, untap up to two lands.
|
||||
Text:no text
|
||||
PT:1/1
|
||||
K:Flying
|
||||
K:Cycling:2
|
||||
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigUntap | TriggerDescription$ When CARDNAME enters the battlefield, untap up to two lands.
|
||||
SVar:TrigUntap:AB$ Untap | Cost$ 0 | UntapUpTo$ True | UntapType$ Land | Amount$ 2
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/gu/en-us/card11588.jpg
|
||||
SetInfo:ULG|Common|http://magiccards.info/scans/en/ul/29.jpg
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
Name:Great Whale
|
||||
ManaCost:5 U U
|
||||
Types:Creature Whale
|
||||
Text:When CARDNAME enters the battlefield, untap up to seven lands.
|
||||
Text:no text
|
||||
PT:5/5
|
||||
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigUntap | TriggerDescription$ When CARDNAME enters the battlefield, untap up to seven lands.
|
||||
SVar:TrigUntap:AB$ Untap | Cost$ 0 | UntapUpTo$ True | UntapType$ Land | Amount$ 7
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/great_whale.jpg
|
||||
SetInfo:USG|Rare|http://magiccards.info/scans/en/us/77.jpg
|
||||
|
||||
@@ -1133,69 +1133,6 @@ public class CardFactory_Creatures {
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Great Whale")) {
|
||||
final Input untap = new Input() {
|
||||
private static final long serialVersionUID = -2167059018040912025L;
|
||||
|
||||
int stop = 7;
|
||||
int count = 0;
|
||||
|
||||
@Override
|
||||
public void showMessage() {
|
||||
AllZone.Display.showMessage("Select a land to untap");
|
||||
ButtonUtil.enableOnlyCancel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void selectButtonCancel() {
|
||||
stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void selectCard(Card card, PlayerZone zone) {
|
||||
if(card.isLand() && zone.is(Constant.Zone.Battlefield)) {
|
||||
card.untap();
|
||||
count++;
|
||||
if(count == stop) stop();
|
||||
}
|
||||
}//selectCard()
|
||||
};
|
||||
|
||||
final SpellAbility ability = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
if(card.getController().equals(AllZone.HumanPlayer)) AllZone.InputControl.setInput(untap);
|
||||
else {
|
||||
CardList list = new CardList(AllZone.Computer_Battlefield.getCards());
|
||||
list = list.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
return c.isLand() && c.isTapped();
|
||||
}
|
||||
});
|
||||
for(int i = 0; i < 7 && i < list.size(); i++) {
|
||||
list.get(i).untap();
|
||||
}
|
||||
}//else
|
||||
}//resolve()
|
||||
};
|
||||
|
||||
Command intoPlay = new Command() {
|
||||
private static final long serialVersionUID = 7222997838266323277L;
|
||||
|
||||
public void execute() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card.getController()).append(" untaps up to 7 lands.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.addSimultaneousStackEntry(ability);
|
||||
|
||||
}
|
||||
};
|
||||
card.addComesIntoPlayCommand(intoPlay);
|
||||
}//*************** END ************ END ***************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Palinchron")) {
|
||||
final Input untap = new Input() {
|
||||
@@ -1278,69 +1215,6 @@ public class CardFactory_Creatures {
|
||||
a1.setDescription("2 U U: Return Palinchron to its owner's hand.");
|
||||
}//*************** END ************ END ***************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Cloud of Faeries")) {
|
||||
final Input untap = new Input() {
|
||||
private static final long serialVersionUID = -2167059918040912025L;
|
||||
|
||||
int stop = 2;
|
||||
int count = 0;
|
||||
|
||||
@Override
|
||||
public void showMessage() {
|
||||
AllZone.Display.showMessage("Select a land to untap");
|
||||
ButtonUtil.enableOnlyCancel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void selectButtonCancel() {
|
||||
stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void selectCard(Card card, PlayerZone zone) {
|
||||
if(card.isLand() && zone.is(Constant.Zone.Battlefield)) {
|
||||
card.untap();
|
||||
count++;
|
||||
if(count == stop) stop();
|
||||
}
|
||||
}//selectCard()
|
||||
};
|
||||
|
||||
final SpellAbility ability = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
if(card.getController().equals(AllZone.HumanPlayer)) AllZone.InputControl.setInput(untap);
|
||||
else {
|
||||
CardList list = new CardList(AllZone.Computer_Battlefield.getCards());
|
||||
list = list.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
return c.isLand() && c.isTapped();
|
||||
}
|
||||
});
|
||||
for(int i = 0; i < 2 && i < list.size(); i++) {
|
||||
list.get(i).untap();
|
||||
}
|
||||
}//else
|
||||
}//resolve()
|
||||
};//SpellAbility
|
||||
|
||||
Command intoPlay = new Command() {
|
||||
private static final long serialVersionUID = 7222997838166323277L;
|
||||
|
||||
public void execute() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card.getController()).append(" untaps up to 2 lands.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.addSimultaneousStackEntry(ability);
|
||||
|
||||
}
|
||||
};
|
||||
card.addComesIntoPlayCommand(intoPlay);
|
||||
}//*************** END ************ END ***************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Whirlpool Rider")) {
|
||||
|
||||
Reference in New Issue
Block a user