mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Added the "World rule".
- Added the World supertype to Concordant Crossroads. - Converted Serra Aviary to stPump.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Name:Concordant Crossroads
|
||||
ManaCost:G
|
||||
Types:Enchantment
|
||||
Types:World Enchantment
|
||||
Text:All creatures have haste.
|
||||
SVar:BuffedBy:Creature
|
||||
SVar:AntiBuffedBy:Creature
|
||||
|
||||
@@ -2,7 +2,7 @@ Name:Serra Aviary
|
||||
ManaCost:3 W
|
||||
Types:World Enchantment
|
||||
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:RemAIDeck:True
|
||||
SVar:Rarity:Rare
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
int n = hasKeyword(card, "When CARDNAME enters the battlefield, return a land you control to its owner's hand.");
|
||||
|
||||
@@ -2234,7 +2234,7 @@ public class GameAction {
|
||||
}
|
||||
// Whenever Keyword
|
||||
|
||||
private void sacrificeDestroy(Card c) {
|
||||
public void sacrificeDestroy(Card c) {
|
||||
if(!isCardInPlay(c)) return;
|
||||
|
||||
boolean persist = false;
|
||||
|
||||
Reference in New Issue
Block a user