- Added the "World rule".

- Added the World supertype to Concordant Crossroads.
- Converted Serra Aviary to stPump.
This commit is contained in:
jendave
2011-08-06 08:22:25 +00:00
parent 6076bcf922
commit 00de8efa38
4 changed files with 28 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
Name:Concordant Crossroads Name:Concordant Crossroads
ManaCost:G ManaCost:G
Types:Enchantment Types:World Enchantment
Text:All creatures have haste. Text:All creatures have haste.
SVar:BuffedBy:Creature SVar:BuffedBy:Creature
SVar:AntiBuffedBy:Creature SVar:AntiBuffedBy:Creature

View File

@@ -2,7 +2,7 @@ Name:Serra Aviary
ManaCost:3 W ManaCost:3 W
Types:World Enchantment Types:World Enchantment
Text:no text Text:no text
K:StaticEffect:Play:All Permanents:PTBonus/1/1:Type.Creature!with.Flying:Creatures with flying get +1/+1. K:stPumpAll:Creature.withFlying:1/1:No Condition:Creatures with flying get +1/+1.
SVar:PlayMain1:TRUE SVar:PlayMain1:TRUE
SVar:RemAIDeck:True SVar:RemAIDeck:True
SVar:Rarity:Rare SVar:Rarity:Rare

View File

@@ -655,6 +655,31 @@ public class CardFactory implements NewConstants {
} }
} }
if (card.isType("World")) // Enforce the "World rule"
{
Command intoPlay = new Command() {
private static final long serialVersionUID = 6536398032388958127L;
public void execute() {
CardList CardsinPlay = new CardList();
CardsinPlay.addAll(AllZone.Human_Play.getCards());
CardsinPlay.addAll(AllZone.Computer_Play.getCards());
CardsinPlay = CardsinPlay.getType("World");
CardsinPlay = CardsinPlay.filter(new CardListFilter() {
public boolean addCard(Card c) {
if(!c.equals(card)) return true;
return false;
}
});
for(int i = 0; i < CardsinPlay.size(); i++)
AllZone.GameAction.sacrificeDestroy(CardsinPlay.get(i));
}//execute()
};//Command
card.addComesIntoPlayCommand(intoPlay);
}
if (hasKeyword(card, "When CARDNAME enters the battlefield, return a land you control to its owner's hand.") != -1) if (hasKeyword(card, "When CARDNAME enters the battlefield, return a land you control to its owner's hand.") != -1)
{ {
int n = hasKeyword(card, "When CARDNAME enters the battlefield, return a land you control to its owner's hand."); int n = hasKeyword(card, "When CARDNAME enters the battlefield, return a land you control to its owner's hand.");

View File

@@ -2234,7 +2234,7 @@ public class GameAction {
} }
// Whenever Keyword // Whenever Keyword
private void sacrificeDestroy(Card c) { public void sacrificeDestroy(Card c) {
if(!isCardInPlay(c)) return; if(!isCardInPlay(c)) return;
boolean persist = false; boolean persist = false;