From 28b1c0e86f82a83972a9a30f3303a37fcbbbba07 Mon Sep 17 00:00:00 2001 From: valfieri Date: Sun, 6 Oct 2019 17:11:23 +0200 Subject: [PATCH] Fixed primitives for ELD and XLN sets. --- projects/mtg/bin/Res/sets/primitives/ELD.txt | 79 +++++++++++++++++++ .../Res/sets/primitives/ELD_unsupported.txt | 59 +------------- projects/mtg/bin/Res/sets/primitives/XLN.txt | 2 +- 3 files changed, 81 insertions(+), 59 deletions(-) diff --git a/projects/mtg/bin/Res/sets/primitives/ELD.txt b/projects/mtg/bin/Res/sets/primitives/ELD.txt index d33b5f2e3..0efb73f6d 100644 --- a/projects/mtg/bin/Res/sets/primitives/ELD.txt +++ b/projects/mtg/bin/Res/sets/primitives/ELD.txt @@ -2642,4 +2642,83 @@ type=Legendary Creature subtype=Faerie Rogue power=3 toughness=3 +[/card] +[card] +name=Workshop Elders +auto=@each my combatbegins: may target(*[artifact,-creature]|myBattlefield) transforms((,newability[counter(1/1,4)],Artifact Creature,setpower=0,settoughness=0)) +auto=lord(creature[artifact]|myBattlefield) flying +text=Artifact creatures you control have flying. -- At the beginning of combat on your turn, you may have target noncreature artifact you control become a 0/0 artifact creature. If you do, put four +1/+1 counters on it. +mana={6}{U} +type=Creature +subtype=Human Artificer +power=4 +toughness=4 +[/card] +[card] +name=Henge Walker +other={W}{W}{W} name(Adamant White) +other={U}{U}{U} name(Adamant Blue) +other={R}{R}{R} name(Adamant Red) +other={G}{G}{G} name(Adamant Green) +other={B}{B}{B} name(Adamant Black) +auto=if paid(alternative) then counter(1/1,1) +text=Adamant — If at least three mana of the same color was spent to cast this spell, Henge Walker enters the battlefield with a +1/+1 counter on it. +mana={3} +type=Artifact Creature +subtype=Golem +power=2 +toughness=2 +[/card] +[card] +name=Heraldic Banner +auto=chooseacolor target(creature[chosencolor]|myBattlefield) 1/0 chooseend +auto={T}:add{chosencolor} +text=As Heraldic Banner enters the battlefield, choose a color. -- Creatures you control of the chosen color get +1/+0. -- {T}: Add one mana of the chosen color. +mana={3} +type=Artifact +[/card] +[card] +name=Clockwork Servant +other={W}{W}{W} name(Adamant White) +other={U}{U}{U} name(Adamant Blue) +other={R}{R}{R} name(Adamant Red) +other={G}{G}{G} name(Adamant Green) +other={B}{B}{B} name(Adamant Black) +auto=if paid(alternative) then draw:1 controller +text=Adamant — When Clockwork Servant enters the battlefield, if at least three mana of the same color was spent to cast it, draw a card. +mana={3} +type=Artifact Creature +subtype=Gnome +power=2 +toughness=3 +[/card] +[card] +name=Mystical Dispute +other={U} name(Counter Blue) +auto=if paid(alternative) then name(counter blue spell) target(*[blue]|stack) transforms((,newability[pay[[{3}]] name(pay 3 mana) donothing?fizzle])) forever +auto=ifnot paid(alternative) then name(counter spell) target(*|stack) transforms((,newability[pay[[{3}]] name(pay 3 mana) donothing?fizzle])) forever +text=This spell costs {2} less to cast if it targets a blue spell. -- Counter target spell unless its controller pays 3 . +mana={2}{U} +type=Instant +[/card] +[card] +name=Trail of Crumbs +auto=token(-473141) +auto=@sacrificed(food|mybattlefield):pay({1}) name(look) reveal:2 optionone name(Get a permanent card) target(<1>*[-instant,-sorcery]|reveal) moveto(myhand) optiononeend optiontwo name(put on bottom) target(<2>*|reveal) bottomoflibrary optiontwoend revealend +text=When Trail of Crumbs enters the battlefield, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Whenever you sacrifice a Food, you may pay 1 . If you do, look at the top two cards of your library. You may reveal a permanent card from among them and put it into your hand. Put the rest on the bottom of your library in any order. +mana={1}{G} +type=Enchantment +[/card] +[card] +name=Questing Beast +abilities=vigilance,deathtouch,haste +auto=cantbeblockedby(creature[power<=2]) +auto=@combatdamagefoeof(player) from(this):damage:thatmuch target(planeswalker|opponentbattlefield) +#MISSING: damage can't be prevented +text=Vigilance, deathtouch, haste -- Questing Beast can't be blocked by creatures with power 2 or less. -- Combat damage that would be dealt by creatures you control can't be prevented. -- Whenever Questing Beast deals combat damage to an opponent, it deals that much damage to target planeswalker that player controls. +mana={2}{G}{G} +type=Legendary Creature +subtype=Beast +power=4 +toughness=4 [/card] \ No newline at end of file diff --git a/projects/mtg/bin/Res/sets/primitives/ELD_unsupported.txt b/projects/mtg/bin/Res/sets/primitives/ELD_unsupported.txt index 78374f521..6a00fa2ef 100644 --- a/projects/mtg/bin/Res/sets/primitives/ELD_unsupported.txt +++ b/projects/mtg/bin/Res/sets/primitives/ELD_unsupported.txt @@ -53,15 +53,6 @@ mana={4}{W}{U} type=Instant [/card] [card] -name=Workshop Elders -text=Artifact creatures you control have flying. -- At the beginning of combat on your turn, you may have target noncreature artifact you control become a 0/0 artifact creature. If you do, put four +1/+1 counters on it. -mana={6}{U} -type=Creature -subtype=Human Artificer -power=4 -toughness=4 -[/card] -[card] name=Fervent Champion text=First strike, haste -- Whenever Fervent Champion attacks, another target attacking Knight you control gets +1/+0 until end of turn. -- Equip abilities you activate that target Fervent Champion cost 3 less to activate. mana={R} @@ -78,6 +69,7 @@ type=Enchantment [/card] [card] name=Opportunistic Dragon +abilities=flying text=Flying -- When Opportunistic Dragon enters the battlefield, choose target Human or artifact an opponent controls. For as long as Opportunistic Dragon remains on the battlefield, gain control of that permanent, it loses all abilities, and it can't attack or block. mana={2}{R}{R} type=Creature @@ -92,37 +84,12 @@ mana={1}{R}{R}{R} type=Sorcery [/card] [card] -name=Henge Walker -text=Adamant — If at least three mana of the same color was spent to cast this spell, Henge Walker enters the battlefield with a +1/+1 counter on it. -mana={3} -type=Artifact Creature -subtype=Golem -power=2 -toughness=2 -[/card] -[card] -name=Heraldic Banner -auto=chooseacolor target(creature[chosencolor]|myBattlefield) 1/0 chooseend -text=As Heraldic Banner enters the battlefield, choose a color. -- Creatures you control of the chosen color get +1/+0. -- {T}: Add one mana of the chosen color. -mana={3} -type=Artifact -[/card] -[card] name=Memory Theft text=Target opponent reveals their hand. You choose a nonland card from it. That player discards that card. You may put a card that has an Adventure that player owns from exile into that player's graveyard. mana={2}{B} type=Sorcery [/card] [card] -name=Clockwork Servant -text=Adamant — When Clockwork Servant enters the battlefield, if at least three mana of the same color was spent to cast it, draw a card. -mana={3} -type=Artifact Creature -subtype=Gnome -power=2 -toughness=3 -[/card] -[card] name=Sorcerous Spyglass text=As Sorcerous Spyglass enters the battlefield, look at an opponent's hand, then choose any card name. -- Activated abilities of sources with the chosen name can't be activated unless they're mana abilities. mana={2} @@ -146,36 +113,12 @@ power=8 toughness=8 [/card] [card] -name=Mystical Dispute -text=This spell costs {2} less to cast if it targets a blue spell. -- Counter target spell unless its controller pays 3 . -mana={2}{U} -type=Instant -[/card] -[card] name=Covetous Urge text=Target opponent reveals their hand. You choose a nonland card from that player's graveyard or hand and exile it. You may cast that card for as long as it remains exiled, and you may spend mana as though it were mana of any color to cast that spell. mana={UB}{UB}{UB}{UB} type=Sorcery [/card] [card] -name=Trail of Crumbs -auto=token(473141) -text=When Trail of Crumbs enters the battlefield, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Whenever you sacrifice a Food, you may pay 1 . If you do, look at the top two cards of your library. You may reveal a permanent card from among them and put it into your hand. Put the rest on the bottom of your library in any order. -mana={1}{G} -type=Enchantment -[/card] -[card] -name=Questing Beast -abilities=vigilance,deathtouch,haste -auto=cantbeblockedby(creature[power<=2]) -text=Vigilance, deathtouch, haste -- Questing Beast can't be blocked by creatures with power 2 or less. -- Combat damage that would be dealt by creatures you control can't be prevented. -- Whenever Questing Beast deals combat damage to an opponent, it deals that much damage to target planeswalker that player controls. -mana={2}{G}{G} -type=Legendary Creature -subtype=Beast -power=4 -toughness=4 -[/card] -[card] name=Once Upon a Time text=If this spell is the first spell you've cast this game, you may cast it without paying its mana cost. -- Look at the top five cards of your library. You may reveal a creature or land card from among them and put it into your hand. Put the rest on the bottom of your library in a random order. mana={1}{G} diff --git a/projects/mtg/bin/Res/sets/primitives/XLN.txt b/projects/mtg/bin/Res/sets/primitives/XLN.txt index dd430cd8c..dff5cde91 100644 --- a/projects/mtg/bin/Res/sets/primitives/XLN.txt +++ b/projects/mtg/bin/Res/sets/primitives/XLN.txt @@ -600,7 +600,7 @@ toughness=2 [card] name=Lookout's Dispersal target=*|stack -auto=name(counter spell) target(*|stack) transforms((,newability[pay[[{2}]] name(pay 2 mana) donothing?fizzle])) forever +auto=name(counter spell) target(*|stack) transforms((,newability[pay[[{4}]] name(pay 4 mana) donothing?fizzle])) forever autohand=aslongas(pirate|mybattlefield) altercost(colorless,-1) text=Lookout's Dispersal costs {1} less to cast if you control a Pirate. -- Counter target spell unless its controller pays {4}. mana={2}{U}