Removed hardcode for Lorwyn duals, their ETB replacement effects scripted.

glint_hawk.txt script changed to use less lines and UnlessCost$ mechanism
This commit is contained in:
Maxmtg
2013-04-05 20:04:40 +00:00
parent 2fa27c7238
commit a4ff971461
10 changed files with 18 additions and 69 deletions

View File

@@ -4,6 +4,8 @@ Types:Land
Text:As CARDNAME enters the battlefield, you may reveal a Giant card from your hand. If you don't, CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add R to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add W to your mana pool.
K:ETBReplacement:Other:DBTap
SVar:DBTap:AB$ Tap | Cost$ 0 | ETB$ True | Defined$ Self | UnlessCost$ Reveal<1/Giant> | UnlessPayer$ You | StackDescription$ enters the battlefield tapped.
SVar:Picture:http://www.wizards.com/global/images/magic/general/ancient_amphitheater.jpg
Oracle:As Ancient Amphitheater enters the battlefield, you may reveal a Giant card from your hand. If you don't, Ancient Amphitheater enters the battlefield tapped.\n{T}: Add {R} or {W} to your mana pool.
SetInfo:LRW Rare

View File

@@ -4,6 +4,8 @@ Types:Land
Text:As CARDNAME enters the battlefield, you may reveal a Goblin card from your hand. If you don't, CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add B to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ R | SpellDescription$ Add R to your mana pool.
K:ETBReplacement:Other:DBTap
SVar:DBTap:AB$ Tap | Cost$ 0 | ETB$ True | Defined$ Self | UnlessCost$ Reveal<1/Goblin> | UnlessPayer$ You | StackDescription$ enters the battlefield tapped.
SVar:Picture:http://www.wizards.com/global/images/magic/general/aunties_hovel.jpg
Oracle:As Auntie's Hovel enters the battlefield, you may reveal a Goblin card from your hand. If you don't, Auntie's Hovel enters the battlefield tapped.\n{T}: Add {B} or {R} to your mana pool.
SetInfo:LRW Rare

View File

@@ -5,6 +5,8 @@ Text:As CARDNAME enters the battlefield, you may reveal an Elf card from your ha
A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add G to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add B to your mana pool.
SVar:RemRandomDeck:True
K:ETBReplacement:Other:DBTap
SVar:DBTap:AB$ Tap | Cost$ 0 | ETB$ True | Defined$ Self | UnlessCost$ Reveal<1/Elf> | UnlessPayer$ You | StackDescription$ enters the battlefield tapped.
SVar:Picture:http://www.wizards.com/global/images/magic/general/gilt_leaf_palace.jpg
Oracle:As Gilt-Leaf Palace enters the battlefield, you may reveal an Elf card from your hand. If you don't, Gilt-Leaf Palace enters the battlefield tapped.\n{T}: Add {B} or {G} to your mana pool.
SetInfo:LRW Rare

View File

@@ -3,11 +3,8 @@ ManaCost:W
Types:Creature Bird
PT:2/2
K:Flying
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigChangeZone | TriggerDescription$ When CARDNAME enters the battlefield, sacrifice it unless you return an artifact you control to its owner's hand.
SVar:TrigChangeZone:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Hand | Hidden$ True | ChangeType$ Artifact.YouCtrl | RememberChanged$ True | SubAbility$ DBSac
SVar:DBSac:DB$ Sacrifice | Cost$ 0 | Defined$ Self | SubAbility$ DBCleanup | ConditionCheckSVar$ X | ConditionSVarCompare$ LT1 | References$ X
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ DBSac | TriggerDescription$ When CARDNAME enters the battlefield, sacrifice it unless you return an artifact you control to its owner's hand.
SVar:DBSac:AB$ Sacrifice | Cost$ 0 | Defined$ Self | UnlessCost$ Return<1/Artifact> | UnlessPayer$ You
SVar:NeedsToPlay:Artifact.YouCtrl
SVar:Picture:http://www.wizards.com/global/images/magic/general/glint_hawk.jpg
Oracle:Flying\nWhen Glint Hawk enters the battlefield, sacrifice it unless you return an artifact you control to its owner's hand.

View File

@@ -4,6 +4,8 @@ Types:Land Forest
Text:As CARDNAME enters the battlefield, you may reveal a Treefolk card from your hand. If you don't, CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ W | SubAbility$ DBPain | SpellDescription$ Add W to your mana pool. CARDNAME deals 1 damage to you.
A:AB$ Mana | Cost$ T | Produced$ B | SubAbility$ DBPain | SpellDescription$ Add B to your mana pool. CARDNAME deals 1 damage to you.
K:ETBReplacement:Other:DBTap
SVar:DBTap:AB$ Tap | Cost$ 0 | ETB$ True | Defined$ Self | UnlessCost$ Reveal<1/Treefolk> | UnlessPayer$ You | StackDescription$ enters the battlefield tapped.
SVar:DBPain:DB$DealDamage | NumDmg$ 1 | Defined$ You
SVar:Picture:http://www.wizards.com/global/images/magic/general/murmuring_bosk.jpg
Oracle:({T}: Add {G} to your mana pool.)\nAs Murmuring Bosk enters the battlefield, you may reveal a Treefolk card from your hand. If you don't, Murmuring Bosk enters the battlefield tapped.\n{T}: Add {W} or {B} to your mana pool. Murmuring Bosk deals 1 damage to you.

View File

@@ -4,6 +4,8 @@ Types:Land
Text:As CARDNAME enters the battlefield, you may reveal an Elemental card from your hand. If you don't, CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ Any | RestrictValid$ Card.Elemental,Activated.Elemental | SpellDescription$ Add one mana of any color to your mana pool. Spend this mana only to cast an Elemental spell or activate an ability of an Elemental.
K:ETBReplacement:Other:DBTap
SVar:DBTap:AB$ Tap | Cost$ 0 | ETB$ True | Defined$ Self | UnlessCost$ Reveal<1/Elemental> | UnlessPayer$ You | StackDescription$ enters the battlefield tapped.
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/primal_beyond.jpg
Oracle:As Primal Beyond enters the battlefield, you may reveal an Elemental card from your hand. If you don't, Primal Beyond enters the battlefield tapped.\n{T}: Add {1} to your mana pool.\n{T}: Add one mana of any color to your mana pool. Spend this mana only to cast an Elemental spell or activate an ability of an Elemental.

View File

@@ -4,6 +4,8 @@ Types:Land
Text:As CARDNAME enters the battlefield, you may reveal a Kithkin card from your hand. If you don't, CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add W to your mana pool.
A:AB$ PutCounter | Cost$ 1 W Discard<1/CARDNAME> | ValidTgts$ Creature | TgtPrompt$ Select target creature | CounterType$ P1P1 | CounterNum$ 1 | ActivationZone$ Hand | PrecostDesc$ Reinforce 1 - | SpellDescription$ Put a +1/+1 counter on target creature.
K:ETBReplacement:Other:DBTap
SVar:DBTap:AB$ Tap | Cost$ 0 | ETB$ True | Defined$ Self | UnlessCost$ Reveal<1/Kithkin> | UnlessPayer$ You | StackDescription$ enters the battlefield tapped.
SVar:Picture:http://www.wizards.com/global/images/magic/general/rustic_clachan.jpg
Oracle:As Rustic Clachan enters the battlefield, you may reveal a Kithkin card from your hand. If you don't, Rustic Clachan enters the battlefield tapped.\n{T}: Add {W} to your mana pool.\nReinforce 1-{1}{W} ({1}{W}, Discard this card: Put a +1/+1 counter on target creature.)
SetInfo:MOR Rare

View File

@@ -4,6 +4,8 @@ Types:Land
Text:As CARDNAME enters the battlefield, you may reveal a Faerie card from your hand. If you don't, CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add U to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ B | SpellDescription$ Add B to your mana pool.
K:ETBReplacement:Other:DBTap
SVar:DBTap:AB$ Tap | Cost$ 0 | ETB$ True | Defined$ Self | UnlessCost$ Reveal<1/Faerie> | UnlessPayer$ You | StackDescription$ enters the battlefield tapped.
SVar:Picture:http://www.wizards.com/global/images/magic/general/secluded_glen.jpg
Oracle:As Secluded Glen enters the battlefield, you may reveal a Faerie card from your hand. If you don't, Secluded Glen enters the battlefield tapped.\n{T}: Add {U} or {B} to your mana pool.
SetInfo:LRW Rare

View File

@@ -4,6 +4,8 @@ Types:Land
Text:As CARDNAME enters the battlefield, you may reveal a Merfolk card from your hand. If you don't, CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add W to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ U | SpellDescription$ Add U to your mana pool.
K:ETBReplacement:Other:DBTap
SVar:DBTap:AB$ Tap | Cost$ 0 | ETB$ True | Defined$ Self | UnlessCost$ Reveal<1/Merfolk> | UnlessPayer$ You | StackDescription$ enters the battlefield tapped.
SVar:Picture:http://www.wizards.com/global/images/magic/general/wanderwine_hub.jpg
Oracle:As Wanderwine Hub enters the battlefield, you may reveal a Merfolk card from your hand. If you don't, Wanderwine Hub enters the battlefield tapped.\n{T}: Add {W} or {U} to your mana pool.
SetInfo:LRW Rare

View File

@@ -117,70 +117,6 @@ class CardFactoryLands {
}
});
} // *************** END ************ END **************************
// *************** START *********** START **************************
// Lorwyn Dual Lands, and a couple Morningtide...
else if (cardName.equals("Ancient Amphitheater") || cardName.equals("Auntie's Hovel")
|| cardName.equals("Gilt-Leaf Palace") || cardName.equals("Secluded Glen")
|| cardName.equals("Wanderwine Hub") || cardName.equals("Rustic Clachan")
|| cardName.equals("Murmuring Bosk") || cardName.equals("Primal Beyond")) {
String shortTemp = "";
if (cardName.equals("Ancient Amphitheater")) {
shortTemp = "Giant";
}
else if (cardName.equals("Auntie's Hovel")) {
shortTemp = "Goblin";
}
else if (cardName.equals("Gilt-Leaf Palace")) {
shortTemp = "Elf";
}
else if (cardName.equals("Secluded Glen")) {
shortTemp = "Faerie";
}
else if (cardName.equals("Wanderwine Hub")) {
shortTemp = "Merfolk";
}
else if (cardName.equals("Rustic Clachan")) {
shortTemp = "Kithkin";
}
else if (cardName.equals("Murmuring Bosk")) {
shortTemp = "Treefolk";
}
else if (cardName.equals("Primal Beyond")) {
shortTemp = "Elemental";
}
final String type = shortTemp;
card.addComesIntoPlayCommand(new Command() {
private static final long serialVersionUID = -5646344170306812481L;
@Override
public void execute() {
List<Card> hand = CardLists.getType(card.getController().getCardsIn(ZoneType.Hand), type);
List<Card> toReveal = null;
if (!hand.isEmpty()) {
if (card.getController().isHuman()) {
InputSelectCards inp = new InputSelectCardsFromList(1, 1, hand);
inp.setCancelAllowed(true);
inp.setMessage("Reveal a " + type + " card.");
FThreads.setInputAndWait(inp);
toReveal = inp.hasCancelled() ? null : inp.getSelected();
} else {
// Ai wants to reveal the first card out of a list
toReveal = hand.subList(0, 0);
}
} else toReveal = null;
if (toReveal != null && !toReveal.isEmpty()) {
card.getController().getGame().getAction().reveal(toReveal, card.getController());
} else {
card.setTapped(true);
}
}
});
} // *************** END ************ END **************************
}
} // end class CardFactoryLands