convert etb part of Bazaar of Wonders to script

This commit is contained in:
slapshot5
2011-09-29 04:52:29 +00:00
parent 85cfc2ddb0
commit b3e78fbdf4
2 changed files with 3 additions and 25 deletions

View File

@@ -1,7 +1,9 @@
Name:Bazaar of Wonders Name:Bazaar of Wonders
ManaCost:3 U U ManaCost:3 U U
Types:World Enchantment Types:World Enchantment
Text:When Bazaar of Wonders enters the battlefield, exile all cards from all graveyards.\r\nWhenever a player casts a spell, counter it if a card with the same name is in a graveyard or a nontoken permanent with the same name is on the battlefield. Text:Whenever a player casts a spell, counter it if a card with the same name is in a graveyard or a nontoken permanent with the same name is on the battlefield.
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ ExileAll | TriggerDescription$ When CARDNAME enters the battlefield, exile all cards from all graveyards.
SVar:ExileAll:AB$ ChangeZoneAll | Cost$ 0 | Origin$ Graveyard | Destination$ Exile | ChangeType$ Card
SVar:RemRandomDeck:True SVar:RemRandomDeck:True
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/bazaar_of_wonders.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/bazaar_of_wonders.jpg

View File

@@ -1326,30 +1326,6 @@ public abstract class AbstractCardFactory implements NewConstants, CardFactoryIn
} //*************** END ************ END ************************** } //*************** END ************ END **************************
//*************** START *********** START **************************
else if (cardName.equals("Bazaar of Wonders")) {
/*
* When Bazaar of Wonders enters the battlefield, exile all cards from all graveyards.
*/
Command intoPlay = new Command() {
private static final long serialVersionUID = 9209706681167017765L;
public void execute() {
CardList hGrave = AllZone.getHumanPlayer().getCardsIn(Zone.Graveyard);
CardList cGrave = AllZone.getComputerPlayer().getCardsIn(Zone.Graveyard);
for (Card c : hGrave) {
AllZone.getGameAction().exile(c);
}
for (Card c : cGrave) {
AllZone.getGameAction().exile(c);
}
}
};
card.addComesIntoPlayCommand(intoPlay);
} //*************** END ************ END **************************
//*************** START *********** START ************************** //*************** START *********** START **************************
else if (cardName.equals("Phyrexian Processor")) { else if (cardName.equals("Phyrexian Processor")) {
Command intoPlay = new Command() { Command intoPlay = new Command() {