From 562924044917e37f8599b4a12f5e7c3e2619c31e Mon Sep 17 00:00:00 2001 From: Eduardo MG Date: Tue, 6 Aug 2024 00:03:25 -0600 Subject: [PATCH] Changed how Clue, Food, and Treasure tokens are created. Since I can now obtain token images, the tokens should correspond to the plane and have different illustrations. --- .../mtg/bin/Res/sets/primitives/_macros.txt | 22 +- .../bin/Res/sets/primitives/borderline.txt | 872 +++++++++--------- projects/mtg/bin/Res/sets/primitives/mtg.txt | 53 +- .../bin/Res/sets/primitives/planeswalkers.txt | 10 +- 4 files changed, 471 insertions(+), 486 deletions(-) diff --git a/projects/mtg/bin/Res/sets/primitives/_macros.txt b/projects/mtg/bin/Res/sets/primitives/_macros.txt index f734fdb6d..a2211016b 100644 --- a/projects/mtg/bin/Res/sets/primitives/_macros.txt +++ b/projects/mtg/bin/Res/sets/primitives/_macros.txt @@ -113,7 +113,7 @@ #AUTO_DEFINE _ECHO_($cost) $cost[{$c};next upkeep] sacrifice # Threshold -#AUTO_DEFINE _THRESHOLD_ if type(*|mygraveyard)~morethan~6 then +#AUTO_DEFINE _THRESHOLD_ if type(*|mygraveyard)~morethan~6 then # Splice onto Arcane, not implemented #AUTO_DEFINE _SPLICEARCANE_ movedTo(*[Arcane]|myStack):may castcard(copied noevent) target(*[Arcane]|myHand) @@ -130,9 +130,6 @@ # Scavenge #AUTO_DEFINE _SCAVENGE_($power) name(scavenge) counter(1/1.$power) target(creature) asSorcery -# Investigate token, Shadows over Innistrad SOI -#AUTO_DEFINE _INVESTIGATE_ token(Clue) - # Ascend, Set XLN #AUTO_DEFINE _ASCEND_ if type(City's Blessing|mybattlefield)~lessthan~1 then transforms((,newability[if type(*|mybattlefield)~morethan~9 then token(City's Blessing^notrigger)])) oneshot @@ -150,9 +147,6 @@ # The Ring Tempts #AUTO_DEFINE _RINGTEMPTS_ if type(The Ring|mybattlefield)~morethan~0 then all(The Ring|mybattlefield) transforms((,newability[theringtempts:1 controller],newability[name(Chose a ring bearer) target(creature|mybattlefield) becomesringbearer])) oneshot else token(The Ring^notrigger) and!( theringtempts:1 controller and!( name(Choose a ring bearer) target(creature|myBattlefield) becomesringbearer )! )! -# Treasure token -#AUTO_DEFINE _TREASURE_ token(Treasure) - # Cast a historic spell #AUTO_DEFINE _CASTHISTORIC_ @movedTo(*[artifact;legendary;saga]|mystack): @@ -253,6 +247,9 @@ # Beast Token #AUTO_DEFINE _BEASTTOKEN_ create(Beast:Creature Beast:3/3:green) +# 1/1 blue and red Otter creature token with prowess +#AUTO_DEFINE _OTTERTOKEN_ create(otter:creature otter:1/1:blue:red) and!( transforms((,newability[@movedTo(*[-creature]|mystack):1/1 ueot])) forever )! + # Citizen Token #AUTO_DEFINE _CITIZENTOKEN_ create(citizen:creature citizen:1/1:green:white) @@ -320,4 +317,13 @@ #AUTO_DEFINE _WHITEVAMPIRE_ create(vampire:creature vampire:1/1:white:lifelink) # Zombie Token -#AUTO_DEFINE _ZOMBIETOKEN_ create(zombie:creature zombie:2/2:black) \ No newline at end of file +#AUTO_DEFINE _ZOMBIETOKEN_ create(zombie:creature zombie:2/2:black) + +# Clue Token +#AUTO_DEFINE _CLUE_ token(Clue,Clue Artifact,0/0) and!( transforms((,newability[{2}{S}:draw:1])) forever )! + +# Food Token +#AUTO_DEFINE _FOOD_ token(Food,Food Artifact,0/0) and!( transforms((,newability[{2}{T}{S}:life:3])) forever )! + +# Treasure Token +#AUTO_DEFINE _TREASURE_ token(Treasure,Treasure Artifact,0/0) and!( transforms((,newability[{T}{S}:Add{W}],newability[{T}{S}:Add{U}],newability[{T}{S}:Add{B}],newability[{T}{S}:Add{R}],newability[{T}{S}:Add{G}])) forever )! \ No newline at end of file diff --git a/projects/mtg/bin/Res/sets/primitives/borderline.txt b/projects/mtg/bin/Res/sets/primitives/borderline.txt index 11d481a58..67ea4c453 100644 --- a/projects/mtg/bin/Res/sets/primitives/borderline.txt +++ b/projects/mtg/bin/Res/sets/primitives/borderline.txt @@ -274,12 +274,12 @@ toughness=2 [/card] [card] name=Academy Manufactor -auto=@tokencreated(food|myBattlefield):token(Clue,notrigger) -auto=@tokencreated(food|myBattlefield):token(Treasure,notrigger) -auto=@tokencreated(clue|myBattlefield):token(Food,notrigger) -auto=@tokencreated(clue|myBattlefield):token(Treasure,notrigger) -auto=@tokencreated(treasure|myBattlefield):token(Food,notrigger) -auto=@tokencreated(treasure|myBattlefield):token(Clue,notrigger) +auto=@tokencreated(food|myBattlefield):token(Clue,Clue Artifact,0/0,notrigger) and!( transforms((,newability[{2}{S}:draw:1])) forever )! +auto=@tokencreated(food|myBattlefield):token(Treasure,Treasure Artifact,0/0,notrigger) and!( transforms((,newability[{T}{S}:Add{W}],newability[{T}{S}:Add{U}],newability[{T}{S}:Add{B}],newability[{T}{S}:Add{R}],newability[{T}{S}:Add{G}])) forever )! +auto=@tokencreated(clue|myBattlefield):token(Food,Food Artifact,0/0,notrigger) and!( transforms((,newability[{2}{T}{S}:life:3])) forever )! +auto=@tokencreated(clue|myBattlefield):token(Treasure,Treasure Artifact,0/0,notrigger) and!( transforms((,newability[{T}{S}:Add{W}],newability[{T}{S}:Add{U}],newability[{T}{S}:Add{B}],newability[{T}{S}:Add{R}],newability[{T}{S}:Add{G}])) forever )! +auto=@tokencreated(treasure|myBattlefield):token(Food,Food Artifact,0/0,notrigger) and!( transforms((,newability[{2}{T}{S}:life:3])) forever )! +auto=@tokencreated(treasure|myBattlefield):token(Clue,Clue Artifact,0/0,notrigger) and!( transforms((,newability[{2}{S}:draw:1])) forever )! text=If you would create a Clue, Food, or Treasure token, instead create one of each. mana={3} type=Artifact Creature @@ -1962,7 +1962,7 @@ toughness=2 [card] name=Alquist Proft, Master Sleuth abilities=vigilance -auto=create(Clue) +auto=_CLUE_ auto={X}{W}{U}{U}{T}{S(clue|myBattlefield)}:draw:X && x life:X text=Vigilance -- When Alquist Proft, Master Sleuth enters, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- {X}{W}{U}{U}, {T}, Sacrifice a Clue: You draw X cards and gain X life. mana={1}{W}{U} @@ -2246,7 +2246,7 @@ toughness=1 name=An Offer You Can't Refuse target=*[-creature]|stack auto=fizzle -auto=token(Treasure)*2 opponent +auto=_TREASURE_*2 opponent text=Counter target noncreature spell. Its controller creates two Treasure tokens. (They're artifacts with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={U} type=Instant @@ -2331,7 +2331,7 @@ name=Ancestors' Aid target=creature auto=+2/+0 auto=first strike -auto=create(Treasure) +auto=_TREASURE_ text=Target creature gets +2/+0 and gains first strike until end of turn. -- Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{R} type=Instant @@ -2448,7 +2448,7 @@ toughness=7 [card] name=Ancient Copper Dragon abilities=flying -auto=@combatdamaged(player) from(this):rolld20 20 winability donothing winabilityend rolld20end && create(Treasure)*lastrollresult +auto=@combatdamaged(player) from(this):rolld20 20 winability donothing winabilityend rolld20end && _TREASURE_*lastrollresult text=Flying -- Whenever Ancient Copper Dragon deals combat damage to a player, roll a d20. You create a number of Treasure tokens equal to the result. mana={4}{R}{R} type=Creature @@ -2913,7 +2913,7 @@ toughness=4 [card] name=Angelic Sleuth abilities=flying -auto=@movedto(other *[counter{any}]|nonbattlezone) from(mybattlefield):name(Create clue) token(Clue) controller +auto=@movedto(other *[counter{any}]|nonbattlezone) from(mybattlefield):name(Create clue) _CLUE_ controller text=Flying -- Whenever another permanent you control leaves the battlefield, if it had counters on it, investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{W} type=Creature @@ -3306,7 +3306,7 @@ type=Instant name=Antique Collector auto=cantbeblockedby(creature[power<=2]) auto=all(creature|myBattlefield) counter(0/0.1.PerpetualCollector) notrg -auto=emblem transforms((,newability[@movedto(creature|mygraveyard) from(battlefield):name(Shuffle back) all(trigger[to]) name(Shuffle back) transforms((,newability[if compare(hascntperpetualcollector)~morethan~0 then may name(Shuffle back) name(Shuffle back) moveto(ownerlibrary) and!( token(Clue) and!( shuffle )! )!])) forever])) forever dontremove +auto=emblem transforms((,newability[@movedto(creature|mygraveyard) from(battlefield):name(Shuffle back) all(trigger[to]) name(Shuffle back) transforms((,newability[if compare(hascntperpetualcollector)~morethan~0 then may name(Shuffle back) name(Shuffle back) moveto(ownerlibrary) and!( _CLUE_ and!( shuffle )! )!])) forever])) forever dontremove text=Antique Collector can't be blocked by creatures with power 2 or less. -- When Antique Collector enters, creatures you control perpetually gain "When this creature dies, you may shuffle it into its owner's library if its in your graveyard. If you do, investigate." mana={1}{G} type=Creature @@ -5652,7 +5652,7 @@ type=Sorcery [card] name=Atsushi, the Blazing Sky abilities=flying,trample -auto=_DIES_name(Choose one) transforms((,newability[choice name(Create 3 treasures) token(Treasure)*3],newability[choice name(Exile top 2 cards) all(*[zpos<=2]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile uynt])) uynt )! ])) forever +auto=_DIES_name(Choose one) transforms((,newability[choice name(Create 3 treasures) _TREASURE_*3],newability[choice name(Exile top 2 cards) all(*[zpos<=2]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile uynt])) uynt )! ])) forever text=Flying, trample -- When Atsushi, the Blazing Sky dies, choose one -- Exile the top two cards of your library. Until the end of your next turn, you may play those cards. -- Create three Treasure tokens. mana={2}{R}{R} type=Legendary Creature @@ -5952,7 +5952,7 @@ toughness=3 name=Auspicious Arrival target=creature auto=2/2 -auto=create(Clue) +auto=_CLUE_ text=Target creature gets +2/+2 until end of turn. Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={1}{W} type=Instant @@ -6427,7 +6427,7 @@ type=Land [/card] [card] name=Axgard Artisan -auto=@counteradded(1/1) from(this) turnlimited:create(Treasure) +auto=@counteradded(1/1) from(this) turnlimited:_TREASURE_ text=Whenever one or more +1/+1 counters are put on Axgard Artisan for the first time each turn, create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{R} type=Creature @@ -6773,8 +6773,8 @@ type=Sorcery name=Baeloth Barrityl, Entertainer abilities=backgroundpartner auto=lord(creature[power<=pminus1minusend]|opponentBattlefield) transforms((,newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack])) -auto=@movedto(creature[-blocking;attacking;counter{0/0.1.Goaded}]|graveyard) from(battlefield):name(Create treasure) token(Treasure) -auto=@movedto(creature[-attacking;blocking;counter{0/0.1.Goaded}]|graveyard) from(battlefield):name(Create treasure) token(Treasure) +auto=@movedto(creature[-blocking;attacking;counter{0/0.1.Goaded}]|graveyard) from(battlefield):name(Create treasure) _TREASURE_ +auto=@movedto(creature[-attacking;blocking;counter{0/0.1.Goaded}]|graveyard) from(battlefield):name(Create treasure) _TREASURE_ text=Creatures your opponents control with power less than Baeloth Barrityl's power are goaded. (They attack each combat if able and attack a player other than you if able.) -- Whenever a goaded attacking or blocking creature dies, you create a Treasure token. -- Choose a Background (You can have a Background as a second commander.) mana={4}{R} type=Legendary Creature @@ -6868,7 +6868,7 @@ toughness=1 name=Bake into a Pie target=creature auto=destroy -auto=token(Food) +auto=_FOOD_ text=Destroy target creature. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{B}{B} type=Instant @@ -7012,7 +7012,7 @@ name=Ballroom auto=tapped auto={T}:Add{W} auto={T}:Add{B} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Ballroom enters tapped. -- {T}: Add {W} or {B}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -7613,8 +7613,8 @@ toughness=3 [/card] [card] name=Bartered Cow -auto=_DIES_token(Food) -auto=@movedTo(this|mygraveyard) from(myHand):token(Food) +auto=_DIES__FOOD_ +auto=@movedTo(this|mygraveyard) from(myHand):_FOOD_ text=When Bartered Cow dies or when you discard it, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={3}{W} type=Creature @@ -7860,7 +7860,7 @@ toughness=4 name=Battle Angels of Tyr abilities=flying auto=@combatdamaged(player) from(this) restriction{compare(ohandcount)~morethan~compare(phandcount)}:name(Draw a card) name(Draw a card) draw:1 controller -auto=@combatdamaged(player) from(this) restriction{type(land|opponentbattlefield)~morethan~type(land|mybattlefield)}:name(Create Treasure) name(Create Treasure) token(Treasure) +auto=@combatdamaged(player) from(this) restriction{type(land|opponentbattlefield)~morethan~type(land|mybattlefield)}:name(Create Treasure) name(Create Treasure) _TREASURE_ auto=@combatdamaged(player) from(this) restriction{compare(opponentlifetotal)~morethan~compare(lifetotal)}:name(Gain 3 life) name(Gain 3 life) life:3 controller text=Flying, myriad -- Whenever Battle Angels of Tyr deals combat damage to a player, draw a card if that player has more cards in hand than each other player. Then you create a Treasure token if that player controls more lands than each other player. Then you gain 3 life if that player has more life than each other player. mana={2}{W}{W} @@ -8128,7 +8128,7 @@ toughness=2 name=Beamtown Beatstick auto=teach(creature) 1/0 auto=teach(creature) menace -auto=teach(creature) transforms((,newability[@combatdamagefoeof(player) from(this):create(Treasure)])) +auto=teach(creature) transforms((,newability[@combatdamagefoeof(player) from(this):_TREASURE_])) auto={2}:equip text=Equipped creature gets +1/+0 and has menace. (It can't be blocked except by two or more creatures.) -- Whenever equipped creature deals combat damage to a player or battle, create a Treasure token. -- Equip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.) mana={R} @@ -8173,8 +8173,8 @@ name=Bearer of Overwhelming Truths backside=Daring Sleuth abilities=prowess auto=@movedTo(*[-creature]|mystack):1/1 ueot -auto=@combatdamagefoeof(player) from(this):name(Create clue) token(Clue) controller -auto=@combatdamageof(player) from(this):name(Create clue) token(Clue) controller +auto=@combatdamagefoeof(player) from(this):name(Create clue) _CLUE_ controller +auto=@combatdamageof(player) from(this):name(Create clue) _CLUE_ controller text=Prowess (Whenever you cast a noncreature spell, this creature gets +1/+1 until end of turn.) -- Whenever Bearer of Overwhelming Truths deals combat damage to a player, investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") // Daring Sleuth type=Creature subtype=Human Wizard @@ -8985,7 +8985,7 @@ type=Instant [card] name=Big Score auto=draw:2 controller -auto=token(Treasure)*2 +auto=_TREASURE_*2 text=As an additional cost to cast this spell, discard a card. -- Draw two cards and create two Treasure tokens. (They're artifacts with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{R}{D(other *|myhand)} type=Instant @@ -9015,7 +9015,7 @@ toughness=3 [/card] [card] name=Bilbo, Retired Burglar -auto=@combatdamaged(player) from(this):name(Create treasure) token(Treasure) +auto=@combatdamaged(player) from(this):name(Create treasure) _TREASURE_ auto=name(The ring tempts you) ability$!name(The ring tempts you) _RINGTEMPTS_!$ controller auto=@movedto(this|nonbattlezone) from(battlefield):name(The ring tempts you) ability$!name(The ring tempts you) _RINGTEMPTS_!$ controller text=When Bilbo, Retired Burglar enters or leaves the battlefield, the Ring tempts you. -- Whenever Bilbo deals combat damage to a player, create a Treasure token. @@ -9037,7 +9037,7 @@ toughness=1 [/card] [card] name=Bill Ferny, Bree Swindler -auto=@combat(blocked) source(this):name(Choose one) transforms((,newability[choice name(Create treasure) token(Treasure)],newability[if type(horse|mybattlefield)~morethan~0 then choice name(Give control of horse) name(Give control of horse) target(horse|mybattlefield) moveto(opponentbattlefield) and!( removefromcombat all(this) && token(Treasure)*3 )! ])) oneshot +auto=@combat(blocked) source(this):name(Choose one) transforms((,newability[choice name(Create treasure) _TREASURE_],newability[if type(horse|mybattlefield)~morethan~0 then choice name(Give control of horse) name(Give control of horse) target(horse|mybattlefield) moveto(opponentbattlefield) and!( removefromcombat all(this) && _TREASURE_*3 )! ])) oneshot text=Whenever Bill Ferny, Bree Swindler becomes blocked, choose one -- Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Target opponent gains control of target Horse you control. If they do, remove Bill Ferny from combat and create three Treasure tokens. mana={1}{U} type=Legendary Creature @@ -9047,7 +9047,7 @@ toughness=1 [/card] [card] name=Bill the Pony -auto=name(Create foods) token(Food)*2 +auto=name(Create foods) _FOOD_*2 auto={S(food|mybattlefield)}:name(Creature assign toughness damage) target(creature|myBattlefield) transforms((,newability[combattoughness])) ueot text=When Bill the Pony enters, create two Food tokens. (They're artifacts with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Sacrifice a Food: Until end of turn, target creature you control assigns combat damage equal to its toughness rather than its power. mana={3}{W} @@ -9061,7 +9061,7 @@ name=Billiard Room auto=tapped auto={T}:Add{B} auto={T}:Add{R} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Billiard Room enters tapped. -- {T}: Add {B} or {R}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -9444,7 +9444,7 @@ subtype=Gate name=Black Market Connections auto=@each my firstmain:may name(Hire a Mercenary) Create(Shapeshifter:Creature Shapeshifter:3/2:changeling) && life:-3 auto=@each my firstmain:may name(Buy Information) Draw:1 && life:-2 -auto=@each my firstmain:may name(Sell Contraband) Create(Treasure) && life:-1 +auto=@each my firstmain:may name(Sell Contraband) _TREASURE_ && life:-1 text=At the beginning of your precombat main phase, choose one or more - -- - Sell Contraband - Create a Treasure token. You lose 1 life. -- - Buy Information - Draw a card. You lose 2 life. -- - Hire a Mercenary - Create a 3/2 colorless Shapeshifter creature token with changeling. You lose 3 life. (It has every creature type.) mana={2}{B} type=Enchantment @@ -9452,7 +9452,7 @@ type=Enchantment [card] name=Black Market Tycoon auto=@each my upkeep:foreach(treasure|myBattlefield) damage:2 controller -auto={T}:token(Treasure) +auto={T}:_TREASURE_ text=At the beginning of your upkeep, Black Market Tycoon deals 2 damage to you for each Treasure you control. -- {T}: Create a Treasure token. mana={R}{G} type=Creature @@ -10484,7 +10484,7 @@ toughness=3 [/card] [card] name=Blood Money -auto=@movedto(creature|graveyard):create(Treasure) and!( tap(noevent) )! +auto=@movedto(creature|graveyard):_TREASURE_ and!( tap(noevent) )! auto=destroy all(creature) text=Destroy all creatures. For each nontoken creature destroyed this way, you create a tapped Treasure token. mana={5}{B}{B} @@ -11222,7 +11222,7 @@ type=Instant [/card] [card] name=Boar -auto=_DIES_token(Food) +auto=_DIES__FOOD_ text=When this creature dies, create a Food token. (A Food token is an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") type=Creature subtype=Boar @@ -11948,7 +11948,7 @@ toughness=1 [/card] [card] name=Bootleggers' Stash -auto=lord(land|myBattlefield) {T}:token(Treasure) +auto=lord(land|myBattlefield) {T}:_TREASURE_ text=Lands you control have "{T}: Create a Treasure token." mana={5}{G} type=Artifact @@ -12546,7 +12546,7 @@ type=Land [/card] [card] name=Brandywine Farmer -auto=name(Create food) token(Food) +auto=name(Create food) _FOOD_ text=When Brandywine Farmer enters or leaves the battlefield, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{G} type=Creature @@ -12568,7 +12568,7 @@ toughness=1 [/card] [card] name=Brass's Bounty -auto=name(Create treasures) token(Treasure)*type:land:myBattlefield +auto=name(Create treasures) _TREASURE_*type:land:myBattlefield text=For each land you control, create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={6}{R} type=Sorcery @@ -12648,7 +12648,7 @@ toughness=3 [/card] [card] name=Brazen Freebooter -auto=token(Treasure) +auto=_TREASURE_ text=When Brazen Freebooter enters, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{R} type=Creature @@ -12908,7 +12908,7 @@ toughness=4 [/card] [card] name=Briarbridge Patrol -auto=@damaged(creature) from(this):name(Investigate) token(Clue) +auto=@damaged(creature) from(this):name(Investigate) _CLUE_ auto=@sacrificed(clue|myBattlefield):counter(0/0.1.ClueSac) notrg auto=@each endofturn restriction{compare(hascntcluesac)~morethan~2}:name(Put creature in play) name(Put creature in play) target(creature|myhand) moveto(myBattlefield) auto=@each endofturn:removeallcounters(0/0.1.ClueSac) @@ -12923,7 +12923,7 @@ toughness=3 name=Briarbridge Tracker abilities=vigilance auto=aslongas(*[token]|mybattlefield) 2/0 >0 -auto=token(Clue) +auto=_CLUE_ text=Vigilance -- When Briarbridge Tracker enters, investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") -- As long as you control a token, Briarbridge Tracker gets +2/+0. type=Creature subtype=Human Scout @@ -13584,7 +13584,7 @@ type=Instant [/card] [card] name=Bucknard's Everfull Purse -auto={1}{T}:name(Roll a d4) rolld4 4 winability token(Treasure)*lastrollresult winabilityend loseability token(Treasure)*lastrollresult loseabilityend rolld4end +auto={1}{T}:name(Roll a d4) rolld4 4 winability _TREASURE_*lastrollresult winabilityend loseability _TREASURE_*lastrollresult loseabilityend rolld4end auto=@dierolled(this):moveto(opponentbattlefield) text={1}, {T}: Roll a d4 and create a number of Treasure tokens equal to the result. The player to your right gains control of Bucknard's Everfull Purse. mana={2} @@ -13642,7 +13642,7 @@ toughness=2 name=Burakos, Party Leader abilities=backgroundpartner auto=becomes(Cleric Rogue Warrior Wizard) -auto=_ATTACKING_damage:calculateparty opponent && create(Treasure)*calculateparty +auto=_ATTACKING_damage:calculateparty opponent && _TREASURE_*calculateparty text=Burakos, Party Leader is also a Cleric, Rogue, Warrior, and Wizard. -- Whenever Burakos attacks, defending player loses X life and you create X Treasure tokens, where X is the number of creatures in your party. -- Choose a Background (You can have a Background as a second commander.) mana={3}{B} type=Legendary Creature @@ -13652,7 +13652,7 @@ toughness=4 [/card] [card] name=Burdened Aerialist -auto=token(Treasure) +auto=_TREASURE_ auto=@sacrificed(*[token]|mybattlefield):name(Gains flying) transforms((,flying)) ueot text=When Burdened Aerialist enters, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") -- Whenever you sacrifice a token, Burdened Aerialist gains flying until end of turn. mana={2}{U} @@ -13925,7 +13925,7 @@ type=Sorcery [/card] [card] name=Butterbur, Bree Innkeeper -auto=@each my endofturn restriction{type(food|mybattlefield)~equalto~0}:name(Create food) token(Food) +auto=@each my endofturn restriction{type(food|mybattlefield)~equalto~0}:name(Create food) _FOOD_ text=At the beginning of your end step, if you don't control a Food, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{G}{W} type=Legendary Creature @@ -13936,7 +13936,7 @@ toughness=3 [card] name=Buy Your Silence target=*[-land] -auto=moveto(exile) && create(Treasure) targetController +auto=moveto(exile) && _TREASURE_ targetController text=Exile target nonland permanent. Its controller creates a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={4}{W} type=Sorcery @@ -14713,7 +14713,7 @@ toughness=2 name=Captain Lannery Storm abilities=haste auto=@sacrificed(Treasure):1/0 ueot -auto=_ATTACKING_token(Treasure) +auto=_ATTACKING__TREASURE_ text=Haste -- Whenever Captain Lannery Storm attacks, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." -- Whenever you sacrifice a Treasure, Captain Lannery Storm gets +1/+0 until end of turn. mana={2}{R} type=Legendary Creature @@ -14887,7 +14887,7 @@ subtype=Aura [/card] [card] name=Careening Mine Cart -auto=_ATTACKING_create(Treasure) +auto=_ATTACKING__TREASURE_ auto={crew(other creature[power>=1]|myBattlefield)}:name(crew 1 [1 creature]) becomes(Artifact Creature) ueot restriction{type(other creature[-tapped;power>=1]|mybattlefield)~morethan~0,compare(crewtotalpower)~morethan~0} text=Whenever Careening Mine Cart attacks, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Crew 1 (Tap any number of creatures you control with total power 1 or more: This Vehicle becomes an artifact creature until end of turn.) mana={3} @@ -14928,7 +14928,7 @@ toughness=1 [/card] [card] name=Carnage Interpreter -auto=reject all(*|myhand) && create(clue)*4 +auto=reject all(*|myhand) && _CLUE_*4 auto=aslongas(*|myhand) 2/2 <2 auto=aslongas(*|myhand) menace <2 text=When Carnage Interpreter enters, discard your hand, then investigate four times. (To investigate, create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- As long as you have one or fewer cards in hand, Carnage Interpreter gets +2/+2 and has menace. @@ -15196,7 +15196,7 @@ subtype=Case [/card] [card] name=Case of the Filched Falcon -auto=create(Clue) +auto=_CLUE_ auto=@each my end restriction{type(artifact|myBattlefield)~morethan~2}:becomes(Solved) forever auto=this(cantargetcard(*[Solved]) transforms((,newability[{2}{U}{S}:target(artifact[-creature]) transforms((Bird creature,newability[counter(1/1.4)],flying)) forever])) ) text=When this Case enters, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- To solve - You control three or more artifacts. (If unsolved, solve at the beginning of your end step.) -- Solved - {2}{U}, Sacrifice this Case: Put four +1/+1 counters on target noncreature artifact. It becomes a 0/0 Bird creature with flying in addition to its other types. @@ -15770,8 +15770,8 @@ type=Land name=Cavern-Hoard Dragon abilities=flying,haste,trample anyzone=affinity(artifact|opponentBattlefield) reduce({1}) -auto=@combatdamagefoeof(player) from(this):name(Create treasures) token(Treasure)*type:artifact:opponentbattlefield -auto=@combatdamageof(player) from(this):name(Create treasures) token(Treasure)*type:artifact:mybattlefield +auto=@combatdamagefoeof(player) from(this):name(Create treasures) _TREASURE_*type:artifact:opponentbattlefield +auto=@combatdamageof(player) from(this):name(Create treasures) _TREASURE_*type:artifact:mybattlefield text=This spell costs {X} less to cast, where X is the greatest number of artifacts an opponent controls. -- Flying, trample, haste -- Whenever Cavern-Hoard Dragon deals combat damage to a player, you create a Treasure token for each artifact that player controls. mana={7}{R}{R} type=Creature @@ -17838,7 +17838,7 @@ type=Sorcery [/card] [card] name=Cirith Ungol Patrol -auto={1}{T}{S(other creature|mybattlefield)}:name(Draw and create food) token(Food) and!( draw:1 controller )! +auto={1}{T}{S(other creature|mybattlefield)}:name(Draw and create food) _FOOD_ and!( draw:1 controller )! text={1}, {T}, Sacrifice another creature: Draw a card, then create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={4}{B} type=Creature @@ -18658,12 +18658,6 @@ power=3 toughness=2 [/card] [card] -name=Clue -auto={S}{2}:name(Draw 1) draw:1 controller -text={2}, Sacrifice this artifact: Draw a card. -type=Artifact Clue -[/card] -[card] name=Coalborn Entity auto={2}{R}:name(target creature token) damage:1 target(creature[token]) auto={2}{R}:name(player or planeswalker) damage:1 target(player,planeswalker) @@ -18888,7 +18882,7 @@ subtype=Aura [card] name=Cold Case Cracker abilities=flying -auto=_DIES_create(Clue) +auto=_DIES__CLUE_ text=Flying -- When Cold Case Cracker dies, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={3}{U} type=Creature @@ -19029,7 +19023,7 @@ toughness=5 [/card] [card] name=Collector's Vault -auto={2}{T}:_LOOT_ && token(Treasure) +auto={2}{T}:_LOOT_ && _TREASURE_ text={2}, {T}: Draw a card, then discard a card. Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2} type=Artifact @@ -20008,7 +20002,7 @@ name=Conservatory auto=tapped auto={T}:Add{G} auto={T}:Add{W} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Conservatory enters tapped. -- {T}: Add {G} or {W}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -20332,7 +20326,7 @@ type=Instant name=Contract Killing target=creature auto=destroy -auto=token(Treasure)*2 +auto=_TREASURE_*2 text=Destroy target creature. Create two colorless Treasure artifact tokens with "{T}, Sacrifice this artifact: Add one mana of any color." mana={3}{B}{B} type=Sorcery @@ -20667,7 +20661,7 @@ type=Enchantment [/card] [card] name=Corsair Captain -auto=token(Treasure) +auto=_TREASURE_ auto=lord(other creature[pirate]|mybattlefield) 1/1 text=When Corsair Captain enters, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") -- Other Pirates you control get +1/+1. mana={2}{U} @@ -21085,7 +21079,7 @@ color=blue name=Crack Open target=artifact,enchantment auto=destroy -auto=token(Treasure) +auto=_TREASURE_ text=Destroy target artifact or enchantment. Create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{G} type=Sorcery @@ -21385,7 +21379,7 @@ target=anytarget auto=damage:5 aicode=activate transforms((,newability[target(*[zpos<=5]|mylibrary) moveto(ownerHand) and!( all(*[zpos<=5]|mylibrary) moveto(myreveal) and!( bottomoflibrary )! )!])) ueot auto=name(Reveal 5 cards) reveal:5 optionone name(Get Card) target(*|reveal) moveto(ownerHand) optiononeend optiontwo name(put on bottom) all(*|reveal) bottomoflibrary optiontwoend revealend -autohand={UR}{UR}{D}:token(Treasure) +autohand={UR}{UR}{D}:_TREASURE_ text=Creative Outburst deals 5 damage to any target. Look at the top five cards of your library. Put one of them into your hand and the rest on the bottom of your library in a random order. -- {UR}{UR}, Discard Creative Outburst: Create a Treasure token. mana={3}{U}{U}{R}{R} type=Instant @@ -22087,7 +22081,7 @@ type=Sorcery [/card] [card] name=Culmination of Studies -auto=all(land[zpos<=x]|mylibrary) moveto(exile) and!( transforms((,newability[token(Treasure)])) oneshot )! +auto=all(land[zpos<=x]|mylibrary) moveto(exile) and!( transforms((,newability[_TREASURE_])) oneshot )! auto=all(*[blue;zpos<=x]|mylibrary) moveto(exile) and!( transforms((,newability[draw:1 controller])) oneshot )! auto=all(*[red;zpos<=x]|mylibrary) moveto(exile) and!( transforms((,newability[damage:1 opponent])) oneshot )! text=Exile the top X cards of your library. For each land card exiled this way, create a Treasure token. For each blue card exiled this way, draw a card. For each red card exiled this way, Culmination of Studies deals 1 damage to each opponent. @@ -22321,7 +22315,7 @@ toughness=1 name=Curious Inquiry target=creature auto=teach(creature) 1/1 -auto=teach(creature) transforms((,newability[@combatdamaged(player) from(this):create(Clue)])) ueot +auto=teach(creature) transforms((,newability[@combatdamaged(player) from(this):_CLUE_])) ueot text=Enchant creature -- Enchanted creature gets +1/+1 and has "Whenever this creature deals combat damage to a player, investigate." (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={U} type=Enchantment @@ -22350,7 +22344,7 @@ subtype=Aura name=Curious Pair // Treats to Share abilities=adventure other={G} name(Adventure) -auto=if paid(alternative) then name(Create Food) name(Create Food) token(Food) +auto=if paid(alternative) then name(Create Food) name(Create Food) _FOOD_ auto=if paid(alternative) then _ADVENTURE_ text=Create a Food token. (Then exile this card. You may cast the creature later from exile. A Food token is an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={1}{G} @@ -23790,7 +23784,7 @@ toughness=3 [/card] [card] name=Deadeye Plunderers -auto={2}{U}{B}:token(Treasure) +auto={2}{U}{B}:_TREASURE_ auto=foreach(artifact|mybattlefield) 1/1 text=Deadeye Plunderers gets +1/+1 for each artifact you control. -- {2}{U}{B}: Create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={3}{U}{B} @@ -23884,7 +23878,7 @@ toughness=3 name=Deadly Derision target=creature,planeswalker auto=destroy -auto=create(Treasure) +auto=_TREASURE_ text=Destroy target creature or planeswalker. Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{B}{B} type=Instant @@ -23900,7 +23894,7 @@ type=Enchantment [card] name=Deadly Dispute auto=draw:2 controller -auto=token(Treasure) +auto=_TREASURE_ text=As an additional cost to cast this spell, sacrifice an artifact or creature. -- Draw two cards and create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{B}{S(*[creature;artifact]|myBattlefield)} type=Instant @@ -24357,7 +24351,7 @@ type=Instant [card] name=Deduce auto=draw:1 -auto=create(Clue) +auto=_CLUE_ text=Draw a card. Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={1}{U} type=Instant @@ -25039,7 +25033,7 @@ toughness=3 name=Dennick, Pious Apparition backside=Dennick, Pious Apprentice abilities=flying,exiledeath -auto=@movedTo(creature|graveyard) turnlimited:name(Investigate) token(Clue) +auto=@movedTo(creature|graveyard) turnlimited:name(Investigate) _CLUE_ text=Flying -- Whenever one or more creature cards are put into graveyards from anywhere, investigate. This ability triggers only once each turn. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- If Dennick, Pious Apparition would be put into a graveyard from anywhere, exile it instead. // Dennick, Pious Apprentice type=Legendary Creature subtype=Spirit Soldier @@ -25165,7 +25159,7 @@ toughness=9 name=Depths of Desire target=creature auto=moveto(ownerhand) -auto=name(Create treasure) token(Treasure) +auto=name(Create treasure) _TREASURE_ text=Return target creature to its owner's hand. Create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={2}{U} type=Instant @@ -25225,8 +25219,8 @@ type=Enchantment [/card] [card] name=Descent into Avernus -auto=@each my upkeep:thisforeach(counter{0/0.1.descent}) create(Treasure) controller -auto=@each my upkeep:thisforeach(counter{0/0.1.descent}) create(Treasure) opponent +auto=@each my upkeep:thisforeach(counter{0/0.1.descent}) _TREASURE_ controller +auto=@each my upkeep:thisforeach(counter{0/0.1.descent}) _TREASURE_ opponent auto=@each my upkeep:counter(0/0,2,descent) && all(player) thisforeach(counter{0/0.1.descent}) damage:1 text=At the beginning of your upkeep, put two descent counters on Descent into Avernus. Then each player creates X Treasure tokens and Descent into Avernus deals X damage to each player, where X is the number of descent counters on Descent into Avernus. mana={2}{R} @@ -25795,7 +25789,7 @@ type=Enchantment [card] name=Diabolical Salvation abilities=split second -auto=name(Create devil) token(Devil,Creature Devil,4/4,red,unearth) and!( transforms((,newability[_DIES_token(Treasure)])) forever )! +auto=name(Create devil) token(Devil,Creature Devil,4/4,red,unearth) and!( transforms((,newability[_DIES__TREASURE_])) forever )! text=Split second Create four 4/4 red Devil creature tokens with haste and "When this creature dies, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color."." -- Sacrifice the Devil tokens at the beginning of the next end step. mana={2}{R}{R}{R}{R} type=Instant @@ -25839,7 +25833,7 @@ toughness=3 name=Diamond Pick-Axe abilities=indestructible auto=teach(creature) 1/1 -auto=teach(creature) transforms((,newability[_ATTACKING_token(treasure)])) +auto=teach(creature) transforms((,newability[_ATTACKING__TREASURE_])) auto={2}:equip text=Indestructible (Effects that say "destroy" don't destroy this artifact.) -- Equipped creature gets +1/+1 and has "Whenever this creature attacks, create a Treasure token." (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Equip {2} mana={R} @@ -26008,7 +26002,7 @@ name=Dining Room auto=tapped auto={T}:Add{R} auto={T}:Add{G} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Dining Room enters tapped. -- {T}: Add {R} or {G}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -26082,7 +26076,7 @@ toughness=1 [/card] [card] name=Dire Fleet Hoarder -auto=_DIES_token(Treasure) +auto=_DIES__TREASURE_ text=When Dire Fleet Hoarder dies, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={1}{B} type=Creature @@ -26332,7 +26326,7 @@ type=Sorcery [/card] [card] name=Discerning Financier -auto=@each my upkeep restriction{control less lands}:create(Treasure) +auto=@each my upkeep restriction{control less lands}:_TREASURE_ auto={2}{W}:moveTo(opponentBattlefield) target(treasure|myBattlefield) && draw:1 controller text=At the beginning of your upkeep, if an opponent controls more lands than you, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- {2}{W}: Choose another player. That player gains control of target Treasure you control. You draw a card. mana={2}{W} @@ -26489,7 +26483,7 @@ toughness=2 name=Disorder in the Court target=creature|battlefield auto=moveto(exile) and!( transforms((,newability[@each endofturn:name(Return tapped) moveto(ownerbattlefield) and!( tap(noevent) )!])) ueot )! -auto=token(Clue) +auto=_CLUE_ text=Exile X target creatures, then investigate X times. Return the exiled cards to the battlefield tapped under their owners' control at the beginning of the next end step. (To investigate, create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") mana={X}{W}{U} type=Instant @@ -26890,8 +26884,8 @@ toughness=2 [/card] [card] name=Dockside Extortionist -auto=name(Create treasures) token(Treasure)*type:artifact:opponentbattlefield -auto=name(Create treasures) token(Treasure)*type:enchantment:opponentbattlefield +auto=name(Create treasures) _TREASURE_*type:artifact:opponentbattlefield +auto=name(Create treasures) _TREASURE_*type:enchantment:opponentbattlefield text=When Dockside Extortionist enters, create X Treasure tokens, where X is the number of artifacts and enchantments your opponents control. (Treasure tokens are artifacts with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{R} type=Creature @@ -27436,7 +27430,7 @@ toughness=1 [card] name=Drag the Canal auto=create(Detective:creature Detective:2/2:white:blue) -auto=if morbid then life:2 controller && _SURVEIL2_ && create(Clue) +auto=if morbid then life:2 controller && _SURVEIL2_ && _CLUE_ text=Create a 2/2 white and blue Detective creature token. If a creature died this turn, you gain 2 life, surveil 2, then investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={U}{B} type=Instant @@ -29023,7 +29017,7 @@ aicode=activate target(*[zpos<=3]|mylibrary) moveto(ownerHand) and!( transforms( autocommandzone=transforms((,newability[shroud],indestructible)) forever autocommandzone=@counteradded(0/0,1,Explore) from(Dungeon of the Mad Mage|mycommandzone) restriction{compare(hascntexplore)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Yawning Portal) name(Yawning Portal) life:1 controller!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Dungeon of the Mad Mage|mycommandzone) restriction{compare(hascntexplore)~equalto~2}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Dungeon Level) name(Dungeon Level) _SCRY1_!$ controller -autocommandzone=@counteradded(0/0,1,Explore) from(Dungeon of the Mad Mage|mycommandzone) restriction{compare(hascntexplore)~equalto~3}:ability$!name(Goblin Bazaar or Twisted Caverns) all(Dungeon of the Mad Mage|mycommandzone) transforms((,newability[choice name(Goblin Bazaar) token(Treasure)*type:*[twodngtrg]:mybattlefieldplus1plusend],newability[if type(creature|battlefield)~morethan~0 then choice name(Twisted Caverns) name(Twisted Caverns) target(creature|battlefield) transforms((,cantattack,cantpwattack)) uynt])) oneshot!$ controller +autocommandzone=@counteradded(0/0,1,Explore) from(Dungeon of the Mad Mage|mycommandzone) restriction{compare(hascntexplore)~equalto~3}:ability$!name(Goblin Bazaar or Twisted Caverns) all(Dungeon of the Mad Mage|mycommandzone) transforms((,newability[choice name(Goblin Bazaar) _TREASURE_*type:*[twodngtrg]:mybattlefieldplus1plusend],newability[if type(creature|battlefield)~morethan~0 then choice name(Twisted Caverns) name(Twisted Caverns) target(creature|battlefield) transforms((,cantattack,cantpwattack)) uynt])) oneshot!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Dungeon of the Mad Mage|mycommandzone) restriction{compare(hascntexplore)~equalto~4}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Lost Level) name(Lost Level) _SCRY2_!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Dungeon of the Mad Mage|mycommandzone) restriction{compare(hascntexplore)~equalto~5}:ability$!name(Runestone Caverns or Muiral's Graveyard) transforms((,newability[choice name(Muiral's Graveyard) token(Skeleton Mad)*twicetype:*[twodngtrg]:mybattlefieldplus1plusend],newability[choice name(Runestone Caverns) all(*[zpos<=twicecardcountabiltwodngtrgplus1plusend]|mylibrary) moveto(exile) and!( transforms((,newability[canplayfromexile forever])) forever )!])) oneshot!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Dungeon of the Mad Mage|mycommandzone) restriction{compare(hascntexplore)~equalto~6}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Deep Mines) name(Deep Mines) _SCRY3_!$ controller @@ -29035,7 +29029,7 @@ type=Dungeon [card] name=Dungeoneer's Pack auto=tap(noevent) -auto={2}{T}{S}:name(Create treasure, draw and life) transforms((,newability[_INITIATIVE_CONTROLLER_],newability[token(Treasure)],newability[draw:1 controller],newability[life:3 life])) oneshot asSorcery +auto={2}{T}{S}:name(Create treasure, draw and life) transforms((,newability[_INITIATIVE_CONTROLLER_],newability[_TREASURE_],newability[draw:1 controller],newability[life:3 life])) oneshot asSorcery text=Dungeoneer's Pack enters tapped. -- {2}, {T}, Sacrifice Dungeoneer's Pack: You take the initiative, gain 3 life, draw a card, and create a Treasure token. Activate only as a sorcery. (A Treasure token is an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={3} type=Artifact @@ -29782,7 +29776,7 @@ toughness=1 [/card] [card] name=Eastfarthing Farmer -auto=name(Create food) token(Food) and!( name(Creature gains X/X) target(creature|myBattlefield) type:food:myBattlefield/type:food:myBattlefield ueot)! +auto=name(Create food) _FOOD_ and!( name(Creature gains X/X) target(creature|myBattlefield) type:food:myBattlefield/type:food:myBattlefield ueot)! text=When Eastfarthing Farmer enters, create a Food token. When you do, target creature you control gets +1/+1 until end of turn for each Food you control. (A Food token is an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{W} type=Creature @@ -30248,7 +30242,7 @@ toughness=3 [/card] [card] name=Elanor Gardner -auto=name(Create food) token(Food) +auto=name(Create food) _FOOD_ auto=@sacrificed(food|mybattlefield) turnlimited:name(Sacrificed food) transforms((,newability[@each my endofturn:name(Search basic land) name(Search basic land) target(land[basic]|mylibrary) moveto(mybattlefield) and!( transforms((,newability[tap(noevent)],newability[shuffle])) oneshot )!])) ueot text=When Elanor Gardner enters, create a Food token. -- At the beginning of your end step, if you sacrificed a Food this turn, you may search your library for a basic land card, put that card onto the battlefield tapped, then shuffle. mana={3}{G} @@ -30521,7 +30515,7 @@ color=white [card] name=Elemental Masterpiece auto=token(Elemental,Creature Elemental,4/4,blue,red)*2 -autohand={UR}{UR}{D}:name(Create a treasure) token(Treasure) +autohand={UR}{UR}{D}:name(Create a treasure) _TREASURE_ text=Create two 4/4 blue and red Elemental creature tokens. -- {UR}{UR}, Discard Elemental Masterpiece: Create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={5}{U}{R} type=Sorcery @@ -30784,7 +30778,7 @@ type=Instant name=Eloise, Nephalia Sleuth aicode=activate transforms((,newability[surveil],newability[all(*[zpos<=psurveiloffsetplus1plusend]|mylibrary) transforms((,newability[if compare(genrand2)~equalto~1 then moveto(mygraveyard)])) oneshot])) oneshot auto=@sacrificed(*[token]|mybattlefield):_SURVEIL1_ -auto=@movedTo(other creature|graveyard) from(mybattlefield):name(Investigate) token(Clue) +auto=@movedTo(other creature|graveyard) from(mybattlefield):name(Investigate) _CLUE_ text=Whenever another creature you control dies, investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you sacrifice a token, surveil 1. (Look at the top card of your library. You may put that card into your graveyard.) mana={3}{U}{B} type=Legendary Creature @@ -30905,7 +30899,7 @@ type=Instant [/card] [card] name=Elven Bow -auto=may name(Create elf and attach) pay({2}) name(Create elf and attach) moveTo(mybattlefield) and!( transforms((,newability[token(Elf^Creature Elf Warrior^1/1^green)],newability[rehook target(warrior[token;elf;fresh]|mybattlefield)])) oneshot )! +auto=pay({2}) name(Create elf and attach) moveTo(mybattlefield) and!( transforms((,newability[token(Elf^Creature Elf Warrior^1/1^green)],newability[rehook target(warrior[token;elf;fresh]|mybattlefield)])) oneshot )! auto={3}:equip auto=teach(creature) 1/2 auto=teach(creature) reach @@ -31832,7 +31826,7 @@ type=Sorcery [/card] [card] name=Enterprising Scallywag -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then create(Treasure) +auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then _TREASURE_ text=At the beginning of your end step, if you descended this turn, create a Treasure token. (You descended if a permanent card was put into your graveyard from anywhere.) mana={1}{R} type=Creature @@ -32176,7 +32170,7 @@ name=Erebos, Bleak-Hearted abilities=indestructible auto=this(variable{type:manab}<5) transforms((removetypes,newability[becomes(Legendary Enchantment God)])) auto=this(variable{type:manab}>4) transforms((Legendary Enchantment Creature)) -auto=@movedto(graveyard) from(creature|myBattlefield):may pay({L:2}):Draw:1 controller +auto=@movedto(graveyard) from(other creature|myBattlefield):may pay({L:2}):Draw:1 controller auto={1}{B}{S(other creature|mybattlefield)}:-2/-1 target(creature) ueot text=Indestructible -- As long as your devotion to black is less than five, Erebos isn't a creature. -- Whenever another creature you control dies, you may pay 2 life. If you do, draw a card. -- {1}{B}, Sacrifice another creature: Target creature gets -2/-1 until end of turn. mana={3}{B} @@ -32757,7 +32751,7 @@ type=Instant [card] name=Ethereal Investigator abilities=flying -auto=name(Investigate) token(Clue) +auto=name(Investigate) _CLUE_ auto=_SECOND_DRAW_name(Create spirit) _SPIRITTOKEN_ text=Flying -- When Ethereal Investigator enters, investigate X times, where X is the number of opponents you have. (To investigate, create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you draw your second card each turn, create a 1/1 white Spirit creature token with flying. mana={3}{U} @@ -33478,9 +33472,9 @@ toughness=3 [card] name=Excavation Technique other={3}{W} name(Demonstrate) -auto=name(Destroy permanent) target(*[-land]|battlefield) transforms((,newability[destroy],newability[token(Treasure)*2])) oneshot -auto=if paid(alternative) then ability$!name(Destroy permanent) name(Destroy permanent) target(*[-land]|battlefield) transforms((,newability[destroy],newability[token(Treasure)*2])) oneshot!$ controller -auto=if paid(alternative) then ability$!name(Destroy permanent) name(Destroy permanent) target(*[-land]|battlefield) transforms((,newability[destroy],newability[token(Treasure)*2])) oneshot!$ opponent +auto=name(Destroy permanent) target(*[-land]|battlefield) transforms((,newability[destroy],newability[_TREASURE_*2])) oneshot +auto=if paid(alternative) then ability$!name(Destroy permanent) name(Destroy permanent) target(*[-land]|battlefield) transforms((,newability[destroy],newability[_TREASURE_*2])) oneshot!$ controller +auto=if paid(alternative) then ability$!name(Destroy permanent) name(Destroy permanent) target(*[-land]|battlefield) transforms((,newability[destroy],newability[_TREASURE_*2])) oneshot!$ opponent text=Demonstrate (When you cast this spell, you may copy it. If you do, choose an opponent to also copy it. Players may choose new targets for their copies.) -- Destroy target nonland permanent. Its controller creates two Treasure tokens. mana={3}{W} type=Sorcery @@ -33581,7 +33575,7 @@ toughness=4 [card] name=Exhibition Magician auto=choice _CITIZENTOKEN_ -auto=choice token(Treasure) +auto=choice _TREASURE_ text=When Exhibition Magician enters, choose one -- Create a 1/1 green and white Citizen creature token. -- Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Creature @@ -33786,7 +33780,7 @@ type=Instant [/card] [card] name=Experimental Confectioner -auto=create(Food) +auto=_FOOD_ auto=@sacrificed(food|mybattlefield):create(rat:creature rat:1/1:black:cantblock) text=When Experimental Confectioner enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Whenever you sacrifice a Food, create a 1/1 black Rat creature token with "This creature can't block." mana={2}{B} @@ -34159,7 +34153,7 @@ toughness=1 [card] name=Ezrim, Agency Chief abilities=flying -auto=create(Clue)*2 +auto=_CLUE_*2 auto={1}{S(artifact|myBattlefield)}:vigilance ueot auto={1}{S(artifact|myBattlefield)}:lifelink ueot auto={1}{S(artifact|myBattlefield)}:hexproof ueot @@ -34228,7 +34222,7 @@ backside=Reflection of Kiki-Jiki restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=counter(0/0,1,Lore) -auto=token(Goblin, Goblin Shaman Creature,2/2,red) and!( transforms((,newability[_ATTACKING_name(Create treasure) token(Treasure)])) forever )! +auto=token(Goblin, Goblin Shaman Creature,2/2,red) and!( transforms((,newability[_ATTACKING_name(Create treasure) _TREASURE_])) forever )! auto=@each my firstmain:counter(0/0,1,Lore) auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}<=2) may name(Discard and draw) reject notatarget(*|myhand) and!( draw:1 controller )! auto=@counteradded(0/0,1,Lore) from(this) turnlimited:this(counter{0/0.3.Lore}) this(counter{0/0.3.Lore}) moveto(exile) and!( flip(backside) forcetype(Enchantment Creature) )! asSorcery @@ -34351,9 +34345,9 @@ subtype=Aura [/card] [card] name=Fae Offering -auto=@each my end restriction{thisturn(*[-creature]|mystack)~morethan~0,thisturn(*[creature]|mystack)~morethan~0}:name(Create clue) token(Clue) -auto=@each my end restriction{thisturn(*[-creature]|mystack)~morethan~0,thisturn(*[creature]|mystack)~morethan~0}:name(Create food) token(Food) -auto=@each my end restriction{thisturn(*[-creature]|mystack)~morethan~0,thisturn(*[creature]|mystack)~morethan~0}:name(Create treasure) token(Treasure) +auto=@each my end restriction{thisturn(*[-creature]|mystack)~morethan~0,thisturn(*[creature]|mystack)~morethan~0}:name(Create clue) _CLUE_ +auto=@each my end restriction{thisturn(*[-creature]|mystack)~morethan~0,thisturn(*[creature]|mystack)~morethan~0}:name(Create food) _FOOD_ +auto=@each my end restriction{thisturn(*[-creature]|mystack)~morethan~0,thisturn(*[creature]|mystack)~morethan~0}:name(Create treasure) _TREASURE_ text=At the beginning of each end step, if you've cast both a creature spell and a noncreature spell this turn, create a Clue token, a Food token, and a Treasure token. mana={2}{G} type=Enchantment @@ -34538,7 +34532,7 @@ type=Instant [card] name=Fain, the Broker auto={T}{S(creature|mybattlefield)}:name(Put two 1/1 counters) target(creature|battlefield) counter(1/1,2) -auto={T}:name(Create a treasure) target(creature[counter{any}]|mybattlefield) transforms((,newability[removesinglecountertype(1)],newability[token(Treasure)])) oneshot +auto={T}:name(Create a treasure) target(creature[counter{any}]|mybattlefield) transforms((,newability[removesinglecountertype(1)],newability[_TREASURE_])) oneshot auto={T}{S(artifact|mybattlefield)}:name(Create an inkling) token(Inkling,Creature Inkling,2/1,white,black,flying) auto={3}{B}:name(Untap Fain, the Broker) untap all(this) text={T}, Sacrifice a creature: Put two +1/+1 counters on target creature. -- {T}, Remove a counter from a creature you control: Create a Treasure token. -- {T}, Sacrifice an artifact: Create a 2/1 white and black Inkling creature token with flying. -- {3}{B}: Untap Fain, the Broker. @@ -35184,7 +35178,7 @@ type=Instant [card] name=Farmer Cotton auto=name(Create halflings) token(Halfling)*fullpaid -auto=name(Create foods) token(Food)*fullpaid +auto=name(Create foods) _FOOD_*fullpaid text=When Farmer Cotton enters, create X 1/1 white Halfling creature tokens and X Food tokens. (They're artifacts with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={X}{G}{W} type=Legendary Creature @@ -35227,7 +35221,7 @@ type=Instant [card] name=Fateful Absence target=creature,planeswalker -auto=destroy && token(Clue) targetcontroller +auto=destroy && _CLUE_ targetcontroller text=Destroy target creature or planeswalker. Its controller investigates. (They create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") mana={1}{W} type=Instant @@ -35539,7 +35533,7 @@ toughness=2 [card] name=Feasting Troll King auto=vigilance,trample -auto=if casted(this) then token(Food)*3 +auto=if casted(this) then _FOOD_*3 autograveyard={S(food|myBattlefield)}{S(food|myBattlefield)}{S(food|myBattlefield)}:moveto(myBattlefield) myturnonly text=Vigilance, trample -- When Feasting Troll King enters, if you cast it from your hand, create three Food tokens. (They're artifacts with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Sacrifice three Foods: Return Feasting Troll King from your graveyard to the battlefield. Activate this ability only during your turn. mana={2}{G}{G}{G}{G} @@ -35750,7 +35744,7 @@ type=Sorcery name=Fell the Pheasant target=creature[flying] auto=damage:5 -auto=token(Food) +auto=_FOOD_ text=Fell the Pheasant deals 5 damage to target creature with flying. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={1}{G} type=Instant @@ -36089,7 +36083,7 @@ type=Land [/card] [card] name=Field-Tested Frying Pan -autostack=token(Food) +autostack=_FOOD_ auto=teach(creature) transforms((,newability[@lifeof(player) from(*[-lifefaker]|*):name(Gains X/X) thatmuch/thatmuch ueot])) auto={2}:equip auto=livingweapontoken(Halfling,Creature Halfling,1/1,white) @@ -36171,7 +36165,7 @@ type=Instant [card] name=Fierce Witchstalker abilities=trample -auto=token(Food) +auto=_FOOD_ text=Trample -- When Fierce Witchstalker enters, create a Food token. (It's an artifact with "{2} , {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{G}{G} type=Creature @@ -37508,7 +37502,7 @@ toughness=2 name=Flick a Coin target=anyTarget auto=damage:1 -auto=token(Treasure) +auto=_TREASURE_ auto=draw:1 controller text=Flick a Coin deals 1 damage to any target. You create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Draw a card. mana={2}{R} @@ -37580,7 +37574,7 @@ type=Enchantment [/card] [card] name=Floodhound -auto={3}{T}:name(Investigate) name(Create clue) token(Clue) controller +auto={3}{T}:name(Investigate) name(Create clue) _CLUE_ controller text={3}, {T}: Investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") mana={U} type=Creature @@ -37881,13 +37875,6 @@ mana={U} type=Artifact [/card] [card] -name=Food -auto={2}{T}{S}:life:3 -text={2}, {T}, Sacrifice this artifact: You gain 3 life. -type=Artifact -subtype=Food -[/card] -[card] name=Food Chain auto=this(variable{type:creature:myrestrictedcastingzone}>0) {E(creature|myBattlefield)}:name(Add White) thisforeach(variable{storedmanacostplus1plusend}) add{W} auto=this(variable{type:creature:myrestrictedcastingzone}>0) {E(creature|myBattlefield)}:name(Add Blue) thisforeach(variable{storedmanacostplus1plusend}) add{U} @@ -37901,7 +37888,7 @@ type=Enchantment [card] name=Food Coma auto=target(creature|opponentbattlefield) (blink)forsrc -auto=token(Food) +auto=_FOOD_ text=When Food Coma enters, exile target creature an opponent controls until Food Coma leaves the battlefield. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={3}{W} type=Enchantment @@ -38059,7 +38046,7 @@ subtype=Equipment name=Foreboding Fruit target=player auto=draw:2 && life:-2 -auto=if casted(this) then if spent({B}{B}{B}) then token(Food) controller +auto=if casted(this) then if spent({B}{B}{B}) then _FOOD_ controller text=Target player draws two cards and loses 2 life. -- Adamant - If at least three black mana was spent to cast this spell, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{B} type=Sorcery @@ -38203,8 +38190,8 @@ type=Sorcery name=Forging the Tyrite Sword auto=counter(0/0,1,Lore) auto=@each my firstmain:counter(0/0,1,Lore) -auto=token(Treasure) -auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) token(Treasure) +auto=_TREASURE_ +auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) _TREASURE_ auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) name(Search library) target(equipment,Halvar^ God of Battle|mylibrary) moveto(ownerHand) and!( shuffle )! auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) sacrifice(this) text=(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.) -- I, II - Create a Treasure token. -- III - Search your library for a card named Halvar, God of Battle or an Equipment card, reveal it, put it into your hand, then shuffle. @@ -38330,7 +38317,7 @@ toughness=5 [card] name=Forsworn Paladin abilities=menace -auto={1}{B}{L:1}{T}:name(Create treasure) token(Treasure) +auto={1}{B}{L:1}{T}:name(Create treasure) _TREASURE_ auto={2}{B}:name(Pay without treasure) target(creature) 2/0 ueot auto={2}{S(treasure[-tapped]|mybattlefield)}:name(Pay with treasure) target(creature) transforms((,newability[2/0],deathtouch)) ueot text=Menace -- {1}{B}, {T}, Pay 1 life: Create a Treasure token. -- {2}{B}: Target creature get +2/+0 until end of turn. If mana from a Treasure was spent to activate this ability, that creature also gains deathtouch until end of turn. @@ -38368,7 +38355,7 @@ type=Instant [card] name=Fortifying Provisions auto=lord(creature|myBattlefield) 0/1 -auto=token(Food) +auto=_FOOD_ text=Creatures you control get +0/+1. -- When Fortifying Provisions enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{W} type=Enchantment @@ -38406,7 +38393,7 @@ toughness=1 name=Foul Play target=creature[power<=2] auto=destroy -auto=token(Clue) +auto=_CLUE_ text=Destroy target creature with power 2 or less. Investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") mana={1}{B} type=Sorcery @@ -39214,7 +39201,7 @@ type=Instant [card] name=Funnel-Web Recluse abilities=reach -auto=if morbid then name(Create clue) token(Clue) controller +auto=if morbid then name(Create clue) _CLUE_ controller text=Reach -- Morbid - When Funnel-Web Recluse enters, if a creature died this turn, investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") mana={4}{G} type=Creature @@ -39318,7 +39305,7 @@ toughness=3 [card] name=Furnace Reins target=creature -auto=moveto(mybattlefield) and!(transforms((,newability[phaseaction[endofturn sourceinplay] moveTo(previousbattlefield)],newability[untap],haste,newability[@combatdamaged(player) from(this):create(Treasure)])) ueot)! +auto=moveto(mybattlefield) and!(transforms((,newability[phaseaction[endofturn sourceinplay] moveTo(previousbattlefield)],newability[untap],haste,newability[@combatdamaged(player) from(this):_TREASURE_])) ueot)! text=Gain control of target creature until end of turn. Untap that creature. Until end of turn, it gains haste and "Whenever this creature deals combat damage to a player or battle, create a Treasure token." (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Sorcery @@ -39452,7 +39439,7 @@ name=Gadrak, the Crown-Scourge abilities=flying auto=aslongas(artifact|myBattlefield) cantattack <4 auto=aslongas(artifact|myBattlefield) cantpwattack <4 -auto=@each my endofturn:foreach(creature[-token;fresh]|graveyard) token(Treasure) +auto=@each my endofturn:foreach(creature[-token;fresh]|graveyard) _TREASURE_ text=Flying -- Gadrak, the Crown-Scourge can't attack unless you control four or more artifacts. -- At the beginning of your end step, create a Treasure token for each nontoken creature that died this turn. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Legendary Creature @@ -39595,8 +39582,8 @@ toughness=3 [/card] [card] name=Galadriel, Gift-Giver -auto=name(Choose one) transforms((,newability[if type(other creature|Battlefield)~morethan~0 then choice name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|Battlefield) counter(1/1)],newability[choice name(Create food) token(Food)],newability[choice name(Create treasure) token(Treasure)])) oneshot -auto=_ATTACKING_name(Choose one) transforms((,newability[if type(other creature|Battlefield)~morethan~0 then choice name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|Battlefield) counter(1/1)],newability[choice name(Create food) token(Food)],newability[choice name(Create treasure) token(Treasure)])) oneshot +auto=name(Choose one) transforms((,newability[if type(other creature|Battlefield)~morethan~0 then choice name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|Battlefield) counter(1/1)],newability[choice name(Create food) _FOOD_],newability[choice name(Create treasure) _TREASURE_])) oneshot +auto=_ATTACKING_name(Choose one) transforms((,newability[if type(other creature|Battlefield)~morethan~0 then choice name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|Battlefield) counter(1/1)],newability[choice name(Create food) _FOOD_],newability[choice name(Create treasure) _TREASURE_])) oneshot text=Whenever Galadriel, Gift-Giver enters or attacks, choose one -- Put a +1/+1 counter on another target creature. -- Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{G}{G} type=Legendary Creature @@ -39607,7 +39594,7 @@ toughness=4 [card] name=Galazeth Prismari abilities=flying -auto=token(Treasure) +auto=_TREASURE_ auto=lord(artifact|mybattlefield) transforms((,newability[this(variable{type:*[instant;sorcery]:myhand}>0) {T}:add{W}],newability[this(variable{type:*[instant;sorcery]:myhand}>0) {T}:add{B}],newability[this(variable{type:*[instant;sorcery]:myhand}>0) {T}:add{R}],newability[this(variable{type:*[instant;sorcery]:myhand}>0) {T}:add{U}],newability[this(variable{type:*[instant;sorcery]:myhand}>0) {T}:add{G}])) text=Flying -- When Galazeth Prismari enters, create a Treasure token. -- Artifacts you control have " {T}: Add one mana of any color. Spend this mana only to cast an instant or sorcery spell." mana={2}{U}{R} @@ -39802,8 +39789,8 @@ type=Sorcery [card] name=Ganax, Astral Hunter abilities=flying,backgroundpartner -auto=token(Treasure) -auto=@movedTo(Dragon|myBattlefield):token(Treasure) +auto=_TREASURE_ +auto=@movedTo(Dragon|myBattlefield):_TREASURE_ text=Flying -- Whenever Ganax, Astral Hunter or another Dragon enters under your control, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Choose a Background (You can have a Background as a second commander.) mana={4}{R} type=Legendary Creature @@ -40504,7 +40491,7 @@ toughness=1 [card] name=Generous Ent abilities=reach -auto=token(Food) +auto=_FOOD_ autohand={1}{cycle}:name(Search forest) target(forest|myLibrary) moveto(ownerHand) and!( shuffle )! text=Reach -- When Generous Ent enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Forestcycling {1} ({1}, Discard this card: Search your library for a Forest card, reveal it, put it into your hand, then shuffle.) mana={5}{G} @@ -40535,7 +40522,7 @@ toughness=4 [card] name=Generous Plunderer abilities=menace -auto=@each my upkeep:may create(Treasure) && target(opponent) ability$!create(Treasure) and!( tap(noevent) )! opponent!$ +auto=@each my upkeep:may _TREASURE_ && target(opponent) ability$!_TREASURE_ and!( tap(noevent) )! opponent!$ auto=_ATTACKING_damage:type:artifact:opponentBattlefield opponent text=Menace -- At the beginning of your upkeep, you may create a Treasure token. When you do, target opponent creates a tapped Treasure token. -- Whenever Generous Plunderer attacks, it deals damage to defending player equal to the number of artifacts they control. mana={1}{R} @@ -41122,7 +41109,7 @@ name=Giant Opportunity target=creature other={2}{G}{S(food|myBattlefield)}{S(food|myBattlefield)} name(Sacrifice Foods) auto=if paid(alternative) then token(Giant,creature Giant,7/7,green) -auto=ifnot paid(alternative) then token(Food)*3 +auto=ifnot paid(alternative) then _FOOD_*3 text=You may sacrifice two Foods. If you do, create a 7/7 green Giant creature token. Otherwise, create three Food tokens. (They're artifacts with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{G} type=Sorcery @@ -41186,7 +41173,7 @@ subtype=Aura name=Giant's Skewer auto={3}:equip auto=teach(creature) 2/1 -auto=teach(creature) transforms((,newability[@combatdamaged(creature) from(this):token(Food)])) +auto=teach(creature) transforms((,newability[@combatdamaged(creature) from(this):_FOOD_])) text=Equipped creature gets +2/+1. -- Whenever equipped creature deals combat damage to a creature, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Equip {3} ({3}: Attach to target creature you control. Equip only as a sorcery.) mana={1}{B} type=Artifact @@ -41397,8 +41384,8 @@ toughness=4 [card] name=Gilded Goose abilities=flying -auto=token(Food) -auto={1}{G}{T}:token(Food) +auto=_FOOD_ +auto={1}{G}{T}:_FOOD_ auto={T}{S(food|myBattlefield)}:add{W} auto={T}{S(food|myBattlefield)}:add{U} auto={T}{S(food|myBattlefield)}:add{R} @@ -41422,7 +41409,7 @@ type=Instant [/card] [card] name=Gilded Pinions -auto=token(Treasure) +auto=_TREASURE_ auto=teach(creature) flying auto={2}:equip text=When Gilded Pinions enters, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Equipped creature has flying. -- Equip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.) @@ -41493,7 +41480,7 @@ toughness=1 name=Gimli of the Glittering Caves abilities=double strike auto=@movedTo(other creature[legendary]|myBattlefield):name(Put 1/1 counter) counter(1/1) -auto=@combatdamaged(player) from(this):name(Create treasure) token(Treasure) +auto=@combatdamaged(player) from(this):name(Create treasure) _TREASURE_ text=Double strike -- Whenever another legendary creature enters under your control, put a +1/+1 counter on Gimli of the Glittering Caves. -- Whenever Gimli deals combat damage to a player, create a Treasure token. mana={2}{R} type=Legendary Creature @@ -41548,7 +41535,7 @@ toughness=2 [card] name=Gingerbread Cabin auto=aslongas(other land[forest]|myBattlefield) tap(noevent) <3 oneshot -auto=if type(other land[forest]|myBattlefield)~morethan~2 then create(Food) +auto=if type(other land[forest]|myBattlefield)~morethan~2 then _FOOD_ text={T}: Add {G}. -- Gingerbread Cabin enters tapped unless you control three or more other Forests. -- When Gingerbread Cabin enters untapped, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") type=Land subtype=Forest @@ -41998,7 +41985,7 @@ type=Land [card] name=Gleaming Barrier abilities=defender -auto=_DIES_token(Treasure) +auto=_DIES__TREASURE_ text=Defender -- When Gleaming Barrier dies, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={2} type=Artifact Creature @@ -42009,7 +41996,7 @@ toughness=4 [card] name=Gleaming Geardrake abilities=flying -auto=create(Clue) +auto=_CLUE_ auto=@sacrificed(artifact|myBattlefield):counter(1/1) text=Flying -- When Gleaming Geardrake enters, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you sacrifice an artifact, put a +1/+1 counter on Gleaming Geardrake. mana={U}{R} @@ -42285,7 +42272,7 @@ subtype=Aura [/card] [card] name=Glittermonger -auto={T}:token(Treasure) +auto={T}:_TREASURE_ text={T}: Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{G} type=Creature @@ -42313,7 +42300,7 @@ type=Sorcery [/card] [card] name=Gloin, Dwarf Emissary -auto=_CASTHISTORIC_name(Create treasure) token(Treasure) +auto=_CASTHISTORIC_name(Create treasure) _TREASURE_ auto={T}{S(treasure|mybattlefield)}:name(Goad creature) target(creature|battlefield) _GOAD_ text=Whenever you cast a historic spell, create a Treasure token. This ability triggers only once each turn. (Legendaries, artifacts, and Sagas are historic.) -- {T}, Sacrifice a Treasure: Goad target creature. (Until your next turn, that creature attacks each combat if able and attacks a player other than you if able.) mana={2}{R} @@ -42523,7 +42510,7 @@ toughness=3 [card] name=Gluntch, the Bestower abilities=flying -auto=@each my endofturn:name(Choose options) transforms((,newability[choice name(Players put counters and opponent draws) draw:1 opponent && target(creature|mybattlefield) counter(1/1.2)],newability[choice name(Players put counters and opponent creates treasure) token(Treasure)*2 opponent && target(creature|mybattlefield) counter(1/1.2)],newability[choice name(Players draws and opponent creates treasure) token(Treasure)*2 opponent && draw:1 controller],newability[choice name(Players draws and opponent put counters) draw:1 controller && ability$!name(Put 1/1 counters) target(creature|mybattlefield) counter(1/1.2)!$ opponent],newability[choice name(Players creates treasure and opponent draws) token(Treasure)*2 controller && draw:1 opponent],newability[choice name(Players creates treasure and opponent put counters) token(Treasure)*2 controller && ability$!name(Put 1/1 counters) target(creature|mybattlefield) counter(1/1.2)!$ opponent])) oneshot +auto=@each my endofturn:name(Choose options) transforms((,newability[choice name(Players put counters and opponent draws) draw:1 opponent && target(creature|mybattlefield) counter(1/1.2)],newability[choice name(Players put counters and opponent creates treasure) _TREASURE_*2 opponent && target(creature|mybattlefield) counter(1/1.2)],newability[choice name(Players draws and opponent creates treasure) _TREASURE_*2 opponent && draw:1 controller],newability[choice name(Players draws and opponent put counters) draw:1 controller && ability$!name(Put 1/1 counters) target(creature|mybattlefield) counter(1/1.2)!$ opponent],newability[choice name(Players creates treasure and opponent draws) _TREASURE_*2 controller && draw:1 opponent],newability[choice name(Players creates treasure and opponent put counters) _TREASURE_*2 controller && ability$!name(Put 1/1 counters) target(creature|mybattlefield) counter(1/1.2)!$ opponent])) oneshot text=Flying -- At the beginning of your end step, choose a player. They put two +1/+1 counters on a creature they control. Choose a second player to draw a card. Then choose a third player to create two Treasure tokens. mana={1}{G}{W} type=Legendary Creature @@ -42556,7 +42543,7 @@ toughness=3 [card] name=Gluttonous Troll abilities=trample -auto=token(Food) +auto=_FOOD_ auto={1}{G}{S(other *[-land]|mybattlefield)}:+2/+2 ueot text=Trample -- When Gluttonous Troll enters, create a number of Food tokens equal to the number of opponents you have. (Food tokens are artifacts with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- {1}{G}, Sacrifice another nonland permanent: Gluttonous Troll gets +2/+2 until end of turn. mana={2}{B}{G} @@ -43463,7 +43450,7 @@ toughness=4 [/card] [card] name=Gold Pan -auto=create(Treasure) +auto=_TREASURE_ auto=teach(creature) 1/1 auto={1}:equip text=When Gold Pan enters, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Equipped creature gets +1/+1. -- Equip {1} ({1}: Attach to target creature you control. Equip only as a sorcery.) @@ -43678,8 +43665,8 @@ toughness=9 [card] name=Goldspan Dragon abilities=flying,haste -auto=@targeted(this):token(Treasure) -auto=_ATTACKING_token(Treasure) +auto=@targeted(this):_TREASURE_ +auto=_ATTACKING__TREASURE_ auto=lord(artifact[treasure]|mybattlefield) transforms((,newability[{T}{S}:add{W}{W}],newability[{T}{S}:add{R}{R}],newability[{T}{S}:add{U}{U}],newability[{T}{S}:add{G}{G}],newability[{T}{S}:add{B}{B}])) text=Flying, haste -- Whenever Goldspan Dragon attacks or becomes the target of a spell, create a Treasure token. -- Treasures you control have "{T}, Sacrifice this artifact: Add two mana of any one color." mana={3}{R}{R} @@ -43692,7 +43679,7 @@ toughness=4 name=Goldvein Hydra abilities=haste,trample,vigilance auto=counter(1/1,X) -auto=_DIES_thisforeach(power>=1) create(Treasure) and!( tap(noevent) )! +auto=_DIES_thisforeach(power>=1) token(Treasure,Treasure Artifact,0/0) and!( transforms((,newability[{T}{S}:Add{W}],newability[{T}{S}:Add{U}],newability[{T}{S}:Add{B}],newability[{T}{S}:Add{R}],newability[{T}{S}:Add{G}],newability[tap(noevent)])) forever )! text=Vigilance, trample, haste -- Goldvein Hydra enters with X +1/+1 counters on it. -- When Goldvein Hydra dies, create a number of tapped Treasure tokens equal to its power. mana={X}{G} type=Creature @@ -43704,7 +43691,7 @@ toughness=0 name=Goldvein Pick auto={1}:equip auto=teach(creature) 1/1 -auto=@combatdamaged(player) from(mytgt):token(Treasure) +auto=@combatdamaged(player) from(mytgt):_TREASURE_ text=Equipped creature gets +1/+1. -- Whenever equipped creature deals combat damage to a player, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") -- Equip {1} ({1}: Attach to target creature you control. Equip only as a sorcery.) mana={2} type=Artifact @@ -43903,7 +43890,7 @@ toughness=2 [/card] [card] name=Gorbag of Minas Morgul -auto=@combatdamaged(player) from(*[orc;goblin]|mybattlefield):may name(Sacrifice creature) all(trigger[from]) sacrifice and!( ability$!name(Choose one) choice name(Draw card) draw:1 controller _ choice name(Create treasure) token(Treasure)!$ controller )! +auto=@combatdamaged(player) from(*[orc;goblin]|mybattlefield):may name(Sacrifice creature) all(trigger[from]) sacrifice and!( ability$!name(Choose one) choice name(Draw card) draw:1 controller _ choice name(Create treasure) _TREASURE_!$ controller )! text=Whenever a Goblin or Orc you control deals combat damage to a player, you may sacrifice it. When you do, choose one- -- Draw a card. -- Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{B} type=Legendary Creature @@ -44761,7 +44748,7 @@ subtype=Equipment [/card] [card] name=Greedy Freebooter -auto=_DIES_create(Treasure) +auto=_DIES__TREASURE_ auto=_DIES__SCRY1_ text=When Greedy Freebooter dies, scry 1 and create a Treasure token. (To scry 1, look at the top card of your library. You may put that card on the bottom. A Treasure token is an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={B} @@ -44884,7 +44871,7 @@ toughness=2 [/card] [card] name=Greta, Sweettooth Scourge -auto=create(Food) +auto=_FOOD_ auto={G}{S(food|myBattlefield)}:counter(1/1) target(creature) asSorcery auto={1}{B}{S(food|myBattlefield)}:draw:1 && life:-1 text=When Greta, Sweettooth Scourge enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- {G}, Sacrifice a Food: Put a +1/+1 counter on target creature. Activate only as a sorcery. -- {1}{B}, Sacrifice a Food: You draw a card and you lose 1 life. @@ -44986,7 +44973,7 @@ toughness=2 name=Grim Bounty target=creature,planeswalker auto=destroy -auto=name(Create treasure) token(Treasure) +auto=name(Create treasure) _TREASURE_ text=Destroy target creature or planeswalker. Create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{B}{B} type=Sorcery @@ -45021,7 +45008,7 @@ toughness=2 [/card] [card] name=Grim Hireling -auto=@each combatdamage restriction{opponentdamagedbycombat}:name(Create Treasures) token(Treasure)*2 +auto=@each combatdamage restriction{opponentdamagedbycombat}:name(Create Treasures) _TREASURE_*2 auto=this(variable{type:treasure:mybattlefield}>=1) {B}{S(treasure|mybattlefield)}:name(Sacrifice 1 treasure) target(creature) -1/-1 ueot asSorcery auto=this(variable{type:treasure:mybattlefield}>=2) {B}{S(treasure|mybattlefield)}{S(treasure|mybattlefield)}:name(Sacrifice 2 treasures) target(creature) -2/-2 ueot asSorcery auto=this(variable{type:treasure:mybattlefield}>=3) {B}{S(treasure|mybattlefield)}{S(treasure|mybattlefield)}{S(treasure|mybattlefield)}:name(Sacrifice 3 treasures) target(creature) -3/-3 ueot asSorcery @@ -45765,7 +45752,7 @@ type=Sorcery [/card] [card] name=Guild Artisan -auto=lord(creature[iscommander]|mybattlefield) transforms((,newability[_ATTACKING_name(Create treasure) token(Treasure)*2])) +auto=lord(creature[iscommander]|mybattlefield) transforms((,newability[_ATTACKING_name(Create treasure) _TREASURE_*2])) text=Commander creatures you own have "Whenever this creature attacks a player, if no opponent has more life than that player, you create two Treasure tokens." (They're artifacts with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{R} type=Legendary Enchantment @@ -46056,26 +46043,26 @@ toughness=3 [card] name=Gyome, Master Chef abilities=trample -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~1}:token(Food) -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~2}:token(Food)*2 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~3}:token(Food)*3 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~4}:token(Food)*4 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~5}:token(Food)*5 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~6}:token(Food)*6 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~7}:token(Food)*7 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~8}:token(Food)*8 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~9}:token(Food)*9 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~10}:token(Food)*10 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~11}:token(Food)*11 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~12}:token(Food)*12 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~13}:token(Food)*13 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~14}:token(Food)*14 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~15}:token(Food)*15 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~16}:token(Food)*16 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~17}:token(Food)*17 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~18}:token(Food)*18 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~19}:token(Food)*19 -auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~morethan~19}:token(Food)*20 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~1}:_FOOD_ +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~2}:_FOOD_*2 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~3}:_FOOD_*3 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~4}:_FOOD_*4 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~5}:_FOOD_*5 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~6}:_FOOD_*6 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~7}:_FOOD_*7 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~8}:_FOOD_*8 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~9}:_FOOD_*9 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~10}:_FOOD_*10 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~11}:_FOOD_*11 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~12}:_FOOD_*12 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~13}:_FOOD_*13 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~14}:_FOOD_*14 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~15}:_FOOD_*15 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~16}:_FOOD_*16 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~17}:_FOOD_*17 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~18}:_FOOD_*18 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~equalto~19}:_FOOD_*19 +auto=@each my end restriction{thisturn(creature[-token]|mybattlefield)~morethan~19}:_FOOD_*20 auto={1}{S(food|mybattlefield)}:name(Creature gains indestructible) target(creature|battlefield) transforms((,indestructible,newability[tap])) ueot text=Trample -- At the beginning of your end step, create a number of Food tokens equal to the number of nontoken creatures you had enter the battlefield under your control this turn. -- {1}, Sacrifice a Food: Target creature gains indestructible until end of turn. Tap it. mana={2}{B}{G} @@ -46395,7 +46382,7 @@ name=Hall auto=tapped auto={T}:Add{R} auto={T}:Add{W} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Hall enters tapped. -- {T}: Add {R} or {W}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -46540,7 +46527,7 @@ toughness=2 [/card] [card] name=Halo Scarab -autograveyard={2}{E}:token(Treasure) +autograveyard={2}{E}:_TREASURE_ text={2}, Exile Halo Scarab from your graveyard: Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2} type=Artifact Creature @@ -46916,7 +46903,7 @@ subtype=Aura [card] name=Hard Evidence auto=name(Create crab) token(Crab) -auto=name(Create clues) token(Clue) +auto=name(Create clues) _CLUE_ text=Create a 0/3 blue Crab creature token. -- Investigate. (Create a colorless Clue artifact token with "{2} , Sacrifice this artifact: Draw a card.") mana={U} type=Sorcery @@ -47640,7 +47627,7 @@ auto={1}{T}:Add{U} auto={1}{T}:Add{B} auto={1}{T}:Add{R} auto={1}{T}:Add{G} -auto={1}{T}{T(Gate|myBattlefield)}:token(Treasure) +auto={1}{T}{T(Gate|myBattlefield)}:_TREASURE_ text={T}: Add {C}. -- {1}, {T}: Add one mana of any color. -- {1}, {T}, Tap an untapped Gate you control: Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") type=Land subtype=Gate @@ -47702,7 +47689,7 @@ type=Instant name=Heartless Pillage target=opponent auto=ability$!name(discard 2 cards) target(<2>*|myhand) reject!$ targetedplayer -auto=if raid then token(Treasure) +auto=if raid then _TREASURE_ text=Target opponent discards two cards. -- Raid - If you attacked with a creature this turn, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={2}{B} type=Sorcery @@ -48142,7 +48129,7 @@ toughness=3 [/card] [card] name=Herald of Hadar -auto={5}{B}:name(Roll a d20) rolld20 20 winability token(Treasure) winabilityend rolld20end +auto={5}{B}:name(Roll a d20) rolld20 20 winability _TREASURE_ winabilityend rolld20end auto=@dierolled(this) from(controller):life:-2 opponent auto=@dierolled(this) result(10) from(controller):life:2 controller auto=@dierolled(this) result(11) from(controller):life:2 controller @@ -49045,7 +49032,7 @@ toughness=4 [/card] [card] name=Hoard Robber -auto=@combatdamaged(player) from(this):name(Create treasure) token(Treasure) +auto=@combatdamaged(player) from(this):name(Create treasure) _TREASURE_ text=Whenever Hoard Robber deals combat damage to a player, create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{B} type=Creature @@ -49068,7 +49055,7 @@ toughness=6 [/card] [card] name=Hoarding Ogre -auto=_ATTACKING_name(Roll a d20) rolld20 20 winability token(Treasure)*3 winabilityend loseability if compare(lastrollresult)~lessthan~10 then token(Treasure) else token(Treasure)*2 loseabilityend rolld20end +auto=_ATTACKING_name(Roll a d20) rolld20 20 winability _TREASURE_*3 winabilityend loseability if compare(lastrollresult)~lessthan~10 then _TREASURE_ else _TREASURE_*2 loseabilityend rolld20end text=Whenever Hoarding Ogre attacks, roll a d20. -- 1-9 | Create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- 10-19 | Create two Treasure tokens. -- 20 | Create three Treasure tokens. mana={3}{R} type=Creature @@ -49174,7 +49161,7 @@ target=creature,planeswalker auto=teach(*) tap auto=teach(*) doesnotuntap auto=teach(*) noactivatedability -auto=name(Investigate) name(Create clue) token(Clue) controller +auto=name(Investigate) name(Create clue) _CLUE_ controller text=Enchant creature or planeswalker -- When Hold for Questioning enters, tap enchanted permanent and investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- Enchanted permanent doesn't untap during its controller's untap step and its activated abilities can't be activated. mana={3}{U} type=Enchantment @@ -49337,7 +49324,7 @@ type=Sorcery [/card] [card] name=Homicide Investigator -auto=@movedto(creature[-token]|graveyard) from(mybattlefield) turnlimited:create(Clue) +auto=@movedto(creature[-token]|graveyard) from(mybattlefield) turnlimited:_CLUE_ text=Whenever one or more nontoken creatures you control die, investigate. This ability triggers only once each turn. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={1}{B} type=Creature @@ -49720,7 +49707,7 @@ toughness=2 name=Hornswoggle target=creature|stack auto=fizzle -auto=token(Treasure) +auto=_TREASURE_ text=Counter target creature spell. You create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={2}{U} type=Instant @@ -49802,7 +49789,7 @@ type=Land [card] name=Hostile Investigator auto=name(discard) target(opponent) ability$!name(discard) target(*|myhand) reject!$ targetedplayer -auto=@discarded(*|hand) turnLimited:create(Clue) +auto=@discarded(*|hand) turnLimited:_CLUE_ text=When Hostile Investigator enters, target opponent discards a card. -- Whenever one or more players discard one or more cards, investigate. This ability triggers only once each turn. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={3}{B} type=Creature @@ -51766,14 +51753,14 @@ type=Instant name=Improvised Weaponry target=anytarget auto=damage:2 -auto=name(Create treasure) token(Treasure) +auto=name(Create treasure) _TREASURE_ text=Improvised Weaponry deals 2 damage to any target. Create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Sorcery [/card] [card] name=Impulsive Pilferer -auto=_DIES_token(Treasure) +auto=_DIES__TREASURE_ autograveyard={3}{R}:name(Activate Encore) name(Activate Encore) moveto(exile) and!(clone with(treason,haste,mustattack))! asSorcery text=When Impulsive Pilferer dies, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") -- Encore {3}{R} ({3}{R}, Exile this card from your graveyard: For each opponent, create a token copy that attacks that opponent this turn if able. They gain haste. Sacrifice them at the beginning of the next end step. Activate only as a sorcery.) mana={R} @@ -52534,7 +52521,7 @@ name=Ingenious Mastery other={2}{U} name(Cast without X) aicode=activate transforms((,newability[all(*[zpos<=2]|mylibrary) transforms((,newability[may name(Put on bottom of library) moveto(myreveal) and!( bottomoflibrary )!])) oneshot])) oneshot auto=if paid(alternative) then draw:3 controller -auto=if paid(alternative) then token(Treasure)*2 opponent +auto=if paid(alternative) then _TREASURE_*2 opponent auto=if paid(alternative) then ability$!name(Scry 2) name(Scry 2) _SCRY2_!$ opponent auto=ifnot paid(alternative) then draw:x controller text=You may pay {2}{U} rather than pay this spell's mana cost. -- If the {2}{U} cost was paid, you draw three cards, then an opponent creates two Treasure tokens and they scry 2. If that cost wasn't paid, you draw X cards. @@ -52921,7 +52908,7 @@ toughness=5 [card] name=Inspired Tinkering auto=name(Exile top 3 cards) all(*[zpos<=3]|mylibrary) moveto(exile) and!( transforms((,newability[canplayfromexile uent])) uent )! -auto=name(Create 3 treasures) token(Treasure)*3 +auto=name(Create 3 treasures) _TREASURE_*3 text=Exile the top three cards of your library. Until the end of your next turn, you may play those cards. -- Create three Treasure tokens. (They're artifacts with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={4}{R} type=Sorcery @@ -53030,7 +53017,7 @@ subtype=Aura [card] name=Instrument of the Bards auto=@each my upkeep:may name(Put harmony counter) counter(0/0,1,Harmony) -auto={3}{G}{T}:name(Search creature) transforms((,newability[target(creature[manacost=hascntharmony]|mylibrary) moveto(ownerHand) and!( if cantargetcard(*[legendary]|*) then token(Treasure) )!])) oneshot +auto={3}{G}{T}:name(Search creature) transforms((,newability[target(creature[manacost=hascntharmony]|mylibrary) moveto(ownerHand) and!( if cantargetcard(*[legendary]|*) then _TREASURE_ )!])) oneshot text=At the beginning of your upkeep, you may put a harmony counter on Instrument of the Bards. -- {3}{G}, {T}: Search your library for a creature card with mana value equal to the number of harmony counters on Instrument of the Bards, reveal it, and put it into your hand. If that card is legendary, create a Treasure token. Then shuffle. mana={G} type=Legendary Artifact @@ -53438,7 +53425,7 @@ backside=Truga Cliffcharger restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=counter(0/0.4.Defense) -auto=ability$!name(Create treasure) token(Treasure)!$ controller +auto=ability$!name(Create treasure) _TREASURE_!$ controller auto=ability$!may name(Discard and draw) target(*|myhand) reject and!( transforms((,newability[draw:1 controller])) oneshot )!!$ controller auto=moveto(opponentbattlefield) auto=@defeated(this):name(Exile and transforms) name(Exile and transforms) moveto(ownerexile) and!( flip(backside) forcetype(Creature Rhino) )! @@ -54036,7 +54023,7 @@ type=Sorcery name=Involuntary Employment target=creature auto=moveto(mybattlefield) and!(transforms((,newability[phaseaction[endofturn sourceinplay] moveTo(previousbattlefield)],newability[untap],haste)) ueot)! -auto=token(Treasure) +auto=_TREASURE_ text=Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn. Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{R} type=Sorcery @@ -54912,7 +54899,7 @@ toughness=3 [card] name=Jan Jansen, Chaos Crafter abilities=haste -auto={T}{S(artifact[creature]|myBattlefield)}:token(Treasure)*2 +auto={T}{S(artifact[creature]|myBattlefield)}:_TREASURE_*2 auto={T}{S(artifact[-creature]|myBattlefield)}:create(construct:artifact creature construct:1/1)*2 text=Haste -- {T}, Sacrifice an artifact creature: Create two Treasure tokens. -- {T}, Sacrifice a noncreature artifact: Create two 1/1 colorless Construct artifact creature tokens. mana={R}{W}{B} @@ -55167,7 +55154,7 @@ toughness=4 [card] name=Jewel Thief abilities=vigilance,trample -auto=token(Treasure) +auto=_TREASURE_ text=Vigilance, trample -- When Jewel Thief enters, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{G} type=Creature @@ -55178,7 +55165,7 @@ toughness=3 [card] name=Jewel-Eyed Cobra abilities=deathtouch -auto=_DIES_name(Create Treasure) token(Treasure) +auto=_DIES_name(Create Treasure) _TREASURE_ text=Deathtouch -- When Jewel-Eyed Cobra dies, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{G} type=Creature @@ -55394,7 +55381,7 @@ type=Instant [/card] [card] name=Jolene, Plundering Pugilist -auto=@each my blockers restriction{type(creature[attacking;power>=4]|myBattlefield)~morethan~0}:create(Treasure) +auto=@each my blockers restriction{type(creature[attacking;power>=4]|myBattlefield)~morethan~0}:_TREASURE_ auto={1}{R}{S(*[Treasure]|myBattlefield)}:damage:1 target(anyTarget) text=Whenever you attack with one or more creatures with power 4 or greater, create a Treasure token. -- {1}{R}, Sacrifice a Treasure: Jolene, Plundering Pugilist deals 1 damage to any target. mana={1}{R}{G} @@ -55405,8 +55392,8 @@ toughness=2 [/card] [card] name=Jolene, the Plunder Queen -auto=@each my blockers:name(Create treasure) create(Treasure) -auto=@tokencreated(*[Treasure]|myBattlefield):token(Treasure,notrigger) +auto=@each my blockers:name(Create treasure) _TREASURE_ +auto=@tokencreated(*[Treasure]|myBattlefield):token(Treasure,Treasure Artifact,0/0,notrigger) and!( transforms((,newability[{T}{S}:Add{W}],newability[{T}{S}:Add{U}],newability[{T}{S}:Add{B}],newability[{T}{S}:Add{R}],newability[{T}{S}:Add{G}])) forever )! auto={S(*[Treasure]|myBattlefield)}{S(*[Treasure]|myBattlefield)}{S(*[Treasure]|myBattlefield)}{S(*[Treasure]|myBattlefield)}{S(*[Treasure]|myBattlefield)} restriction{type(*[Treasure]|myBattlefield)~morethan~4}:counter(1/1,5) text=Whenever a player attacks one or more of your opponents, that attacking player creates a Treasure token. -- If you would create one or more Treasure tokens, instead create those tokens plus an additional Treasure token. -- Sacrifice five Treasures: Put five +1/+1 counters on Jolene. mana={2}{R}{G} @@ -56076,7 +56063,7 @@ type=Sorcery [/card] [card] name=Kalain, Reclusive Painter -auto=token(Treasure) +auto=_TREASURE_ auto=@sacrificed(*[treasure]|mybattlefield) restriction{type(creature|myrestrictedcastingzone)~morethan~0}:may name(Treasure sacrificed for next creature) counter(0/0.1.TreasToken) auto=@movedto(other creature|mybattlefield) restriction{compare(hascnttreastoken)~morethan~0}:name(Put 1/1 counter) all(trigger[to]) counter(1/1.hascnttreastoken) && all(this) removeallcounters(0/0.1.TreasToken) auto=@each end restriction{compare(hascnttreastoken)~morethan~0}:removeallcounters(0/0.1.TreasToken) @@ -57833,7 +57820,7 @@ name=Kitchen auto=tapped auto={T}:Add{G} auto={T}:Add{U} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Kitchen enters tapped. -- {T}: Add {G} or {U}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -59558,7 +59545,7 @@ toughness=3 name=Late to Dinner target=creature|mygraveyard auto=moveto(myBattlefield) -auto=name(Create food) token(Food) +auto=name(Create food) _FOOD_ text=Return target creature card from your graveyard to the battlefield. Create a Food token. (It's an artifact with "{2} , {T}, Sacrifice this artifact: You gain 3 life.") mana={3}{W} type=Sorcery @@ -59773,7 +59760,7 @@ toughness=2 [card] name=Lavinia, Foil to Conspiracy abilities=vigilance -auto=@movedto(*|mystack) restriction{thisturn(*|mystack)~equalto~1}:create(Clue) +auto=@movedto(*|mystack) restriction{thisturn(*|mystack)~equalto~1}:_CLUE_ auto={T} restriction{opponentturnonly}:Add{C}{C} text=Vigilance -- Whenever you cast your second spell each turn, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- {T}: Add {C}{C}. Activate only during an opponent's turn. mana={1}{WU}{WU} @@ -60643,7 +60630,7 @@ name=Library auto=tapped auto={T}:Add{U} auto={T}:Add{R} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Library enters tapped. -- {T}: Add {U} or {R}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -60792,7 +60779,7 @@ type=Instant [card] name=Life Insurance auto=_EXTORT_ -auto=@movedTo(creature[-token]|graveyard) from(battlefield):life:-1 && token(Treasure) +auto=@movedTo(creature[-token]|graveyard) from(battlefield):life:-1 && _TREASURE_ text=Extort (Whenever you cast a spell, you may pay {W/B}. If you do, each opponent loses 1 life and you gain that much life.) -- Whenever a nontoken creature dies, you lose 1 life and create a Treasure token. mana={3}{W}{B} type=Enchantment @@ -61723,7 +61710,7 @@ subtype=Equipment [card] name=Lobelia Sackville-Baggins abilities=flash,menace -auto=name(Exile creature) target(creature[fresh]|opponentgraveyard) moveto(opponentexile) and!( transforms((,newability[token(Treasure)*power opponent])) oneshot )! +auto=name(Exile creature) target(creature[fresh]|opponentgraveyard) moveto(opponentexile) and!( transforms((,newability[_TREASURE_*power opponent])) oneshot )! text=Flash -- Menace -- When Lobelia Sackville-Baggins enters, exile target creature card from an opponent's graveyard that was put there from the battlefield this turn, then create X Treasure tokens, where X is the exiled card's power. mana={2}{B} type=Legendary Creature @@ -61930,7 +61917,7 @@ toughness=1 [card] name=Lonis, Cryptozoologist aicode=activate transforms((,newability[target(*[-land&zpos<=1]|opponentlibrary) moveto(myBattlefield)])) oneshot -auto=@movedTo(other creature[-token]|mybattlefield):name(Create clue) token(Clue) +auto=@movedTo(other creature[-token]|mybattlefield):name(Create clue) _CLUE_ auto={T}{S(clue[token]|myBattlefield)}:name(Sacrifice 1 clue) reveal:1 revealzone(opponentlibrary) optionone target(*[-land;manacost<=1]|reveal) moveto(myBattlefield) optiononeend optiontwo target(*|reveal) bottomoflibrary and!( all(*|reveal) bottomoflibrary )! optiontwoend revealend auto={T}{S(clue[token]|myBattlefield)}{S(clue[token]|myBattlefield)}:name(Sacrifice 2 clues) reveal:2 revealzone(opponentlibrary) optionone target(*[-land;manacost<=2]|reveal) moveto(myBattlefield) optiononeend optiontwo target(*|reveal) bottomoflibrary and!( all(*|reveal) bottomoflibrary )! optiontwoend revealend auto={T}{S(clue[token]|myBattlefield)}{S(clue[token]|myBattlefield)}{S(clue[token]|myBattlefield)}:name(Sacrifice 3 clues) reveal:3 revealzone(opponentlibrary) optionone target(*[-land;manacost<=3]|reveal) moveto(myBattlefield) optiononeend optiontwo target(*|reveal) bottomoflibrary and!( all(*|reveal) bottomoflibrary )! optiontwoend revealend @@ -61961,7 +61948,7 @@ toughness=2 [card] name=Lonis, Genetics Expert auto=evolve -auto=@counteradded(1/1) from(this):create(clue) +auto=@counteradded(1/1) from(this):_CLUE_ auto=@sacrificed(clue|mybattlefield):counter(1/1) target(other creature|myBattlefield) text=Evolve (Whenever a creature enters under your control, if that creature has greater power or toughness than this creature, put a +1/+1 counter on this creature.) -- Whenever one or more +1/+1 counters are put on Lonis, investigate that many times. -- Whenever you sacrifice a Clue, put a +1/+1 counter on another target creature you control. mana={1}{GU}{GU} @@ -61992,8 +61979,8 @@ toughness=7 [card] name=Loot Dispute auto=_INITIATIVE_CONTROLLER_ -auto=name(Create treasure) token(Treasure) -auto=@each my blockers restriction{compare(oinitiative)~morethan~0}:name(Create treasure) token(Treasure) +auto=name(Create treasure) _TREASURE_ +auto=@each my blockers restriction{compare(oinitiative)~morethan~0}:name(Create treasure) _TREASURE_ auto=@dungeoncompleted(*[dungeon]|mysideboard) from(controller):name(Create dragon) token(Dragon,Creature Dragon,5/5,red,flying) text=When Loot Dispute enters, you take the initiative and create a Treasure token. -- Whenever you attack the player who has the initiative, create a Treasure token. -- Loud Ruckus - Whenever you complete a dungeon, create a 5/5 red Dragon creature token with flying. mana={3}{R} @@ -62312,7 +62299,7 @@ name=Lost Mine of Phandelver restriction=never autocommandzone=transforms((,newability[shroud],indestructible)) forever autocommandzone=@counteradded(0/0,1,Explore) from(Lost Mine of Phandelver|mycommandzone) restriction{compare(hascntexplore)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Cave Entrance) name(Cave Entrance) _SCRY1_!$ controller -autocommandzone=@counteradded(0/0,1,Explore) from(Lost Mine of Phandelver|mycommandzone) restriction{compare(hascntexplore)~equalto~2}:ability$!name(Goblin Lair or Mine Tunnels) all(Lost Mine of Phandelver|mycommandzone) transforms((,newability[choice name(Goblin Lair)*type:*[twodngtrg]:mybattlefieldplus1plusend _GOBLINTOKEN_ and!( all(Lost Mine of Phandelver|mycommandzone) counter(0/0.1.GoblinLiar) notrg )!],newability[choice name(Mine Tunnels) token(Treasure)*type:*[twodngtrg]:mybattlefieldplus1plusend and!( all(Lost Mine of Phandelver|mycommandzone) counter(0/0.1.MineTunnels) notrg )!])) oneshot!$ controller +autocommandzone=@counteradded(0/0,1,Explore) from(Lost Mine of Phandelver|mycommandzone) restriction{compare(hascntexplore)~equalto~2}:ability$!name(Goblin Lair or Mine Tunnels) all(Lost Mine of Phandelver|mycommandzone) transforms((,newability[choice name(Goblin Lair)*type:*[twodngtrg]:mybattlefieldplus1plusend _GOBLINTOKEN_ and!( all(Lost Mine of Phandelver|mycommandzone) counter(0/0.1.GoblinLiar) notrg )!],newability[choice name(Mine Tunnels) _TREASURE_*type:*[twodngtrg]:mybattlefieldplus1plusend and!( all(Lost Mine of Phandelver|mycommandzone) counter(0/0.1.MineTunnels) notrg )!])) oneshot!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Lost Mine of Phandelver|mycommandzone) restriction{compare(hascntexplore)~equalto~3,compare(hascntgoblinliar)~morethan~0}:ability$!name(Storeroom or Dark Pool) all(Lost Mine of Phandelver|mycommandzone) transforms((,newability[if type(creature|battlefield)~morethan~0 then choice name(Storeroom) name(Storeroom) target(creature|battlefield) counter(1/1)],newability[choice name(Dark Pool) life:type:*[twodngtrg]:mybattlefieldplus1plusend controller && life:-type:*[twodngtrg]:mybattlefieldplus1plusend opponent])) oneshot!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Lost Mine of Phandelver|mycommandzone) restriction{compare(hascntexplore)~equalto~3,compare(hascntminetunnels)~morethan~0}:ability$!name(Dark Pool or Fungi Cavern) all(Lost Mine of Phandelver|mycommandzone) transforms((,newability[choice name(Dark Pool) life:type:*[twodngtrg]:mybattlefieldplus1plusend controller controller && life:-type:*[twodngtrg]:mybattlefieldplus1plusend controller opponent],newability[if type(creature|battlefield)~morethan~0 then choice name(Fungi Cavern) name(Fungi Cavern) target(creature|battlefield) transforms((,newability[-4/0])) uynt])) oneshot!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Lost Mine of Phandelver|mycommandzone) restriction{compare(hascntexplore)~equalto~4}:choice name(Dungeon completed) all(Lost Mine of Phandelver|mycommandzone) completedungeon:1 controller @@ -62361,8 +62348,8 @@ toughness=3 [/card] [card] name=Lotho, Corrupt Shirriff -auto=@movedto(*|mystack) restriction{thisturn(*|mystack)~equalto~1}:name(Lose life and create treasure) token(Treasure) and!( life:-1 controller )! -auto=@movedto(*|opponentStack) restriction{thisturn(*|opponentStack)~equalto~1}:name(Lose life and create treasure) token(Treasure) and!( life:-1 controller )! +auto=@movedto(*|mystack) restriction{thisturn(*|mystack)~equalto~1}:name(Lose life and create treasure) _TREASURE_ and!( life:-1 controller )! +auto=@movedto(*|opponentStack) restriction{thisturn(*|opponentStack)~equalto~1}:name(Lose life and create treasure) _TREASURE_ and!( life:-1 controller )! text=Whenever a player casts their second spell each turn, you lose 1 life and create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={W}{B} type=Legendary Creature @@ -62414,7 +62401,7 @@ name=Lounge auto=tapped auto={T}:Add{B} auto={T}:Add{G} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Lounge enters tapped. -- {T}: Add {B} or {G}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -62435,7 +62422,7 @@ toughness=5 [/card] [card] name=Loxodon Eavesdropper -auto=create(Clue) +auto=_CLUE_ auto=_SECOND_DRAW_1/1 ueot auto=_SECOND_DRAW_vigilance ueot text=When Loxodon Eavesdropper enters, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you draw your second card each turn, Loxodon Eavesdropper gets +1/+1 and gains vigilance until end of turn. @@ -63219,7 +63206,7 @@ toughness=4 [card] name=Magda, Brazen Outlaw auto=lord(other dwarf|mybattlefield) 1/0 -auto=@tapped(dwarf|mybattlefield):token(Treasure) +auto=@tapped(dwarf|mybattlefield):_TREASURE_ auto={S(*[treasure]|mybattlefield)}{S(*[treasure]|mybattlefield)}{S(*[treasure]|mybattlefield)}{S(*[treasure]|mybattlefield)}{S(*[treasure]|mybattlefield)}:name(Search dragon or artifact) target(*[dragon;artifact]|mylibrary) moveto(myBattlefield) and!( shuffle )! text=Other Dwarves you control get +1/+0. -- Whenever a Dwarf you control becomes tapped, create a Treasure token. -- Sacrifice five Treasures: Search your library for an artifact or Dragon card, put that card onto the battlefield, then shuffle. mana={1}{R} @@ -63464,7 +63451,7 @@ toughness=1 [/card] [card] name=Mahadi, Emporium Master -auto=@each my endofturn:name(Create treasures) token(Treasure)*bothalldeadcreature +auto=@each my endofturn:name(Create treasures) _TREASURE_*bothalldeadcreature text=At the beginning of your end step, create a Treasure token for each creature that died this turn. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{B}{R} type=Legendary Creature @@ -63731,7 +63718,7 @@ toughness=1 [card] name=Malcolm, Keen-Eyed Navigator abilities=flying,partner -auto=@combatdamagefoeof(player) from(*[pirate]|myBattlefield):token(Treasure) +auto=@combatdamagefoeof(player) from(*[pirate]|myBattlefield):_TREASURE_ text=Flying -- Whenever one or more Pirates you control deal damage to your opponents, you create a Treasure token for each opponent dealt damage. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") -- Partner (You can have two commanders if both have partner.) mana={2}{U} type=Legendary Creature @@ -63742,7 +63729,7 @@ toughness=2 [card] name=Malcolm, the Eyes abilities=flying,haste -auto=@movedto(*|mystack) restriction{thisturn(*|mystack)~equalto~1}:create(Clue) +auto=@movedto(*|mystack) restriction{thisturn(*|mystack)~equalto~1}:_CLUE_ text=Flying, haste -- Whenever you cast your second spell each turn, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={U}{R} type=Legendary Creature @@ -63917,11 +63904,12 @@ type=Artifact [/card] [card] name=Mana Vortex -auto=name(Choose one) ability$!name(Sacrifice land) choice name(Sacrifice land) sacrifice notAtarget(land|myBattlefield) _ choice name(Sacrifice mana vortex) sacrifice!$ controller +auto=name(Choose one) ability$!name(Sacrifice land) choice name(Sacrifice land) sacrifice notAtarget(land|myBattlefield) _ choice name(Sacrifice mana vortex) sacrifice notatarget(Mana Vortex) !$ controller +auto=@each opponent upkeep:if type(land|battlefield)~equalto~0 then sacrifice all(this) auto=@each opponent upkeep:ability$!name(sacrifice) notatarget(*[land]|mybattlefield) sacrifice !$ opponent +auto=@each my upkeep:if type(land|battlefield)~equalto~0 then sacrifice all(this) auto=@each my upkeep:notatarget(*[land]|mybattlefield) sacrifice -auto=aslongas(land|battlefield) sacrifice <1 -text=When you cast Mana Vortex, counter it unless you sacrifice a land. -- At the beginning of each player's upkeep, that player sacrifices a land. -- When there are no lands on the battlefield, sacrifice Mana Vortex. +text=When you cast this spell, counter it unless you sacrifice a land. -- At the beginning of each player's upkeep, that player sacrifices a land. -- When there are no lands on the battlefield, sacrifice Mana Vortex. mana={1}{U}{U} type=Enchantment [/card] @@ -64109,7 +64097,7 @@ subtype=Aura [/card] [card] name=Many Partings -auto=name(Create food) token(Food) +auto=name(Create food) _FOOD_ auto=name(Search basic land) target(land[basic]|myLibrary) moveto(ownerHand) and!( shuffle )! text=Search your library for a basic land card, reveal it, put it into your hand, then shuffle. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={G} @@ -64430,7 +64418,7 @@ toughness=6 [/card] [card] name=Marching Duodrone -auto=_ATTACKING_create(Treasure) controller && create(Treasure) opponent +auto=_ATTACKING__TREASURE_ controller && _TREASURE_ opponent text=Whenever Marching Duodrone attacks, each player creates a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2} type=Artifact Creature @@ -64703,7 +64691,7 @@ toughness=2 [card] name=Marut abilities=trample -auto=name(Create treasures) token(Treasure)*type:treasure[fresh]:mygraveyard +auto=name(Create treasures) _TREASURE_*type:treasure[fresh]:mygraveyard text=Trample -- When Marut enters, if mana from a Treasure was spent to cast it, create a Treasure token for each mana from a Treasure spent to cast it. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={8} type=Artifact Creature @@ -65204,7 +65192,7 @@ toughness=2 [card] name=Meddling Youths abilities=haste -auto=@each my blockers restriction{type(creature[attacking]|myBattlefield)~morethan~2}:create(Clue) +auto=@each my blockers restriction{type(creature[attacking]|myBattlefield)~morethan~2}:_CLUE_ text=Haste -- Whenever you attack with three or more creatures, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={3}{R}{W} type=Creature @@ -65490,7 +65478,7 @@ toughness=4 [card] name=Merchant of Truth abilities=flying -auto=@movedTo(graveyard) from(creature[-token]|mybattlefield):create(Clue) +auto=@movedTo(graveyard) from(creature[-token]|mybattlefield):_CLUE_ auto=lord(Clue|myBattlefield) transforms((,newability[@combat(attackedalone) source(creature|mybattlefield):all(trigger) 1/1 ueot])) text=Flying -- Whenever a nontoken creature you control dies, investigate. -- Clues you control have exalted. (Whenever a creature you control attacks alone, that creature gets +1/+1 until end of turn for each instance of exalted among permanents you control.) mana={2}{W}{W} @@ -65748,7 +65736,7 @@ toughness=3 [/card] [card] name=Meriadoc Brandybuck -auto=@combat(attacking) source(halfling|mybattlefield):name(Create food) token(Food) +auto=@combat(attacking) source(halfling|mybattlefield):name(Create food) _FOOD_ text=Whenever one or more Halflings you control attack a player, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={1}{G} type=Legendary Creature @@ -66453,7 +66441,7 @@ type=Instant [card] name=Mine Raider abilities=trample -auto=if type(Assassin,Mercenary,Pirate,Rogue,Warlock|mybattlefield)~morethan~1 then create(Treasure) +auto=if type(Assassin,Mercenary,Pirate,Rogue,Warlock|mybattlefield)~morethan~1 then _TREASURE_ text=Trample -- When Mine Raider enters, if you control another outlaw, create a Treasure token. (Assassins, Mercenaries, Pirates, Rogues, and Warlocks are outlaws. A Treasure token is an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Creature @@ -66486,7 +66474,7 @@ toughness=1 name=Mines of Moria auto=if type(creature[legendary]|myBattlefield)~equalto~0 then name(Enter tapped) name(Enter tapped) tap(noevent) auto={T}:add{R} -auto={3}{R}{T}{E(*|mygraveyard)}{E(*|mygraveyard)}{E(*|mygraveyard)}:name(Create treasures) token(Treasure)*2 +auto={3}{R}{T}{E(*|mygraveyard)}{E(*|mygraveyard)}{E(*|mygraveyard)}:name(Create treasures) _TREASURE_*2 text=Mines of Moria enters tapped unless you control a legendary creature. -- {T}: Add {R}. -- {3}{R}, {T}, Exile three cards from your graveyard: Create two Treasure tokens. type=Legendary Land [/card] @@ -66667,7 +66655,7 @@ toughness=2 [/card] [card] name=Mintstrosity -auto=_DIES_token(food) +auto=_DIES__FOOD_ text=When Mintstrosity dies, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={1}{B} type=Creature @@ -67550,7 +67538,7 @@ abilities=flying facedown={3} autofacedown=_WARD2_ autofacedown={1}{U}:morph -autofaceup=transforms((,newability[@combatdamaged(player) from(creature|myBattlefield):create(Clue)])) ueot +autofaceup=transforms((,newability[@combatdamaged(player) from(creature|myBattlefield):_CLUE_])) ueot text=Flying -- Disguise {1}{U} (You may cast this card face down for {3} as a 2/2 creature with ward {2}. Turn it face up any time for its disguise cost.) -- When Mistway Spy is turned face up, until end of turn, whenever a creature you control deals combat damage to a player, investigate. mana={U} type=Creature @@ -68043,7 +68031,7 @@ toughness=1 [/card] [card] name=Monologue Tax -auto=@movedto(*|opponentStack) restriction{thisturn(*|opponentStack)~equalto~1}:name(Create Treasure) token(Treasure) +auto=@movedto(*|opponentStack) restriction{thisturn(*|opponentStack)~equalto~1}:name(Create Treasure) _TREASURE_ text=Whenever an opponent casts their second spell each turn, you create a Treasure token. mana={2}{W} type=Enchantment @@ -68518,7 +68506,7 @@ type=Land [card] name=Morska, Undersea Sleuth abilities=nomaxhand -auto=@each my upkeep:create(Clue) +auto=@each my upkeep:_CLUE_ auto=_SECOND_DRAW_counter(1/1,2) text=You have no maximum hand size. -- At the beginning of your upkeep, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you draw your second card each turn, put two +1/+1 counters on Morska, Undersea Sleuth. mana={G}{W}{U} @@ -68596,7 +68584,7 @@ name=Most Wanted abilities=flash target=creature auto=teach(creature) 2/1 -auto=teach(creature) transforms((,newability[_DIES_token(Treasure)*2])) controller +auto=teach(creature) transforms((,newability[_DIES__TREASURE_*2])) controller text=Flash -- Enchant creature -- Enchanted creature gets +2/+1. -- When enchanted creature dies, create two Treasure tokens. mana={2}{G} type=Enchantment @@ -70427,8 +70415,8 @@ toughness=2 [card] name=Nelly Borca, Impulsive Accuser abilities=vigilance -auto=_ATTACKING_suspect all(creature[suspect]) _GOAD_ -auto=_ATTACKING_suspect target(creature) _SUSPECT_IT_ +auto=_ATTACKING_all(creature[suspect]) _GOAD_ +auto=_ATTACKING_target(creature) _SUSPECT_IT_ text=Vigilance -- Whenever Nelly Borca, Impulsive Accuser attacks, suspect target creature. Then goad all suspected creatures. (A suspected creature has menace and can't block.) -- Whenever one or more creatures an opponent controls deal combat damage to one or more of your opponents, you and the controller of those creatures each draw a card. mana={2}{R}{W} type=Legendary Creature @@ -71074,7 +71062,7 @@ toughness=1 [/card] [card] name=Night of the Sweets' Revenge -auto=create(Food) +auto=_FOOD_ auto=lord(Food|myBattlefield) {T}:Add{G} auto={5}{G}{G}{S}:all(creature|myBattlefield) type:Food:mybattlefield/type:Food:mybattlefield asSorcery text=When Night of the Sweets' Revenge enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Foods you control have "{T}: Add {G}." -- {5}{G}{G}, Sacrifice Night of the Sweets' Revenge: Creatures you control get +X/+X until end of turn, where X is the number of Foods you control. Activate only as a sorcery. @@ -71699,9 +71687,9 @@ type=Sorcery [/card] [card] name=No Witnesses -auto=if type(creature|mybattlefield)~equalto~type(creature|opponentbattlefield) then create(Clue) && create(Clue) opponent -auto=if type(creature|mybattlefield)~morethan~type(creature|opponentbattlefield) then create(Clue) -auto=if type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield) then create(Clue) opponent +auto=if type(creature|mybattlefield)~equalto~type(creature|opponentbattlefield) then _CLUE_ && _CLUE_ opponent +auto=if type(creature|mybattlefield)~morethan~type(creature|opponentbattlefield) then _CLUE_ +auto=if type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield) then _CLUE_ opponent auto=destroy all(creature) text=Each player who controls the most creatures investigates. Then destroy all creatures. (To investigate, create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{W}{W} @@ -71721,7 +71709,7 @@ toughness=2 name=Noble's Purse auto=tap(noevent) auto=counter(0/0,3,Coin) -auto={T}{C(0/0.-1.Coin)}:token(Treasure) +auto={T}{C(0/0.-1.Coin)}:_TREASURE_ text=Noble's Purse enters tapped and with three coin counters on it. -- {T}, Remove a coin counter from Noble's Purse: Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2} type=Artifact @@ -71905,7 +71893,7 @@ toughness=3 [/card] [card] name=Novice Inspector -auto=create(Clue) +auto=_CLUE_ text=When Novice Inspector enters, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={W} type=Creature @@ -72409,9 +72397,9 @@ type=Enchantment name=Oath of the Grey Host auto=counter(0/0,1,Lore) auto=@each my firstmain:counter(0/0,1,Lore) -auto=token(Food) -auto=token(Food) opponent -auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}) name(Create treasure) name(Create treasure) token(Treasure) +auto=_FOOD_ +auto=_FOOD_ opponent +auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}) name(Create treasure) name(Create treasure) _TREASURE_ auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}) name(Opponent loses life) name(Opponent loses life) life:-3 opponent auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) name(Create spirits) name(Create spirits) token(Spirit,Creature Spirit,1/1,white,flying)*3 and!( tap(noevent) )! auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) sacrifice(this) @@ -72841,10 +72829,10 @@ toughness=4 name=Of Herbs and Stewed Rabbit auto=counter(0/0,1,Lore) auto=@each my firstmain:counter(0/0,1,Lore) -auto=name(Create food) token(Food) +auto=name(Create food) _FOOD_ auto=may name(Put 1/1 counter) target(creature|battlefield) counter(1/1) auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) name(Draw a card) name(Draw a card) draw:1 controller -auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) name(Create food) name(Create food) token(Food) +auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) name(Create food) name(Create food) _FOOD_ auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) name(Create halfling) name(Create halfling) token(Halfling)*type:food:mybattlefield auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) sacrifice(this) text=(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.) -- I - Put a +1/+1 counter on up to one target creature. Create a Food token. -- II - Draw a card. Create a Food token. -- III - Create a 1/1 white Halfling creature token for each Food you control. @@ -72919,7 +72907,7 @@ toughness=1 [card] name=Ognis, the Dragon's Lash abilities=haste -auto=@combat(attacking) source(creature[haste]|mybattlefield):token(Treasure) and!( tap(noevent) )! +auto=@combat(attacking) source(creature[haste]|mybattlefield):_TREASURE_ and!( tap(noevent) )! text=Haste -- Whenever a creature you control with haste attacks, create a tapped Treasure token. mana={1}{BR}{R}{RG} type=Legendary Creature @@ -73209,7 +73197,7 @@ toughness=4 [card] name=Old Flitterfang abilities=flying -auto=@each endofturn restriction{morbid}:token(Food) +auto=@each endofturn restriction{morbid}:_FOOD_ auto={2}{B}{S(other *[creature;artifact]|mybattlefield)}:2/2 ueot text=Flying -- At the beginning of each end step, if a creature died this turn, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- {2}{B}, Sacrifice another creature or artifact: Old Flitterfang gets +2/+2 until end of turn. mana={4}{B} @@ -73221,7 +73209,7 @@ toughness=4 [card] name=Old Gnawbone abilities=flying -auto=@combatdamaged(player) from(creature|mybattlefield):name(Create treasure) token(Treasure)*thatmuch +auto=@combatdamaged(player) from(creature|mybattlefield):name(Create treasure) _TREASURE_*thatmuch text=Flying -- Whenever a creature you control deals combat damage to a player, create that many Treasure tokens. mana={5}{G}{G} type=Legendary Creature @@ -73242,8 +73230,8 @@ toughness=* [/card] [card] name=Old Rutstein -auto=name(Mill a card) all(*[zpos=1]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[if cantargetcard(land|*) then token(Treasure)],newability[if cantargetcard(creature|*) then _INSECTTOKEN_],newability[if cantargetcard(*[-land;-creature]|*) then token(Blood)])) oneshot )! -auto=@each my upkeep:name(Mill a card) all(*[zpos=1]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[if cantargetcard(land|*) then token(Treasure)],newability[if cantargetcard(creature|*) then _INSECTTOKEN_],newability[if cantargetcard(*[-land;-creature]|*) then token(Blood)])) oneshot )! +auto=name(Mill a card) all(*[zpos=1]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[if cantargetcard(land|*) then _TREASURE_],newability[if cantargetcard(creature|*) then _INSECTTOKEN_],newability[if cantargetcard(*[-land;-creature]|*) then token(Blood)])) oneshot )! +auto=@each my upkeep:name(Mill a card) all(*[zpos=1]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[if cantargetcard(land|*) then _TREASURE_],newability[if cantargetcard(creature|*) then _INSECTTOKEN_],newability[if cantargetcard(*[-land;-creature]|*) then token(Blood)])) oneshot )! text=When Old Rutstein enters or at the beginning of your upkeep, mill a card. If a land card is milled this way, create a Treasure token. If a creature card is milled this way, create a 1/1 green Insect creature token. If a noncreature, nonland card is milled this way, create a Blood token. mana={1}{B}{G} type=Legendary Creature @@ -73344,7 +73332,7 @@ toughness=4 [card] name=Olivia, Opulent Outlaw abilities=flying,lifelink -auto=@combatdamaged(player) from(*[Assassin;Mercenary;Pirate;Rogue;Warlock]|mybattlefield) turnlimited:create(Treasure) +auto=@combatdamaged(player) from(*[Assassin;Mercenary;Pirate;Rogue;Warlock]|mybattlefield) turnlimited:_TREASURE_ auto={3}{S(*[treasure]|mybattlefield)}{S(*[treasure]|mybattlefield)}:all(creature|myBattlefield) counter(1/1,2) asSorcery text=Flying, lifelink -- Whenever one or more outlaws you control deal combat damage to a player, create a Treasure token. (Assassins, Mercenaries, Pirates, Rogues, and Warlocks are outlaws.) -- {3}, Sacrifice two Treasures: Put two +1/+1 counters on each creature you control. Activate only as a sorcery. mana={1}{R}{W}{B} @@ -73719,7 +73707,7 @@ subtype=Aura [card] name=On the Job auto=all(creature|myBattlefield) 2/1 -auto=create(Clue) +auto=_CLUE_ text=Creatures you control get +2/+1 until end of turn. Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{W}{W} type=Instant @@ -74247,7 +74235,7 @@ toughness=5 name=Orchard Strider aicode=activate target(land[basic]|mylibrary) moveto(ownerHand) autohand={1}{G}{cycle}:name(search card) Reveal:type:*:mylibrary revealzone(mylibrary) optionone name(choose card) target(<1>land[basic]|reveal) transforms((,newability[all(other *|reveal) moveto(mylibrary) and!(shuffle)!],newability[moveto(ownerHand)])) optiononeend optiontwo name(shuffle) bottomoflibrary target(<1>*|reveal) and!( all(*|reveal) bottomoflibrary and!(shuffle)! )! optiontwoend revealend -auto=name(Create food) token(Food) +auto=name(Create food) _FOOD_ text=When Orchard Strider enters, create two Food tokens. (They're artifacts with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Basic landcycling {1}{G} ({1}{G}, Discard this card: Search your library for a basic land card, reveal it, put it into your hand, then shuffle.) mana={4}{G}{G} type=Creature @@ -74587,11 +74575,11 @@ toughness=4 [card] name=Ornithopter of Paradise abilities=flying -auto={T}:add{R} -auto={T}:add{B} -auto={T}:add{U} -auto={T}:add{G} auto={T}:add{W} +auto={T}:add{U} +auto={T}:add{B} +auto={T}:add{R} +auto={T}:add{G} text=Flying -- {T}: Add one mana of any color. mana={2} type=Artifact Creature @@ -74861,7 +74849,7 @@ type=Sorcery name=Out Cold abilities=nofizzle auto=may target(creature) transforms((,newability[tap],newability[counter(0/0.1.Stun)])) oneshot -auto=create(Clue) +auto=_CLUE_ text=This spell can't be countered. (This includes by the ward ability.) -- Tap up to two target creatures and put a stun counter on each of them. Investigate. (If a permanent with a stun counter would become untapped, remove one from it instead.) mana={3}{U} type=Instant @@ -75392,8 +75380,8 @@ type=Sorcery [card] name=Pain Distributor abilities=menace -auto=@movedto(*|opponentstack) restriction{thisturn(*|opponentstack)~equalto~1} turnlimited:create(Treasure) -auto=@movedto(*|mystack) restriction{thisturn(*|mystack)~lessthan~1} turnlimited:create(Treasure) +auto=@movedto(*|opponentstack) restriction{thisturn(*|opponentstack)~equalto~1} turnlimited:_TREASURE_ +auto=@movedto(*|mystack) restriction{thisturn(*|mystack)~lessthan~1} turnlimited:_TREASURE_ auto=@movedto(artifact|graveyard) from(opponentBattlefield):damage:1 opponent text=Menace -- Whenever a player casts their first spell each turn, they create a Treasure token. -- Whenever an artifact an opponent controls is put into a graveyard from the battlefield, Pain Distributor deals 1 damage to that player. mana={2}{R} @@ -76220,8 +76208,8 @@ toughness=2 [/card] [card] name=Patron of the Arts -auto=token(Treasure) -auto=_DIES_token(Treasure) +auto=_TREASURE_ +auto=_DIES__TREASURE_ text=When Patron of the Arts enters or dies, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Creature @@ -76441,7 +76429,7 @@ toughness=3 [card] name=Peregrin Took auto={S(food|mybattlefield)}{S(food|mybattlefield)}{S(food|mybattlefield)}:name(Sacrifice foods and draw card) draw:1 controller -auto=@tokencreated(*|mybattlefield):name(Create Food) token(Food,notrigger) +auto=@tokencreated(*|mybattlefield):name(Create Food) token(Food,Food Artifact,0/0,notrigger) and!( transforms((,newability[{2}{T}{S}:life:3])) forever )! text=If one or more tokens would be created under your control, those tokens plus an additional Food token are created instead. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Sacrifice three Foods: Draw a card. mana={2}{G} type=Legendary Creature @@ -76570,7 +76558,7 @@ toughness=2 [/card] [card] name=Persuasive Interrogators -auto=create(Clue) +auto=_CLUE_ auto=@sacrificed(*[Clue]|myBattlefield):alterpoison:2 target(opponent) text=When Persuasive Interrogators enters, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you sacrifice a Clue, target opponent gets two poison counters. (A player with ten or more poison counters loses the game.) mana={4}{B}{B} @@ -77551,7 +77539,7 @@ name=Pippin, Warden of Isengard abilities=partner partner=Merry, Warden of Isengard auto=_PARTNER_ -auto={1}{T}:name(Create food) token(Food) +auto={1}{T}:name(Create food) _FOOD_ auto={T}{S(food|mybattlefield)}{S(food|mybattlefield)}{S(food|mybattlefield)}{S(food|mybattlefield)}:name(Creatures gain 3/3 and haste) all(other creature|myBattlefield) transforms((,newability[3/3],haste)) ueot assorcery text=Partner with Merry, Warden of Isengard (When this creature enters, target player may put Merry into their hand from their library, then shuffle) -- {1}, {T}: Create a Food token. -- {T}, Sacrifice four Foods: Other creatures you control get +3/+3 and gain haste until end of turn. Activate only as a sorcery. mana={B}{G} @@ -77603,7 +77591,7 @@ subtype=Equipment [card] name=Pirate's Pillage auto=draw:2 controller -auto=token(Treasure)*2 +auto=_TREASURE_*2 text=As an additional cost to cast this spell, discard a card. -- Draw two cards and create two Treasure tokens. (They're artifacts with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{R}{D(other *|myhand)} type=Sorcery @@ -77611,7 +77599,7 @@ type=Sorcery [card] name=Pirate's Prize auto=draw:2 controller -auto=token(Treasure) +auto=_TREASURE_ text=Draw two cards. Create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={3}{U} type=Sorcery @@ -77679,7 +77667,7 @@ toughness=2 [/card] [card] name=Pitiless Plunderer -auto=@movedto(other creature|graveyard) from(mybattlefield):token(Treasure) +auto=@movedto(other creature|graveyard) from(mybattlefield):_TREASURE_ text=Whenever another creature you control dies, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{B} type=Creature @@ -78133,7 +78121,7 @@ type=Instant [card] name=Plundering Barbarian auto=choice name(Destroy artifact) target(artifact) destroy -auto=choice name(Create treasure) token(Treasure) +auto=choice name(Create treasure) _TREASURE_ text=When Plundering Barbarian enters, Choose one -- Smash the Chest - Destroy target artifact. -- Pry It Open - Create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Creature @@ -78143,7 +78131,7 @@ toughness=2 [/card] [card] name=Plundering Pirate -auto=token(Treasure) +auto=_TREASURE_ text=When Plundering Pirate enters, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Creature @@ -78205,7 +78193,7 @@ subtype=Equipment [/card] [card] name=Poetic Ingenuity -auto=@combat(attacking) source(Dinosaur|myBattlefield):create(Treasure) +auto=@combat(attacking) source(Dinosaur|myBattlefield):_TREASURE_ auto=@movedTo(artifact|mystack) turnlimited:create(dinosaur:creature dinosaur:3/1:red) text=Whenever one or more Dinosaurs you control attack, create that many Treasure tokens. -- Whenever you cast an artifact spell, create a 3/1 red Dinosaur creature token. This ability triggers only once each turn. mana={2}{R} @@ -79442,17 +79430,17 @@ type=Land name=Prismari Command auto=choice name(Deals 2 damage and you draw) target(anytarget) damage:2 && ability$!draw:2 _ choice target(<2>*|myhand) reject!$ controller auto=choice name(Deals 2 damage and opponent draws) target(anytarget) damage:2 && ability$!draw:2 _ choice target(<2>*|myhand) reject!$ opponent -auto=choice name(Deals 2 damage and you create treasure) target(anytarget) damage:2 && Token(Treasure) -auto=choice name(Deals 2 damage and opponent creates treasure) target(anytarget) damage:2 && token(Treasure) opponent +auto=choice name(Deals 2 damage and you create treasure) target(anytarget) damage:2 && _TREASURE_ +auto=choice name(Deals 2 damage and opponent creates treasure) target(anytarget) damage:2 && _TREASURE_ opponent auto=choice name(Deals 2 damage and destroy artifact) target(anytarget) damage:2 && ability$!name(Destroy artifact) name(Destroy artifact) target(artifact) destroy!$ controller -auto=choice name(You draw and you create treasure) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ controller && Token(Treasure) -auto=choice name(You draw and and opponent creates treasure) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ controller && token(Treasure) opponent -auto=choice name(opponent draws and you create treasure) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ opponent && Token(Treasure) -auto=choice name(opponent draws and and opponent creates treasure) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ opponent && token(Treasure) opponent +auto=choice name(You draw and you create treasure) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ controller && _TREASURE_ +auto=choice name(You draw and and opponent creates treasure) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ controller && _TREASURE_ opponent +auto=choice name(opponent draws and you create treasure) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ opponent && _TREASURE_ +auto=choice name(opponent draws and and opponent creates treasure) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ opponent && _TREASURE_ opponent auto=choice name(You draw and destroy artifact) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ controller && target(artifact) destroy auto=choice name(opponent draws and destroy artifact) ability$!draw:2 _ choice target(<2>*|myhand) reject!$ opponent && target(artifact) destroy -auto=choice name(You create treasure and destroy artifact) Token(Treasure) && target(artifact) destroy -auto=choice name(Opponent creates treasure and destroy artifact) token(Treasure) opponent && target(artifact) destroy +auto=choice name(You create treasure and destroy artifact) _TREASURE_ && target(artifact) destroy +auto=choice name(Opponent creates treasure and destroy artifact) _TREASURE_ opponent && target(artifact) destroy text=Choose two -- Prismari Command deals 2 damage to any target. -- Target player draws two cards, then discards two cards. -- Target player creates a Treasure token. -- Destroy target artifact. mana={1}{U}{R} type=Instant @@ -79555,8 +79543,8 @@ toughness=4 [/card] [card] name=Prized Statue -auto=token(Treasure) -auto=_DIES_token(Treasure) +auto=_TREASURE_ +auto=_DIES__TREASURE_ text=When Prized Statue enters or is put into a graveyard from the battlefield, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2} type=Artifact @@ -79566,7 +79554,7 @@ name=Prizefight target=creature|myBattlefield auto=transforms((,newability[target(creature|opponentbattlefield) dynamicability])) ueot restriction=type(creature|opponentbattlefield)~morethan~0 -auto=token(Treasure) +auto=_TREASURE_ text=Target creature you control fights target creature you don't control. (Each deals damage equal to its power to the other.) -- Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{G} type=Instant @@ -79644,7 +79632,7 @@ toughness=3 [card] name=Professional Face-Breaker abilities=menace -auto=@each my combatdamage restriction{opponentdamagedbycombat}:token(Treasure) +auto=@each my combatdamage restriction{opponentdamagedbycombat}:_TREASURE_ auto={S(*[Treasure]|myBattlefield)}:_IMPULSEDRAW_ text=Menace -- Whenever one or more creatures you control deal combat damage to a player, create a Treasure token. -- Sacrifice a Treasure: Exile the top card of your library. You may play that card this turn. mana={2}{R} @@ -79808,7 +79796,7 @@ toughness=4 name=Prosper, Tome-Bound abilities=deathtouch auto=@each my end:name(Exile top card) all(*[zpos<=1]|mylibrary) moveto(exile) and!( transforms((,newability[canplayfromexile uent])) uent )! -auto=@movedto(*|mystack,mybattlefield) from(myexile):name(Create treasure) token(Treasure) +auto=@movedto(*|mystack,mybattlefield) from(myexile):name(Create treasure) _TREASURE_ text=Deathtouch -- Mystic Arcanum - At the beginning of your end step, exile the top card of your library. Until the end of your next turn, you may play that card. -- Pact Boon - Whenever you play a card from exile, create a Treasure token. mana={2}{B}{R} type=Legendary Creature @@ -79829,7 +79817,7 @@ toughness=2 [/card] [card] name=Prosperous Innkeeper -auto=name(Create treasure) token(Treasure) +auto=name(Create treasure) _TREASURE_ auto=@movedto(other creature|mybattlefield):name(Gain 1 life) life:1 text=When Prosperous Innkeeper enters, create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Whenever another creature enters under your control, you gain 1 life. mana={1}{G} @@ -79841,14 +79829,14 @@ toughness=1 [card] name=Prosperous Partnership auto=_CITIZENTOKEN_*2 -auto={T(creature[-tapped]|myBattlefield)}{T(creature[-tapped]|myBattlefield)}{T(creature[-tapped]|myBattlefield)}:token(Treasure) +auto={T(creature[-tapped]|myBattlefield)}{T(creature[-tapped]|myBattlefield)}{T(creature[-tapped]|myBattlefield)}:_TREASURE_ text=When Prosperous Partnership enters, create two 1/1 green and white Citizen creature tokens. -- Tap three untapped creatures you control: Create a Treasure token. mana={1}{R}{W} type=Enchantment [/card] [card] name=Prosperous Pirates -auto=token(Treasure)*2 +auto=_TREASURE_*2 text=When Prosperous Pirates enters, create two colorless Treasure artifact tokens with "{T}, Sacrifice this artifact: Add one mana of any color." mana={4}{U} type=Creature @@ -79859,7 +79847,7 @@ toughness=4 [card] name=Prosperous Thief autohand={1}{U}{N}:ninjutsu -auto=@combatdamaged(player) from(*[ninja;rogue]|mybattlefield):name(Create treasure) token(Treasure) +auto=@combatdamaged(player) from(*[ninja;rogue]|mybattlefield):name(Create treasure) _TREASURE_ text=Ninjutsu {1}{U} ({1}{U}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.) -- Whenever one or more Ninja or Rogue creatures you control deal combat damage to a player, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{U} type=Creature @@ -80074,7 +80062,7 @@ toughness=3 [/card] [card] name=Prying Blade -auto=@combatdamaged(player) from(mytgt):token(Treasure) +auto=@combatdamaged(player) from(mytgt):_TREASURE_ auto=teach(creature) 1/0 auto={2}:equip text=Equipped creature gets +1/+0. -- Whenever equipped creature deals combat damage to a player, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." -- Equip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.) @@ -81433,7 +81421,7 @@ toughness=1 name=Ragavan, Nimble Pilferer other={1}{R} name(Dash) auto=if paid(alternative) then transforms((,haste,newability[phaseaction[endofturn once sourceinplay] moveto(ownerhand)])) forever -auto=@combatdamaged(player) from(this):token(Treasure) +auto=@combatdamaged(player) from(this):_TREASURE_ auto=@combatdamagefoeof(player) from(this):name(Exile top card) name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( if cantargetcard(*[-land]|*) then transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)])) ueot )! auto=@combatdamageof(player) from(this):name(Exile top card) name(Exile top card) all(*[zpos=1]|mylibrary) moveto(myexile) and!( if cantargetcard(*[-land]|*) then transforms((,newability[this(cantargetcard(*[-land]|*)) canplayfromexile])) ueot )! text=Whenever Ragavan, Nimble Pilferer deals combat damage to a player, create a Treasure token and exile the top card of that player's library. Until end of turn, you may cast that card. -- Dash {1}{R} (You may cast this spell for its dash cost. If you do, it gains haste, and it's returned from the battlefield to its owner's hand at the beginning of the next end step.) @@ -82344,10 +82332,10 @@ toughness=1 [card] name=Rankle and Torbran abilities=first strike,flying,haste -auto=@combatdamaged(player) from(this):may name(Create treasure) token(Treasure) and!( token(Treasure) opponent )! +auto=@combatdamaged(player) from(this):may name(Create treasure) _TREASURE_ and!( _TREASURE_ opponent )! auto=@combatdamaged(player) from(this):may name(Each player sacrifices) notAtarget(creature|myBattlefield) sacrifice and!( transforms((,newability[ability$!name(Sacrifice a creature) notatarget(creature|myBattlefield) sacrifice!$ opponent])) oneshot )! auto=@combatdamaged(player) from(this):may name(Duouble the damage) token(Rankle Emblem,Emblem,0/0,shroud,indestructible,treason,notrigger) and!( transforms((,newability[@damaged(battle|battlefield) from(*[-Rankle Emblem]|*):all(trigger[to]) damage:2],newability[@damageof(player) from(*[-Rankle Emblem]|*):damage:2 controller],newability[@damagefoeof(player) from(*[-Rankle Emblem]|*):damage:2 opponent])) forever )! -auto=@combatdamaged(battle) from(this):may name(Create treasure) token(Treasure) and!( token(Treasure) opponent )! +auto=@combatdamaged(battle) from(this):may name(Create treasure) _TREASURE_ and!( _TREASURE_ opponent )! auto=@combatdamaged(battle) from(this):may name(Each player sacrifices) notAtarget(creature|myBattlefield) sacrifice and!( transforms((,newability[ability$!name(Sacrifice a creature) notatarget(creature|myBattlefield) sacrifice!$ opponent])) oneshot )! auto=@combatdamaged(battle) from(this):may name(Duouble the damage) token(Rankle Emblem,Emblem,0/0,shroud,indestructible,treason,notrigger) and!( transforms((,newability[@damaged(battle|battlefield) from(*[-Rankle Emblem]|*):all(trigger[to]) damage:2],newability[@damageof(player) from(*[-Rankle Emblem]|*):damage:2 controller],newability[@damagefoeof(player) from(*[-Rankle Emblem]|*):damage:2 opponent])) forever )! text=Flying, first strike, haste -- Whenever Rankle and Torbran deals combat damage to a player or battle, choose any number -- Each player creates a Treasure token. -- Each player sacrifices a creature. -- If a source would deal damage to a player or battle this turn, it deals that much damage plus 2 instead. @@ -82381,7 +82369,7 @@ type=Sorcery [card] name=Rapacious Dragon abilities=flying -auto=token(Treasure)*2 +auto=_TREASURE_*2 text=Flying -- When Rapacious Dragon enters, create two Treasure tokens. (They're artifacts with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={4}{R} type=Creature @@ -82393,7 +82381,7 @@ toughness=3 name=Rapacious Guest abilities=menace auto=lord(other creature|myBattlefield) -auto=@combatdamaged(player) from(creature|mybattlefield) turnlimited:name(Create food) token(Food) +auto=@combatdamaged(player) from(creature|mybattlefield) turnlimited:name(Create food) _FOOD_ auto=@sacrificed(food|mybattlefield):name(Put 1/1 counter) counter(1/1) auto=_DIES_name(Opponent loses life) life:-power opponent text=Menace -- Whenever one or more creatures you control deal combat damage to a player, create a Food token. -- Whenever you sacrifice a Food, put a +1/+1 counter on Rapacious Guest. -- When Rapacious Guest leaves the battlefield, target opponent loses life equal to its power. @@ -83248,7 +83236,7 @@ type=Sorcery [card] name=Reckless Endeavor auto=all(*[zpos=1]|mylibrary) transforms((,newability[@dierolled(this|mylibrary) from(controller) once:name(Damage all creatures) all(creature|battlefield) damage:lastrollresult],newability[name(Roll a d12) rolld12 12 winability donothing winabilityend rolld12end])) oneshot -auto=name(Roll a d12) rolld12 12 winability token(Treasure)*lastrollresult winabilityend loseability token(Treasure)*lastrollresult loseabilityend rolld12end +auto=name(Roll a d12) rolld12 12 winability _TREASURE_*lastrollresult winabilityend loseability _TREASURE_*lastrollresult loseabilityend rolld12end text=Roll two d12 and choose one result. Reckless Endeavor deals damage equal to that result to each creature. Then create a number of Treasure tokens equal to the other result. mana={5}{R}{R} type=Sorcery @@ -83279,7 +83267,7 @@ type=Sorcery [card] name=Reckless Lackey abilities=first strike,haste -auto={2}{R}{S}:draw:1 && create(Treasure) +auto={2}{R}{S}:draw:1 && _TREASURE_ text=First strike, haste -- {2}{R}, Sacrifice Reckless Lackey: Draw a card and create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={R} type=Creature @@ -83347,7 +83335,7 @@ toughness=3 [card] name=Reckoner Bankbuster auto=counter(0/0,3,Charge) -auto={2}{T}{C(0/0,-1,Charge)}:name(Draw a card) draw:1 controller && if compare(hascntcharge)~equalto~0 then token(Treasure) && if compare(hascntcharge)~equalto~0 then token(Pilot) +auto={2}{T}{C(0/0,-1,Charge)}:name(Draw a card) draw:1 controller && if compare(hascntcharge)~equalto~0 then _TREASURE_ && if compare(hascntcharge)~equalto~0 then token(Pilot) auto={crew(other creature[power>=3]|myBattlefield)}:name(crew 3 [1 creature]) becomes(Artifact Creature) ueot restriction{type(other creature[-tapped;power>=3]|mybattlefield)~morethan~0,compare(crewtotalpower)~morethan~2} auto={crew(other creature[power>=1]|myBattlefield)}{crew(other creature[power>=2]|myBattlefield)}:name(crew 3 [2 creature]) becomes(Artifact Creature) ueot restriction{type(other creature[-tapped;power>=1]|mybattlefield)~morethan~0,type(other creature[-tapped;power>=2]|mybattlefield)~morethan~0,type(other creature[-tapped;-cantcrew]|mybattlefield)~morethan~1,compare(crewtotalpower)~morethan~2} auto={crew(other creature[power>=1]|myBattlefield)}{crew(other creature[power>=1]|myBattlefield)}{crew(other creature[power>=1]|myBattlefield)}:name(crew 3 [3 creature]) becomes(Artifact Creature) ueot restriction{type(other creature[-tapped;power>=1]|mybattlefield)~morethan~2,compare(crewtotalpower)~morethan~2} @@ -83556,7 +83544,7 @@ toughness=2 [/card] [card] name=Redcap Thief -auto=token(Treasure) +auto=_TREASURE_ text=When Redcap Thief enters, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Creature @@ -84636,7 +84624,7 @@ auto=tapped auto={T}:Add{W} auto={T}:Add{U} auto={1}{W}{U}:transforms((Bird Creature,setpower=2,settoughness=3,white,blue,flying)) ueot -auto=_ATTACKING_token(treasure) +auto=_ATTACKING__TREASURE_ text=Restless Anchorage enters tapped. -- {T}: Add {W} or {U}. -- {1}{W}{U}: Until end of turn, Restless Anchorage becomes a 2/3 white and blue Bird creature with flying. It's still a land. -- Whenever Restless Anchorage attacks, create a Map token. type=Land [/card] @@ -84671,7 +84659,7 @@ auto={T}:Add{B} auto={T}:Add{G} auto={2}{B}{G}:transforms((Horror Creature,setpower=4,settoughness=4,black,green)) ueot auto=_ATTACKING_may target(*|graveyard) moveto(exile) -auto=_ATTACKING_create(food) +auto=_ATTACKING__FOOD_ text=Restless Cottage enters tapped. -- {T}: Add {B} or {G}. -- {2}{B}{G}: Restless Cottage becomes a 4/4 black and green Horror creature until end of turn. It's still a land. -- Whenever Restless Cottage attacks, create a Food token and exile up to one target card from a graveyard. type=Land [/card] @@ -84949,7 +84937,7 @@ toughness=1 [/card] [card] name=Revel in Riches -auto=@movedto(creature|opponentgraveyard) from(opponentbattlefield):token(Treasure) +auto=@movedto(creature|opponentgraveyard) from(opponentbattlefield):_TREASURE_ auto=@each my upkeep restriction{type(Treasure|mybattlefield)~morethan~9}:winGame controller text=Whenever a creature an opponent controls dies, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." -- At the beginning of your upkeep, if you control ten or more Treasures, you win the game. mana={4}{B} @@ -85054,7 +85042,7 @@ type=Sorcery [card] name=Revive the Shire target=*[-instant&-sorcery]|mygraveyard -auto=moveto(ownerHand) and!( token(Food) )! +auto=moveto(ownerHand) and!( _FOOD_ )! text=Return target permanent card from your graveyard to your hand. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={1}{G} type=Sorcery @@ -86371,7 +86359,7 @@ toughness=2 [/card] [card] name=Riveteers Requisitioner -auto=_DIES_token(Treasure) +auto=_DIES__TREASURE_ other={2}{R}:name(Blitz) auto=if paid(alternative) then moveto(mybattlefield) and!( transforms((,haste,newability[_DIES_draw:1],newability[treason])) forever )! asSorcery text=When Riveteers Requisitioner dies, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Blitz {2}{R} (If you cast this spell for its blitz cost, it gains haste and "When this creature dies, draw a card." Sacrifice it at the beginning of the next end step.) @@ -86540,9 +86528,9 @@ name=Rocco, Street Chef auto=@each my endofturn:name(Exile top card) _IMPULSEUENT_ auto=@each my endofturn:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(opponentexile) and!( transforms((,newability[canplayfromexile uent])) uent )! auto=@movedto(land|battlefield) from(exile):name(Put 1/1 counter) target(creature|battlefield) counter(1/1) -auto=@movedto(land|battlefield) from(exile):name(Create food) token(Food) +auto=@movedto(land|battlefield) from(exile):name(Create food) _FOOD_ auto=@movedto(*|stack) from(exile):name(Put 1/1 counter) target(creature|battlefield) counter(1/1) -auto=@movedto(*|stack) from(exile):name(Create food) token(Food) +auto=@movedto(*|stack) from(exile):name(Create food) _FOOD_ text=At the beginning of your end step, each player exiles the top card of their library. Until your next end step, each player may play the card they exiled this way. -- Whenever a player plays a land from exile or casts a spell from exile, you put a +1/+1 counter on target creature and create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={R}{G}{W} type=Legendary Creature @@ -87118,8 +87106,8 @@ toughness=4 [card] name=Rosie Cotton of South Lane #This card has been modded in order to allow specific combo when AI is using it, this mod is not effecting card when it is used by a Human player. -auto=if compare(ishuman)~morethan~0 then name(Create food) name(Create food) token(Food) and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )! -auto=if compare(ishuman)~equalto~0 then transforms((,newability[if type(Scurry Oak|mybattlefield)~equalto~0 then token(Food) and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )!],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~equalto~0 then token(Food) and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )!],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~morethan~0 then token(Food) and!( name(Put 1/1 counter) target(Scurry Oak|myBattlefield) counter(1/1) )!])) oneshot +auto=if compare(ishuman)~morethan~0 then name(Create food) name(Create food) _FOOD_ and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )! +auto=if compare(ishuman)~equalto~0 then transforms((,newability[if type(Scurry Oak|mybattlefield)~equalto~0 then _FOOD_ and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )!],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~equalto~0 then _FOOD_ and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )!],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~morethan~0 then _FOOD_ and!( name(Put 1/1 counter) target(Scurry Oak|myBattlefield) counter(1/1) )!])) oneshot auto=@tokencreated(*|myBattlefield) restriction{compare(ishuman)~morethan~0}:name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) auto=@tokencreated(*|myBattlefield) restriction{compare(ishuman)~equalto~0}:name(Put 1/1 counter) name(Put 1/1 counter) transforms((,newability[if type(Scurry Oak|mybattlefield)~equalto~0 then name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1)],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~equalto~0 then name(Put 1/1 counter) name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1)],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~morethan~0 then name(Put 1/1 counter) name(Put 1/1 counter) name(Put 1/1 counter) target(Scurry Oak|myBattlefield) counter(1/1)])) oneshot text=When Rosie Cotton of South Lane enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Whenever you create a token, put a +1/+1 counter on target creature you control other than Rosie. @@ -88129,7 +88117,7 @@ toughness=2 [/card] [card] name=Ruthless Knave -auto={2}{B}{S(creature|mybattlefield)}:token(Treasure)*2 +auto={2}{B}{S(creature|mybattlefield)}:_TREASURE_*2 text={2}{B}, Sacrifice a creature: Create two colorless Treasure artifact tokens with "{T}, Sacrifice this artifact: Add one mana of any color." -- Sacrifice three Treasures: Draw a card. mana={2}{B} type=Creature @@ -88182,7 +88170,7 @@ toughness=2 [/card] [card] name=Ruthless Technomancer -auto=may name(Sacrifice a creature) target(other creature|mybattlefield) sacrifice and!( transforms((,newability[token(Treasure)*power])) oneshot )! +auto=may name(Sacrifice a creature) target(other creature|mybattlefield) sacrifice and!( transforms((,newability[_TREASURE_*power])) oneshot )! auto={2}{B}{S(artifact|mybattlefield)}:name(Sacrifice 1 artifact) target(creature[power<=1]|mygraveyard) moveto(mybattlefield) auto={2}{B}{S(artifact|mybattlefield)}{S(artifact|mybattlefield)}:name(Sacrifice 2 artifacts) target(creature[power<=2]|mygraveyard) moveto(mybattlefield) auto={2}{B}{S(artifact|mybattlefield)}{S(artifact|mybattlefield)}{S(artifact|mybattlefield)}:name(Sacrifice 3 artifacts) target(creature[power<=3]|mygraveyard) moveto(mybattlefield) @@ -88350,8 +88338,8 @@ toughness=2 [card] name=Safana, Calimport Cutthroat abilities=menace,backgroundpartner -auto=@each my endofturn restriction{compare(pdungeoncompleted)~morethan~0}:name(Create 3 treasure) token(Treasure)*3 -auto=@each my endofturn restriction{compare(pinitiative)~morethan~0,compare(pdungeoncompleted)~equalto~0}:name(Create 1 treasure) token(Treasure) +auto=@each my endofturn restriction{compare(pdungeoncompleted)~morethan~0}:name(Create 3 treasure) _TREASURE_*3 +auto=@each my endofturn restriction{compare(pinitiative)~morethan~0,compare(pdungeoncompleted)~equalto~0}:name(Create 1 treasure) _TREASURE_ text=Menace -- At the beginning of your end step, if you have the initiative, create a Treasure token. Create three of those tokens instead if you've completed a dungeon. -- Choose a Background (You can have a Background as a second commander.) mana={2}{B} type=Legendary Creature @@ -88565,7 +88553,7 @@ toughness=3 [/card] [card] name=Sailor of Means -auto=token(Treasure) +auto=_TREASURE_ text=When Sailor of Means enters, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={2}{U} type=Creature @@ -88705,7 +88693,7 @@ abilities=partner partner=Frodo, Adventurous Hobbit auto=_PARTNER_ auto=lord(food|mybattlefield) transforms((,newability[{1}{T}{S}:name(Food abilities cost 1 less) life:3 controller])) -auto=@each my combatbegins:name(Create food) token(Food) +auto=@each my combatbegins:name(Create food) _FOOD_ text=Partner with Frodo, Adventurous Hobbit (When this creature enters, target player may put Frodo into their hand from their library, then shuffle.) -- At the beginning of combat on your turn, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Activated abilities of Foods you control cost {1} less to activate. mana={1}{G}{W} type=Legendary Creature @@ -88776,7 +88764,7 @@ toughness=4 [/card] [card] name=Samwise Gamgee -auto=@movedTo(other creature[-token]|myBattlefield):name(Create food) token(Food) +auto=@movedTo(other creature[-token]|myBattlefield):name(Create food) _FOOD_ auto={S(food|mybattlefield)}{S(food|mybattlefield)}{S(food|mybattlefield)}:name(Reutn historic card) target(*[artifact;legendary;saga]|mygraveyard) moveto(ownerHand) text=Whenever another nontoken creature enters under your control, create a Food token. (It's an artifact with "{2}, Sacrifice this artifact: You gain 3 life.") -- Sacrifice three Foods: Return target historic card from your graveyard to your hand. (Artifacts, legendaries, and Sagas are historic.) mana={G}{W} @@ -89890,8 +89878,8 @@ toughness=3 [/card] [card] name=Savvy Hunter -auto=_ATTACKING_token(Food) -auto=@combat(blocking) source(this):token(Food) +auto=_ATTACKING__FOOD_ +auto=@combat(blocking) source(this):_FOOD_ auto={S(food|myBattlefield)}{S(food|myBattlefield)}:draw:1 text=Whenever Savvy Hunter attacks or blocks, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Sacrifice two Foods: Draw a card. mana={1}{B}{G} @@ -90385,7 +90373,7 @@ subtype=Background [/card] [card] name=Scion of Opulence -auto=@movedto(vampire|graveyard) from(mybattlefield):name(Create treasure) token(Treasure) +auto=@movedto(vampire|graveyard) from(mybattlefield):name(Create treasure) _TREASURE_ auto={R}{S(artifact|mybattlefield)}{S(artifact|mybattlefield)}:name(Exile top card) all(*[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile])) ueot )! text=Whenever Scion of Opulence or another nontoken Vampire you control dies, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- {R}, Sacrifice two artifacts: Exile the top card of your library. You may play that card this turn. mana={2}{R} @@ -90704,7 +90692,7 @@ toughness=4 [card] name=Scream Puff abilities=deathtouch -auto=@combatdamaged(player) from(this):token(Food) +auto=@combatdamaged(player) from(this):_FOOD_ text=Deathtouch -- Whenever Scream Puff deals combat damage to a player, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={4}{B} type=Creature @@ -91189,7 +91177,7 @@ type=Snow Sorcery [/card] [card] name=Search the Premises -auto=@combat(attacking) source(creature|opponentBattlefield):name(Investigate) name(Create clue) token(Clue) controller +auto=@combat(attacking) source(creature|opponentBattlefield):name(Investigate) name(Create clue) _CLUE_ controller text=Whenever a creature attacks you or a planeswalker you control, investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") mana={3}{W} type=Enchantment @@ -91339,7 +91327,7 @@ type=Land [card] name=Second Breakfast auto=may target(creature|battlefield) 2/1 -auto=token(Food) +auto=_FOOD_ text=Up to two target creatures each get +2/+1 until end of turn. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{W} type=Instant @@ -91384,7 +91372,7 @@ name=Secret Passage auto=tapped auto={T}:Add{U} auto={T}:Add{B} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Secret Passage enters tapped. -- {T}: Add {U} or {B}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -91423,8 +91411,8 @@ type=Sorcery [/card] [card] name=Secrets of the Key -auto=token(Clue) -auto=if gravecast then token(Clue) +auto=_CLUE_ +auto=if gravecast then _CLUE_ flashback={3}{U} text=Investigate. If this spell was cast from a graveyard, investigate twice instead. (To investigate, create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") -- Flashback {3}{U} mana={U} @@ -91669,7 +91657,7 @@ type=Instant [card] name=Seize the Spoils auto=draw:2 controller -auto=token(Treasure) +auto=_TREASURE_ text=As an additional cost to cast this spell, discard a card. -- Draw two cards and create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R}{D(other *|myhand)} type=Sorcery @@ -92860,7 +92848,7 @@ toughness=3 [/card] [card] name=Shambling Ghast -auto=_DIES_name(Choose one) transforms((,newability[if type(creature|opponentbattlefield)~morethan~0 then choice name(Creature gets -1/-1) name(Creature gets -1/-1) target(creature|opponentbattlefield) -1/-1 ueot],newability[choice name(Create treasure) token(Treasure)])) oneshot +auto=_DIES_name(Choose one) transforms((,newability[if type(creature|opponentbattlefield)~morethan~0 then choice name(Creature gets -1/-1) name(Creature gets -1/-1) target(creature|opponentbattlefield) -1/-1 ueot],newability[choice name(Create treasure) _TREASURE_])) oneshot text=When Shambling Ghast dies, Choose one -- Brave the Stench - Target creature an opponent controls gets -1/-1 until end of turn. -- Search the Body - Create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={B} type=Creature @@ -93180,7 +93168,7 @@ type=Instant [card] name=Shelob's Ambush target=creature -auto=name(Create food) token(Food) +auto=name(Create food) _FOOD_ auto=transforms((,newability[1/2],deathtouch)) ueot text=Target creature gets +1/+2 and gains deathtouch until end of turn. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={B} @@ -93638,7 +93626,7 @@ subtype=Equipment [card] name=Shiny Impetus target=creature -auto=teach(creature) transforms((,newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[_ATTACKING_token(Treasure)])) +auto=teach(creature) transforms((,newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[_ATTACKING__TREASURE_])) auto=2/2 text=Enchanted creature gets +2/+2 and is goaded. (It attacks each combat if able and attacks a player other than you if able.) -- Whenever enchanted creature attacks, you create a Treasure token. (It's an artifact with "Tap, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} @@ -95782,7 +95770,7 @@ toughness=3 [/card] [card] name=Skullport Merchant -auto=name(Create treasure) token(Treasure) +auto=name(Create treasure) _TREASURE_ auto={1}{B}{S(other *[creature;treasure]|mybattlefield)}:name(Draw card) draw:1 controller text=When Skullport Merchant enters, create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- {1}{B}, Sacrifice another creature or a Treasure: Draw a card. mana={2}{B} @@ -95876,7 +95864,7 @@ toughness=4 [card] name=Skybeast Tracker abilities=reach -auto=@movedTo(*[manacost>=5]|mystack):create(Food) +auto=@movedTo(*[manacost>=5]|mystack):_FOOD_ text=Reach -- Whenever you cast a spell with mana value 5 or greater, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={3}{G} type=Creature @@ -96566,7 +96554,7 @@ toughness=8 name=Slip On the Ring target=creature|myBattlefield autostack=ability$!name(The ring tempts you) _RINGTEMPTS_!$ controller -auto=name(Exile creature) moveto(myexile) and!( moveto(mybattlefield) )! +auto=name(Exile creature) moveto(myexile) and!( moveto(mybattlefield) )!moveto(myexile) and!( moveto(mybattlefield) )! text=Exile target creature you own, then return it to the battlefield under your control. The Ring tempts you. mana={1}{W} type=Instant @@ -96832,7 +96820,7 @@ type=Sorcery [/card] [card] name=Smashing Success -auto=if type(artifact|mybattlefield)~morethan~0 then choice name(Destroy artifact) name(Destroy artifact) target(artifact) destroy && token(Treasure) +auto=if type(artifact|mybattlefield)~morethan~0 then choice name(Destroy artifact) name(Destroy artifact) target(artifact) destroy && _TREASURE_ auto=if type(land|mybattlefield)~morethan~0 then choice name(Destroy land) name(Destroy land) target(land) destroy text=Destroy target artifact or land. If an artifact is destroyed this way, create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{R} @@ -96841,7 +96829,7 @@ type=Instant [card] name=Smaug abilities=flying,haste -auto=_DIES_name(Create treasures) token(Treasure)*14 +auto=_DIES_name(Create treasures) _TREASURE_*14 text=When this creature dies, create fourteen Treasure tokens. color=red type=Legendary Creature @@ -96975,7 +96963,7 @@ type=Enchantment [card] name=Smoke Blessing target=creature -auto=teach(creature) transforms((,newability[@movedto(this|graveyard) from(battlefield):name(Create treasure) token(Treasure)],newability[@movedto(this|graveyard) from(battlefield):name(Damage controller) damage:1 controller])) +auto=teach(creature) transforms((,newability[@movedto(this|graveyard) from(battlefield):name(Create treasure) _TREASURE_],newability[@movedto(this|graveyard) from(battlefield):name(Damage controller) damage:1 controller])) text=Enchant creature -- When enchanted creature dies, it deals 1 damage to its controller and you create a Treasure token. color=red type=Enchantment @@ -97039,7 +97027,7 @@ toughness=4 [/card] [card] name=Smothering Tithe -auto=@drawfoeof(player):ability$!name(pay or create treasure) pay[[{2}]] donothing?token(Treasure) controller!$ opponent +auto=@drawfoeof(player):ability$!name(pay or create treasure) pay[[{2}]] donothing?_TREASURE_ controller!$ opponent text=Whenever an opponent draws a card, that player may pay {2}. If the player doesn't, you create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={3}{W} type=Enchantment @@ -97363,9 +97351,9 @@ type=Artifact name=Sol, Advocate Eternal abilities=flying,vigilance,partner auto=@combat(attacking) source(this) restriction{type(creature[-blocking;attacking;iscommander]|myBattlefield)~morethan~1}:may name(Support 4) target(creature|battlefield) counter(1/1) -auto=@combat(attacking) source(this) restriction{type(creature[-blocking;attacking;iscommander]|myBattlefield)~morethan~1}:name(Investigate 4 times) token(Clue)*4 +auto=@combat(attacking) source(this) restriction{type(creature[-blocking;attacking;iscommander]|myBattlefield)~morethan~1}:name(Investigate 4 times) _CLUE_*4 auto=@combat(blocking) source(this) restriction{type(creature[-attacking;blocking;iscommander]|myBattlefield)~morethan~1}:may name(Support 4) target(creature|battlefield) counter(1/1) -auto=@combat(blocking) source(this) restriction{type(creature[-attacking;blocking;iscommander]|myBattlefield)~morethan~1}:name(Investigate 4 times) token(Clue)*4 +auto=@combat(blocking) source(this) restriction{type(creature[-attacking;blocking;iscommander]|myBattlefield)~morethan~1}:name(Investigate 4 times) _CLUE_*4 text=Legendary partner (You can have two commanders if this is one of them. The other one is promoted to legendary.) -- Flying, vigilance -- Teamwork - Whenever you attack or block with both Sol, Advocate Eternal and its partner, support 4 and investigate four times. mana={G}{W}{U}{B} type=Legendary Creature @@ -97650,7 +97638,7 @@ auto=counter(0/0,1,Lore) auto=@each my firstmain:counter(0/0,1,Lore) auto=name(Scry 2) scry:2 scrycore delayed dontshow draw:2 controller scrycoreend scryend auto=@counteradded(0/0,1,Lore) from(this) restriction{compare(hascntlore)~equalto~2}:name(Create bird) name(Create bird) token(Bird,Creature Brid,2/2,blue,flying) -auto=@counteradded(0/0,1,Lore) from(this) restriction{compare(hascntlore)~equalto~2}:name(Create treasure) name(Create treasure) token(Treasure) +auto=@counteradded(0/0,1,Lore) from(this) restriction{compare(hascntlore)~equalto~2}:name(Create treasure) name(Create treasure) _TREASURE_ auto=@counteradded(0/0,1,Lore) from(this) restriction{compare(hascntlore)~equalto~3}:name(Sacrifice) name(Sacrifice) sacrifice auto=@counteradded(0/0,1,Lore) from(this) restriction{compare(hascntlore)~equalto~3}:name(Put flying counter) name(Put flying counter) all(creature[-flying]|mybattlefield) transforms((,newability[counter(0/0.1.Flying)],newability[this(counter{0/0.1.Flying}>0) flying])) forever text=(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.) -- I- Scry 2, then draw two cards. -- II- Create a Treasure token and a 2/2 blue Bird creature token with flying. -- III- Put a flying counter on each creature you control without flying. @@ -97779,7 +97767,7 @@ toughness=3 name=Sophia, Dogged Detective auto=create(Tiny:legendary Dog Detective creature:2/2:green:trample) auto={1}{S(artifact[token]|myBattlefield)}:counter(1/1) all(dog|myBattlefield) -auto=@combatdamaged(player) from(dog|myBattlefield):create(Food) && create(Clue) +auto=@combatdamaged(player) from(dog|myBattlefield):_FOOD_ && _CLUE_ text=When Sophia, Dogged Detective enters, create Tiny, a legendary 2/2 green Dog Detective creature token with trample. -- {1}, Sacrifice an artifact token: Put a +1/+1 counter on each Dog you control. -- Whenever a Dog you control deals combat damage to a player, create a Food token, then investigate. mana={1}{G}{W}{U} type=Legendary Creature @@ -97886,7 +97874,7 @@ toughness=2 name=Sorin, Ravenous Neonate auto=counter(0/0,3,loyalty) auto=_EXTORT_ -auto={C(0/0,+2,Loyalty)}:create(food) +auto={C(0/0,+2,Loyalty)}:_FOOD_ auto={C(0/0,-1,Loyalty)}:target(anytarget) damage:lifegain auto={C(0/0,-6,Loyalty)}:target(creature) moveTo(myBattlefield) and!( transforms((Vampire,newability[if type(other *[white]|myBattlefield)~morethan~1 then counter(0/0.1.Lifelink)],newability[this(counter{0/0.1.Lifelink}>=1) lifelink])) forever )! text=Extort (Whenever you cast a spell, you may pay {W/B}. If you do, each opponent loses 1 life and you gain that much life.) -- [+2]: Create a Food token. -- [-1]: Sorin, Ravenous Neonate deals damage equal to the amount of life you gained this turn to any target. -- [-6]: Gain control of target creature. It becomes a Vampire in addition to its other types. Put a lifelink counter on it if you control a white permanent other than that creature or Sorin. @@ -98870,7 +98858,7 @@ type=Instant name=Spell Swindle target=*|stack auto=fizzle -anyzone=if casted(this) then if compare(hasstorecard)~morethan~0 then token(Treasure)*storedmanacost +anyzone=if casted(this) then if compare(hasstorecard)~morethan~0 then _TREASURE_*storedmanacost text=Counter target spell. Create X colorless Treasure artifact tokens, where X is that spell's mana value. They have "{T}, Sacrifice this artifact: Add one mana of any color." mana={3}{U}{U} type=Instant @@ -99184,7 +99172,7 @@ auto=if type(artifact)~morethan~0 then choice name() name(Destroy target artifac auto=if type(enchantment)~morethan~0 then choice name() name(Destroy target enchantment) destroy target(enchantment) auto=if type(creature[flying])~morethan~0 then choice name() name(Destroy target flying creature) destroy target(creature[flying]) auto=choice name(No targets) doNothing -auto=create(Food) +auto=_FOOD_ text=Destroy up to one target artifact, enchantment, or creature with flying. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{G} type=Sorcery @@ -99227,17 +99215,17 @@ abilities=flash auto={5}:name(Roll a d20) target(creature|battlefield) counter(0/0,1,SpikedEffect) && all(this) rolld20 20 winability donothing winabilityend rolld20end auto=@dierolled(this) from(controller):all(this) sacrifice auto=@dierolled(this) from(controller):ability$!name(Deal 5 damage) all(creature[counter{0/0.1.SpikedEffect}]|battlefield) transforms((,newability[damage:5],newability[removeallcounters(0/0.1.SpikedEffect)])) oneshot!$controller -auto=@dierolled(this) result(10) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(11) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(12) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(13) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(14) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(15) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(16) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(17) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(18) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(19) from(controller):name(Create treasure) token(Treasure) -auto=@dierolled(this) result(20) from(controller):name(Create treasure) token(Treasure) +auto=@dierolled(this) result(10) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(11) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(12) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(13) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(14) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(15) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(16) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(17) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(18) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(19) from(controller):name(Create treasure) _TREASURE_ +auto=@dierolled(this) result(20) from(controller):name(Create treasure) _TREASURE_ text=Flash -- {5}, {T}, Sacrifice Spiked Pit Trap: Choose target creature, then roll a d20. -- 1-9 | Spiked Pit Trap deals 5 damage to that creature. -- 10-20 | Spiked Pit Trap deals 5 damage to that creature. Create a Treasure token. mana={1} type=Artifact @@ -99541,7 +99529,7 @@ type=Instant [/card] [card] name=Spiteful Banditry -auto=@movedto(creature|graveyard) from(opponentbattlefield) turnlimited:name(Create treasure) token(Treasure) +auto=@movedto(creature|graveyard) from(opponentbattlefield) turnlimited:name(Create treasure) _TREASURE_ auto=name(Damage all creatures) damage:fullpaid all(creature|battlefield) text=When Spiteful Banditry enters, it deals X damage to each creature. -- Whenever one or more creatures your opponents control die, you create a Treasure token. This ability triggers only once each turn. mana={X}{R}{R} @@ -100932,7 +100920,7 @@ type=Instant name=Stew the Coneys target=creature|mybattlefield auto=name(Deal damage) transforms((,newability[name(Deal damage) name(Deal damage) damage:power target(creature|opponentbattlefield)])) oneshot -auto=token(Food) +auto=_FOOD_ text=Target creature you control deals damage equal to its power to target creature you don't control. Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{G} type=Instant @@ -100952,7 +100940,7 @@ toughness=2 name=Sticky Fingers target=creature auto=teach(creature) menace -auto=@combatdamaged(player) from(mytgt):token(Treasure) +auto=@combatdamaged(player) from(mytgt):_TREASURE_ auto=@movedto(mytgt|graveyard) from(Battlefield):draw:1 controller text=Enchant creature -- Enchanted creature has menace and "Whenever this creature deals combat damage to a player, create a Treasure token." (It can't be blocked except by two or more creatures. The token is an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- When enchanted creature dies, draw a card. mana={R} @@ -100973,7 +100961,7 @@ toughness=2 [/card] [card] name=Stimulus Package -auto=token(Treasure)*2 +auto=_TREASURE_*2 auto={S(*[Treasure]|myBattlefield)}:_CITIZENTOKEN_ text=When Stimulus Package enters, create two Treasure tokens. (They're artifacts with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Sacrifice a Treasure: Create a 1/1 green and white Citizen creature token. mana={2}{R}{G} @@ -101578,7 +101566,7 @@ type=Sorcery [/card] [card] name=Storm the Vault -auto=@each combatdamage restriction{opponentdamagedbycombat}:token(Treasure) +auto=@each combatdamage restriction{opponentdamagedbycombat}:_TREASURE_ auto=@each my upkeep restriction{type(artifact|myBattlefield)~morethan~4}:flip(Vault of Catlacan) text=Whenever one or more creatures you control deal combat damage to a player, create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") -- At the beginning of your end step, if you control five or more artifacts, transform Storm the Vault. mana={2}{U}{R} @@ -101607,7 +101595,7 @@ toughness=4 [card] name=Storm-Kiln Artist auto=foreach(artifact|mybattlefield) 1/0 -auto=@movedto(*[instant;sorcery]|mystack):name(Create Treasure) token(Treasure) +auto=@movedto(*[instant;sorcery]|mystack):name(Create Treasure) _TREASURE_ text=Storm-Kiln Artist gets +1/+0 for each artifact you control. -- Magecraft - Whenever you cast or copy an instant or sorcery spell, create a Treasure token. mana={3}{R} type=Creature @@ -101953,7 +101941,7 @@ toughness=4 [/card] [card] name=Strike It Rich -auto=token(Treasure) +auto=_TREASURE_ flashback={2}{R} text=Create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") -- Flashback {2}{R} (You may cast this card from your graveyard for its flashback cost. Then exile it.) mana={R} @@ -102077,7 +102065,7 @@ name=Study auto=tapped auto={T}:Add{W} auto={T}:Add{U} -auto={4}{T}:create(Clue) +auto={4}{T}:_CLUE_ text=Study enters tapped. -- {T}: Add {W} or {U}. -- {4}, {T}: Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") type=Land [/card] @@ -102235,7 +102223,7 @@ name=Sudden Breakthrough target=creature auto=2/0 auto=first strike -auto=token(Treasure) +auto=_TREASURE_ text=Target creature gets +2/+0 and gains first strike until end of turn. -- Create a Treasure token. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{R} type=Instant @@ -103069,7 +103057,7 @@ type=Artifact [card] name=Surly Badgersaur auto=@discarded(*[creature]|myHand):all(this) counter(1/1) -auto=@discarded(*[land]|myHand):token(Treasure) +auto=@discarded(*[land]|myHand):_TREASURE_ auto=@discarded(*[-creature;-land]|myHand):name(Fight target creature you don't control) dynamicability target(creature|opponentBattlefield) text=Whenever you discard a creature card, put a +1/+1 counter on Surly Badgersaur. -- Whenever you discard a land card, create a treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Whenever you discard a noncreature, nonland card, Surly Badgersaur fights up to one target creature you don't control. mana={3}{R} @@ -103319,7 +103307,7 @@ toughness=3 [/card] [card] name=Swarming of Moria -auto=token(Treasure) +auto=_TREASURE_ auto=_AMASSORC2_ text=Create a Treasure token. (It's an artifact with "{T} Sacrifice this artifact: Add one mana of any color.") -- Amass Orcs 2. (Put two +1/+1 counters on an Army you control. It's also an Orc. If you don't control an Army, create a 0/0 black Orc Army creature token first.) mana={2}{R} @@ -103327,7 +103315,7 @@ type=Sorcery [/card] [card] name=Swashbuckler Extraordinaire -auto=name(Create treasure) token(Treasure) +auto=name(Create treasure) _TREASURE_ auto=@each my blockers restriction{type(*[treasure]|myBattlefield)~equalto~1}:may name(Sacrifice 1 treasure) name(Sacrifice 1 treasure) target(*[treasure]|mybattlefield) sacrifice and!( transforms((,newability[name(Creature gains double strike) target(creature|battlefield) transforms((,double strike)) ueot])) oneshot )! auto=@each my blockers restriction{type(*[treasure]|myBattlefield)~equalto~2}:may name(Sacrifice 2 treasures) name(Sacrifice 2 treasures) target(*[treasure]|mybattlefield) sacrifice and!( transforms((,newability[name(Creature gains double strike) target(creature|battlefield) transforms((,double strike)) ueot])) oneshot )! auto=@each my blockers restriction{type(*[treasure]|myBattlefield)~equalto~3}:may name(Sacrifice 3 treasures) name(Sacrifice 3 treasures) target(*[treasure]|mybattlefield) sacrifice and!( transforms((,newability[name(Creature gains double strike) target(creature|battlefield) transforms((,double strike)) ueot])) oneshot )! @@ -103406,7 +103394,7 @@ toughness=3 [/card] [card] name=Sweettooth Witch -auto=create(Food) +auto=_FOOD_ auto={2}{S(food|myBattlefield)}:life:-2 target(player) text=When Sweettooth Witch enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- {2}, Sacrifice a Food: Target player loses 2 life. mana={2}{B} @@ -103827,7 +103815,7 @@ toughness=2 [card] name=Syndicate Heavy auto=_EXTORT_ -auto=@each endofturn restriction{compare(lifegain)~morethan~3}:create(Clue) +auto=@each endofturn restriction{compare(lifegain)~morethan~3}:_CLUE_ text=Extort (Whenever you cast a spell, you may pay {W/B}. If you do, each opponent loses 1 life and you gain that much life.) -- At the beginning of each end step, if you gained 4 or more life this turn, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{WB}{WB} type=Creature @@ -104603,7 +104591,7 @@ backside=Tamiyo, Seasoned Scholar restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) abilities=flying -auto=_ATTACKING_create(Clue) +auto=_ATTACKING__CLUE_ auto=@drawof(player) restriction{compare(pdrewcount)~equalto~3}:name(Exile and transform) moveto(exile) and!( flip(backside) forcetype(Legendary Planeswalker) )! text=Flying -- Whenever Tamiyo, Inquisitive Student attacks, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") -- When you draw your third card in a turn, exile Tamiyo, then return her to the battlefield transformed under her owner's control. mana={U} @@ -104952,7 +104940,7 @@ type=Enchantment name=Taste of Death auto=sacrifice notatarget(<3>creature|mybattlefield) auto=ability$! sacrifice notatarget(<3>creature|mybattlefield) !$ opponent -auto=token(Food)*3 +auto=_FOOD_*3 text=Each player sacrifices three creatures. You create three Food tokens. (They're artifacts with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={4}{B}{B} type=Sorcery @@ -105081,7 +105069,7 @@ toughness=5 [/card] [card] name=Tavern Scoundrel -auto=@coinflipped(*|battlefield) result(won) from(controller):name(Create treasures) token(Treasure)*2 +auto=@coinflipped(*|battlefield) result(won) from(controller):name(Create treasures) _TREASURE_*2 auto={1}{T}{S(other *|myBattlefield)}:flipacoin winability donothing winabilityend loseability donothing loseabilityend flipend text=Whenever you win a coin flip, create two Treasure tokens. (They're artifacts with " {T}, Sacrifice this artifact: Add one mana of any color.") -- {1}, {T}, Sacrifice another permanent: Flip a coin. mana={1}{R} @@ -105581,14 +105569,14 @@ type=Sorcery [/card] [card] name=Tempting Contract -auto=@each my upkeep:if compare(genrand2)~equalto~0 then token(Treasure) && token(Treasure) opponent +auto=@each my upkeep:if compare(genrand2)~equalto~0 then _TREASURE_ && _TREASURE_ opponent text=At the beginning of your upkeep, each opponent may create a Treasure token. For each opponent who does, you create a Treasure token. mana={4} type=Artifact [/card] [card] name=Tempting Witch -auto=token(Food) +auto=_FOOD_ auto={2}{T}{S(food|myBattlefield)}:life:-3 target(player) text=When Tempting Witch enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- {2}, {T}, Sacrifice a Food: Target player loses 3 life. mana={2}{B} @@ -106070,7 +106058,7 @@ toughness=4 [card] name=Teysa, Opulent Oligarch abilities=deathtouch -auto=@each my endofturn:if compare(oplifelost)~morethan~0 then create(Clue) +auto=@each my endofturn:if compare(oplifelost)~morethan~0 then _CLUE_ auto=@movedTo(graveyard) from(Clue|myBattlefield) turnlimited:create(spirit:creature spirit:1/1:white:black:flying) text=Deathtouch -- At the beginning of your end step, investigate for each opponent who lost life this turn. -- Whenever a Clue you control is put into a graveyard from the battlefield, create a 1/1 white and black Spirit creature token with flying. This ability triggers only once each turn. mana={1}{W}{B} @@ -106327,7 +106315,7 @@ subtype=Sphere [card] name=The Balrog of Moria abilities=haste,trample,cycling -autohand=__CYCLING__({3}{R}) && token(Treasure)*2 +autohand=__CYCLING__({3}{R}) && _TREASURE_*2 auto=_DIES_ may name(Exile balrog) all(trigger[to]) moveto(exile) and!( ability$!name(Exile opponent creature) target(creature|opponentBattlefield) moveto(exile)!$ controller )! text=Trample, haste -- When The Balrog of Moria dies, you may exile it. When you do, for each opponent, exile up to one target creature that player controls. -- Cycling {3}{R} ({3}{R}, Discard this card: Draw a card.) -- When you cycle The Balrog of Moria, create two Treasure tokens. mana={4}{B}{B}{R} @@ -106376,7 +106364,7 @@ subtype=Saga [card] name=The Battle of Bywater auto=all(creature[power>=3]|battlefield) destroy -auto=ability$!name(Create food) all(mysource|mystack) transforms((,newability[token(Food)*type:creature:mybattlefield])) oneshot!$ controller +auto=ability$!name(Create food) all(mysource|mystack) transforms((,newability[_FOOD_*type:creature:mybattlefield])) oneshot!$ controller text=Destroy all creatures with power 3 or greater. Then create a Food token for each creature you control. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={1}{W}{W} type=Sorcery @@ -106545,7 +106533,7 @@ name=The Chase Is On target=creature auto=3/0 auto=first strike -auto=create(Clue) +auto=_CLUE_ text=Target creature gets +3/+0 and gains first strike until end of turn. Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{R} type=Instant @@ -106827,7 +106815,7 @@ toughness=3 name=The Goose Mother abilities=flying auto=counter(1/1,X) -auto=create(Food)*halfupX +auto=_FOOD_*halfupX auto=_ATTACKING_may sacrifice notatarget(Food|mybattlefield) and!( draw:1 )! text=Flying -- The Goose Mother enters with X +1/+1 counters on it. -- When The Goose Mother enters, create half X Food tokens, rounded up. -- Whenever The Goose Mother attacks, you may sacrifice a Food. If you do, draw a card. mana={X}{G}{U} @@ -106878,7 +106866,7 @@ name=The Great Work auto=counter(0/0,1,Lore) auto=@each my firstmain:counter(0/0,1,Lore) auto=name(Damage opponent and creatures) damage:3 opponent && damage:3 all(creature|opponentbattlefield) -auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) name(Create 3 treasures) token(Treasure)*3 +auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) name(Create 3 treasures) _TREASURE_*3 auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) name(Cast spells from graveyard) name(Cast spells from graveyard) all(*[instant;sorcery]|mygraveyard) transforms((,newability[canplayfromgraveyard],newability[gainedexiledeath])) ueot auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) name(Exile and return) moveto(myexile) and!( moveto(mybattlefield) and!( transforms((,newability[becomes(Legendary) forever],newability[@movedto(*[instant;sorcery]|mygraveyard):name(Cast spells from graveyard) name(Cast spells from graveyard) all(trigger[to]) transforms((,newability[canplayfromgraveyard],newability[gainedexiledeath])) ueot])) ueot )! )! text=(As this Saga enters and after your draw step, add a lore counter.) -- I -- The Great Work deals 3 damage to target opponent and each creature they control. -- II -- Create three Treasure tokens. -- III -- Until end of turn, you may cast instant and sorcery spells from any graveyard. If a spell cast this way would be put into a graveyard, exile it instead. Exile The Great Work, then return it to the battlefield (front face up). @@ -107250,8 +107238,8 @@ toughness=4 name=The Reaver Cleaver auto=teach(creature) 1/1 auto=teach(creature) trample -auto=teach(creature) transforms((,newability[@combatdamaged(player) from(this):token(Treasure)*thatmuch])) -auto=teach(creature) transforms((,newability[@combatdamaged(planeswalker) from(this):token(Treasure)*thatmuch])) +auto=teach(creature) transforms((,newability[@combatdamaged(player) from(this):_TREASURE_*thatmuch])) +auto=teach(creature) transforms((,newability[@combatdamaged(planeswalker) from(this):_TREASURE_*thatmuch])) auto={3}:equip text=Equipped creature gets +1/+1 and has trample and "Whenever this creature deals combat damage to a player or planeswalker, create that many Treasure tokens." -- Equip {3} mana={2}{R} @@ -107358,7 +107346,7 @@ subtype=Saga name=The Shire auto=if type(creature[legendary]|myBattlefield)~equalto~0 then name(Enter tapped) name(Enter tapped) tap(noevent) auto={T}:add{G} -auto={1}{G}{T}{T(creature[-tapped]|mybattlefield)}:name(Create food) token(Food) +auto={1}{G}{T}{T(creature[-tapped]|mybattlefield)}:name(Create food) _FOOD_ text=The Shire enters tapped unless you control a legendary creature. -- {T}: Add {G}. -- {1}{G}, {T}, Tap an untapped creature you control: Create a Food token. type=Legendary Land [/card] @@ -107471,7 +107459,7 @@ subtype=Saga [/card] [card] name=The Underworld Cookbook -auto={T}{D(*|myHand)}:name(Create food) token(Food) +auto={T}{D(*|myHand)}:name(Create food) _FOOD_ auto={4}{T}{S}:name(Return creature) target(creature|mygraveyard) moveto(ownerHand) text={T}, Discard a card: Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- {4}, {T}, Sacrifice The Underworld Cookbook: Return target creature card from your graveyard to your hand. mana={1} @@ -107558,7 +107546,7 @@ subtype=Saga [card] name=They Went This Way auto=moveto(mybattlefield) target(land[basic]|mylibrary) and!(tap(noevent))! -auto=create(Clue) +auto=_CLUE_ text=Search your library for a basic land card, put it onto the battlefield tapped, then shuffle. Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{G} type=Sorcery @@ -107591,7 +107579,7 @@ toughness=1 [card] name=Thieves' Tools auto={2}:equip -auto=aslongas(parents) name(Create Token) token(Treasure) <1 +auto=aslongas(parents) name(Create Token) _TREASURE_ <1 auto=teach(creature[power<=3]) unblockable text=When Thieves' Tools enters, create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") -- Equipped creature can't be blocked as long as its power is 3 or less. -- Equip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.) mana={1}{B} @@ -107822,7 +107810,7 @@ toughness=2 [/card] [card] name=Thorough Investigation -auto=@each my blockers:name(Investigation) name(Create clue) token(Clue) controller +auto=@each my blockers:name(Investigation) name(Create clue) _CLUE_ controller auto=@sacrificed(Clue|mybattlefield) restriction{compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~equalto~0}:name(Venture into dungeon) transforms((,newability[if type(*[dungeon]|mycommandzone)~morethan~0 then name(Explore the dungeon) name(Explore the dungeon) all(*[dungeon]|mycommandzone) counter(0/0.1.Explore)],newability[if type(*[dungeon]|mycommandzone)~equalto~0 then name(Choose a new dungeon) name(Choose a new dungeon) target(*[dungeon]|mysideboard) moveTo(mycommandzone) and!( counter(0/0.1.Explore) )!])) oneshot text=Whenever you attack, investigate. (Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you sacrifice a Clue, venture into the dungeon. (Enter the first room or advance to the next room.) mana={2}{W} @@ -109013,7 +109001,7 @@ toughness=5 [/card] [card] name=Tireless Provisioner -auto=_LANDFALL_ability$!choice name(Create food) token(Food) _ choice name(Create Treasure) token(Treasure) !$ controller +auto=_LANDFALL_ability$!choice name(Create food) _FOOD_ _ choice name(Create Treasure) _TREASURE_ !$ controller text=Landfall - Whenever a land enters under your control, create a Food token or a Treasure token. (Food is an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life." Treasure is an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{G} type=Creature @@ -109997,7 +109985,7 @@ type=Enchantment [/card] [card] name=Tough Cookie -auto=create(Food) +auto=_FOOD_ auto={2}{G}:target(artifact[-creature]|myBattlefield) transforms((Artifact Creature,setpower=4,settoughness=4)) ueot auto={2}{T}{S}:life:3 text=When Tough Cookie enters, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- {2}{G}: Target noncreature artifact you control becomes a 4/4 artifact creature until end of turn. -- {2}, {T}, Sacrifice Tough Cookie: You gain 3 life. @@ -110267,7 +110255,7 @@ name=Toxin Analysis target=creature auto=deathtouch auto=lifelink -auto=create(Clue) +auto=_CLUE_ text=Target creature gains deathtouch and lifelink until end of turn. Investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={B} type=Instant @@ -110327,7 +110315,7 @@ type=Instant [/card] [card] name=Trail of Crumbs -auto=token(Food) +auto=_FOOD_ auto=@sacrificed(food|mybattlefield):pay({1}) name(look) reveal:2 optionone name(Get a permanent card) target(<1>*[-instant;-sorcery]|reveal) moveto(ownerHand) optiononeend optiontwo name(put on bottom) target(<2>*|reveal) bottomoflibrary optiontwoend revealend text=When Trail of Crumbs enters, 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} @@ -110599,29 +110587,18 @@ mana={2}{U} type=Sorcery [/card] [card] -name=Treasure -auto={T}{S}:add{W} -auto={T}{S}:add{U} -auto={T}{S}:add{B} -auto={T}{S}:add{R} -auto={T}{S}:add{G} -text={T}, Sacrifice this artifact: Add one mana of any color. -type=Artifact -subtype=Treasure -[/card] -[card] name=Treasure Chest auto={4}:name(Roll a d20) rolld20 20 winability donothing winabilityend rolld20end auto=@dierolled(this) from(controller):all(this) sacrifice auto=@dierolled(this) result(1) from(controller):name(Loose life) life:-3 controller -auto=@dierolled(this) result(2) from(controller):name(Create treasure) token(Treasure)*5 -auto=@dierolled(this) result(3) from(controller):name(Create treasure) token(Treasure)*5 -auto=@dierolled(this) result(4) from(controller):name(Create treasure) token(Treasure)*5 -auto=@dierolled(this) result(5) from(controller):name(Create treasure) token(Treasure)*5 -auto=@dierolled(this) result(6) from(controller):name(Create treasure) token(Treasure)*5 -auto=@dierolled(this) result(7) from(controller):name(Create treasure) token(Treasure)*5 -auto=@dierolled(this) result(8) from(controller):name(Create treasure) token(Treasure)*5 -auto=@dierolled(this) result(9) from(controller):name(Create treasure) token(Treasure)*5 +auto=@dierolled(this) result(2) from(controller):name(Create treasure) _TREASURE_*5 +auto=@dierolled(this) result(3) from(controller):name(Create treasure) _TREASURE_*5 +auto=@dierolled(this) result(4) from(controller):name(Create treasure) _TREASURE_*5 +auto=@dierolled(this) result(5) from(controller):name(Create treasure) _TREASURE_*5 +auto=@dierolled(this) result(6) from(controller):name(Create treasure) _TREASURE_*5 +auto=@dierolled(this) result(7) from(controller):name(Create treasure) _TREASURE_*5 +auto=@dierolled(this) result(8) from(controller):name(Create treasure) _TREASURE_*5 +auto=@dierolled(this) result(9) from(controller):name(Create treasure) _TREASURE_*5 auto=@dierolled(this) result(10) from(controller):name(Gain life and draw) life:3 controller && draw:3 controller auto=@dierolled(this) result(11) from(controller):name(Gain life and draw) life:3 controller && draw:3 controller auto=@dierolled(this) result(12) from(controller):name(Gain life and draw) life:3 controller && draw:3 controller @@ -110646,7 +110623,7 @@ type=Land [/card] [card] name=Treasure Dredger -auto={1}{T}{L:1}:create(Treasure) +auto={1}{T}{L:1}:_TREASURE_ text={1}, {T}, Pay 1 life: Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{B} type=Creature @@ -110658,7 +110635,7 @@ toughness=2 name=Treasure Map aicode=activate transforms((,newability[all(*[zpos<=type:zombie:mybattlefield]|mylibrary) transforms((,newability[may name(Put on bottom of library) moveto(myreveal) and!( bottomoflibrary )!])) oneshot])) oneshot auto={1}{T}:_SCRY1_ && counter(0/0,1,landmark) -auto=@counteradded(0/0,1,landmark) from(this):this(counter{0/0.3.landmark}=) removeallcounters(0/0.1.landmark) && flip(Treasure Cove) && token(Treasure)*3 +auto=@counteradded(0/0,1,landmark) from(this):this(counter{0/0.3.landmark}=) removeallcounters(0/0.1.landmark) && flip(Treasure Cove) && _TREASURE_*3 text={1}, {T}: Scry 1. Put a landmark counter on Treasure Map. Then if there are three or more landmark counters on it, remove those counters, transform Treasure Map, and create three colorless Treasure artifact tokens with "{T}, Sacrifice this artifact: Add one mana of any color." mana={2} type=Artifact @@ -110677,7 +110654,7 @@ toughness=2 [card] name=Treasure Vault auto={T}:Add{C} -auto={X}{X}{T}{S}:name(Create treasures) token(Treasure)*xx +auto={X}{X}{T}{S}:name(Create treasures) _TREASURE_*xx text={T}: Add {C}. -- {X}{X}, {T}, Sacrifice Treasure Vault: Create X Treasure tokens. type=Artifact Land [/card] @@ -110685,7 +110662,7 @@ type=Artifact Land name=Treebeard, Gracious Host abilities=trample auto=_WARD2_ -auto=name(Create foods) token(Food)*2 +auto=name(Create foods) _FOOD_*2 auto=@lifeof(player) from(*[-lifefaker]|*):name(Put 1/1 counters) target(*[halfling;treefolk]|battlefield) counter(1/1,thatmuch) text=Trample, ward {2} -- When Treebeard, Gracious Host enters, create two Food tokens. -- Whenever you gain life, put that many +1/+1 counters on target Halfling or Treefolk. mana={2}{G}{W} @@ -111069,7 +111046,7 @@ toughness=4 [/card] [card] name=Trove of Temptation -auto=@each my endofturn:token(Treasure) +auto=@each my endofturn:_TREASURE_ text=Each opponent must attack you or a planeswalker you control with at least one creature each combat if able. -- At the beginning of your end step, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={3}{R} type=Enchantment @@ -111399,7 +111376,7 @@ name=Turn into a Pumpkin target=*[-land] auto=moveto(ownerhand) auto=draw:1 controller -auto=if casted(this) then if spent({U}{U}{U}) then token(Food) +auto=if casted(this) then if spent({U}{U}{U}) then _FOOD_ text=Return target nonland permanent to its owner's hand. Draw a card. -- Adamant - If at least three blue mana was spent to cast this spell, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={3}{U} type=Instant @@ -112305,7 +112282,7 @@ autocommandzone=transforms((,newability[shroud],indestructible)) forever autocommandzone=@counteradded(0/0,1,Explore) from(Undercity|mycommandzone) restriction{compare(hascntexplore)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Secret Entrance) name(Secret Entrance) target(land[basic]|mylibrary) moveto(ownerHand)!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Undercity|mycommandzone) restriction{compare(hascntexplore)~equalto~2}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Forge or Lost Well) all(Undercity|mycommandzone) transforms((,newability[if type(creature|battlefield)~morethan~0 then choice name(Forge) name(Forge) all(Undercity|mycommandzone) counter(0/0.1.Forge) && target(creature|battlefield) counter(1/1.2)],newability[choice name(Lost Well) all(Undercity|mycommandzone) counter(0/0.1.LostWell) && _SCRY2_])) oneshot!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Undercity|mycommandzone) restriction{compare(hascntexplore)~equalto~3,compare(hascntforge)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Trap or Arena) name(Trap or Arena) transforms((,newability[choice name(Target player losses 5 life) all(Undercity|mycommandzone) counter(0/0.1.Trap) && target(player) life:-5],newability[if type(creature|battlefield)~morethan~0 then choice name(Goad creature) name(Goad creature) all(Undercity|mycommandzone) counter(0/0.1.Arena) && target(creature|battlefield) _GOAD_])) oneshot!$ controller -autocommandzone=@counteradded(0/0,1,Explore) from(Undercity|mycommandzone) restriction{compare(hascntexplore)~equalto~3,compare(hascntlostwell)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Arena or Stash) name(Arena or Stash) transforms((,newability[choice name(Create treasure) all(Undercity|mycommandzone) counter(0/0.1.Stash) && token(Treasure)],newability[if type(creature|battlefield)~morethan~0 then choice name(Goad creature) name(Goad creature) all(Undercity|mycommandzone) counter(0/0.1.Arena) && target(creature|battlefield) _GOAD_])) oneshot!$ controller +autocommandzone=@counteradded(0/0,1,Explore) from(Undercity|mycommandzone) restriction{compare(hascntexplore)~equalto~3,compare(hascntlostwell)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Arena or Stash) name(Arena or Stash) transforms((,newability[choice name(Create treasure) all(Undercity|mycommandzone) counter(0/0.1.Stash) && _TREASURE_],newability[if type(creature|battlefield)~morethan~0 then choice name(Goad creature) name(Goad creature) all(Undercity|mycommandzone) counter(0/0.1.Arena) && target(creature|battlefield) _GOAD_])) oneshot!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Undercity|mycommandzone) restriction{compare(hascntexplore)~equalto~4,compare(hascnttrap)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Archives) name(Archives) draw:1 controller!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Undercity|mycommandzone) restriction{compare(hascntexplore)~equalto~4,compare(hascntstash)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Catacombs) name(Catacombs) token(Skeleton^Creature Skeleton^4/1^black^menace)!$ controller autocommandzone=@counteradded(0/0,1,Explore) from(Undercity|mycommandzone) restriction{compare(hascntexplore)~equalto~4,compare(hascntarena)~equalto~1}:thisforeach(variable{type:*[twodngtrg]:myBattlefieldplus1plusend}) ability$!name(Archives or Catacombs) name(Archives or Catacombs) transforms((,newability[choice name(Draw a card) draw:1 controller],newability[choice name(Create skeleton) name(Create skeleton) token(Skeleton^Creature Skeleton^4/1^black^menace)])) oneshot!$ controller @@ -112347,7 +112324,7 @@ toughness=3 [/card] [card] name=Undercity Scrounger -auto={T} restriction{morbid}:token(Treasure) +auto={T} restriction{morbid}:_TREASURE_ text={T}: Create a Treasure token. Activate only if a creature died this turn. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{B} type=Artifact Creature @@ -112403,7 +112380,7 @@ toughness=3 [/card] [card] name=Undercover Crocodelf -auto=@combatdamaged(player) from(this):create(Clue) +auto=@combatdamaged(player) from(this):_CLUE_ facedown={3} autofacedown=_WARD2_ autofacedown={3}{GU}{GU}:morph @@ -112633,7 +112610,7 @@ type=Sorcery [card] name=Unexpected Windfall auto=draw:2 controller -auto=token(Treasure)*2 +auto=_TREASURE_*2 text=As an additional cost to cast this spell, discard a card. -- Draw two cards and create two Treasure tokens. (They're artifacts with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R}{R}{D(other *|myhand)} type=Instant @@ -114149,7 +114126,7 @@ toughness=1 [/card] [card] name=Vault Robber -auto={1}{T}:name(Exile creature) target(creature|mygraveyard) moveto(myexile) and!( token(Treasure) )! +auto={1}{T}:name(Exile creature) target(creature|mygraveyard) moveto(myexile) and!( _TREASURE_ )! text={1}, {T}, Exile a creature card from your graveyard: Create a Treasure token. (it's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{R} type=Creature @@ -114350,6 +114327,7 @@ toughness=2 [card] name=Vein Ripper abilities=flying +auto=@targeted(this) from(*|opponentzones):choice name(This spell costs a sacrifice) name(This spell costs a sacrifice) target(*|opponentzones) transforms((,newability[choice name(Counter spell) target(*|mystack) fizzle],newability[if type(creature|myBattlefield)~morethan~0 then choice name(Sacrifice a permanent) name(Sacrifice a permanent) notatarget(creature|mybattlefield) sacrifice])) oneshot auto=@movedTo(creature|graveyard) from(battlefield):life:2 controller auto=@movedTo(creature|graveyard) from(battlefield):target(opponent) life:-2 targetedplayer text=Flying -- Ward-Sacrifice a creature. -- Whenever a creature dies, target opponent loses 2 life and you gain 2 life. @@ -115703,7 +115681,7 @@ type=Enchantment [/card] [card] name=Visions of Ruin -auto=ability$! name(Sacrifice an artifact) name(Sacrifice an artifact) target(artifact|mybattlefield) sacrifice and!( token(Treasure) controller )! !$ opponent +auto=ability$! name(Sacrifice an artifact) name(Sacrifice an artifact) target(artifact|mybattlefield) sacrifice and!( _TREASURE_ controller )! !$ opponent flashback={8}{R}{R} otherrestriction=compare(convertedcost:highest:*[iscommander]:mycommandplay)~equalto~0 auto=if paid(alternative) then all(this|mystack) moveto(myexile) @@ -116183,7 +116161,7 @@ type=Instant [card] name=Volatile Fault auto={T}:Add{C} -auto={1}{T}{S}:target(land[-basic]|opponentBattlefield) destroy && ability$!name(search land) notatarget(land[basic]|mylibrary) moveTo(mybattlefield) and!(tap(noevent))!!$ opponent && create(Treasure) +auto={1}{T}{S}:target(land[-basic]|opponentBattlefield) destroy && ability$!name(search land) notatarget(land[basic]|mylibrary) moveTo(mybattlefield) and!(tap(noevent))!!$ opponent && _TREASURE_ text={T}: Add {C}. -- {1}, {T}, Sacrifice Volatile Fault: Destroy target nonbasic land an opponent controls. That player may search their library for a basic land card, put it onto the battlefield, then shuffle. You create a Treasure token. type=Land subtype=Cave @@ -116460,7 +116438,7 @@ toughness=4 [card] name=Voracious Fell Beast abilities=flying -auto=ability$!name(Sacrifice a creature) name(Sacrifice a creature) notatarget(creature|mybattlefield) sacrifice and!( all(mysource) transforms((,newability[name(Create food) token(Food)])) oneshot )!!$ opponent +auto=ability$!name(Sacrifice a creature) name(Sacrifice a creature) notatarget(creature|mybattlefield) sacrifice and!( all(mysource) transforms((,newability[name(Create food) _FOOD_])) oneshot )!!$ opponent text=Flying -- When Voracious Fell Beast enters, each opponent sacrifices a creature. Create a Food token for each creature sacrificed this way. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={4}{B}{B} type=Creature @@ -117145,7 +117123,7 @@ toughness=2 [/card] [card] name=Wanted Scoundrels -auto=_DIES_token(Treasure)*2 opponent +auto=_DIES__TREASURE_*2 opponent text=When Wanted Scoundrels dies, target opponent creates two colorless Treasure artifact tokens with "{T}, Sacrifice this artifact: Add one mana of any color." mana={1}{B} type=Creature @@ -117484,7 +117462,7 @@ type=Instant [/card] [card] name=Warren Soultrader -auto={L:1}{S(other creature|myBattlefield)}:create(Treasure) +auto={L:1}{S(other creature|myBattlefield)}:_TREASURE_ text=Pay 1 life, Sacrifice another creature: Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{B} type=Creature @@ -117772,7 +117750,7 @@ name=Wavesifter abilities=flying other={G}{U} name(Evoke) auto=if paid(alternative) then sacrifice -auto=name(Create clues) token(Clue)*2 +auto=name(Create clues) _CLUE_*2 text=Flying -- When Wavesifter enters, investigate twice. (To investigate, create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") -- Evoke {G}{U} (You may cast this spell for its evoke cost. If you do, it's sacrificed when it enters.) mana={3}{G}{U} type=Creature @@ -118103,7 +118081,7 @@ name=Welcome to Sweettooth auto=counter(0/0,1,Lore) auto=@each my firstmain:counter(0/0,1,Lore) auto=create(human:creature human:1/1:white) -auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) create(food) +auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) _FOOD_ auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}=) counter(1/1,type:food:mybattlefieldplus1plusend) target(creature|myBattlefield) auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}=) sacrifice(this) text=(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.) -- I - Create a 1/1 white Human creature token. -- II - Create a Food token. -- III - Put X +1/+1 counters on target creature you control, where X is one plus the number of Foods you control. @@ -118797,7 +118775,7 @@ type=Instant [/card] [card] name=Wily Goblin -auto=token(Treasure) +auto=_TREASURE_ text=When Wily Goblin enters, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={R}{R} type=Creature @@ -119267,8 +119245,8 @@ subtype=Swamp [/card] [card] name=Witch's Oven -auto={T}{S(creature[toughness<4]|myBattlefield)}:token(Food) -auto={T}{S(creature[toughness>=4]|myBattlefield)}:token(Food)*2 +auto={T}{S(creature[toughness<4]|myBattlefield)}:_FOOD_ +auto={T}{S(creature[toughness>=4]|myBattlefield)}:_FOOD_*2 text={T}, Sacrifice a creature: Create a Food token. If the sacrificed creature's toughness was 4 or greater, create two Food tokens instead. (They're artifacts with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={1} type=Artifact @@ -119583,7 +119561,7 @@ toughness=2 [card] name=Wojek Investigator abilities=flying,vigilance -auto=@each my upkeep:if type(*|myhand)~lessthan~type(*|opponenthand) then create(Clue) +auto=@each my upkeep:if type(*|myhand)~lessthan~type(*|opponenthand) then _CLUE_ text=Flying, vigilance -- At the beginning of your upkeep, investigate once for each opponent who has more cards in hand than you. (To investigate, create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{W} type=Creature @@ -120275,7 +120253,7 @@ toughness=6 [/card] [card] name=Xorn -auto=@tokencreated(treasure|myBattlefield):token(Treasure,notrigger) +auto=@tokencreated(treasure|myBattlefield):token(Treasure,Treasure Artifact,0/0,notrigger) and!( transforms((,newability[{T}{S}:Add{W}],newability[{T}{S}:Add{U}],newability[{T}{S}:Add{B}],newability[{T}{S}:Add{R}],newability[{T}{S}:Add{G}])) forever )! text=If you would create one or more Treasure tokens, instead create those tokens plus an additional Treasure token. mana={2}{R} type=Creature @@ -120633,8 +120611,8 @@ type=Instant name=You Find a Cursed Idol auto=if type(artifact|battlefield)~morethan~0 then choice name(Destroy artifact) name(Destroy artifact) target(artifact) destroy auto=if type(enchantment|battlefield)~morethan~0 then choice name(Destroy enchantment) name(Destroy enchantment) target(enchantment) destroy -auto=if compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~equalto~0 then choice name(Create treasure) name(Create treasure) token(Treasure) and!( transforms((,newability[if type(*[dungeon]|mycommandzone)~morethan~0 then name(Explore the dungeon) name(Explore the dungeon) all(*[dungeon]|mycommandzone) counter(0/0.1.Explore)],newability[if type(*[dungeon]|mycommandzone)~equalto~0 then name(Choose a new dungeon) name(Choose a new dungeon) target(*[dungeon]|mysideboard) moveTo(mycommandzone) and!( counter(0/0.1.Explore) )!])) oneshot )! -auto=if compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~morethan~0 then name(Create treasure) name(Create treasure) token(Treasure) +auto=if compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~equalto~0 then choice name(Create treasure) name(Create treasure) _TREASURE_ and!( transforms((,newability[if type(*[dungeon]|mycommandzone)~morethan~0 then name(Explore the dungeon) name(Explore the dungeon) all(*[dungeon]|mycommandzone) counter(0/0.1.Explore)],newability[if type(*[dungeon]|mycommandzone)~equalto~0 then name(Choose a new dungeon) name(Choose a new dungeon) target(*[dungeon]|mysideboard) moveTo(mycommandzone) and!( counter(0/0.1.Explore) )!])) oneshot )! +auto=if compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~morethan~0 then name(Create treasure) name(Create treasure) _TREASURE_ text=Choose one -- Smash It - Destroy target artifact. -- Lift the Curse - Destroy target enchantment. -- Steal Its Eyes - Create a Treasure token and venture into the dungeon. (Enter the first room or advance to the next room.) mana={1}{G} type=Sorcery @@ -120715,7 +120693,7 @@ type=Instant [card] name=You've Been Caught Stealing auto=choice name(Threaten the Merchant) all(creature|battlefield) mustblock ueot -auto=choice name(Bribe the Guards) this(opponentdamagecount > 0) create(Treasure) +auto=choice name(Bribe the Guards) this(opponentdamagecount > 0) _TREASURE_ text=Choose one - -- - Threaten the Merchant - Each creature blocks this turn if able. -- - Bribe the Guards - You create a Treasure token for each opponent who was dealt damage this turn. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{R} type=Sorcery @@ -120750,7 +120728,7 @@ name=Young Red Dragon // Bathe in Gold abilities=flying,cantblock,adventure,asflash restriction=can play creature other={1}{R} name(Adventure) -auto=if paid(alternative) then name(Create Treasure) name(Create Treasure) token(Treasure) +auto=if paid(alternative) then name(Create Treasure) name(Create Treasure) _TREASURE_ auto=if paid(alternative) then _ADVENTURE_ text=Flying -- Young Red Dragon can't block. // Create a Treasure token. (Then exile this card. You may cast the creature later from exile.) mana={3}{R} @@ -121245,7 +121223,7 @@ type=Land [/card] [card] name=Zhentarim Bandit -auto=_ATTACKING_pay({L:1}) && token(Treasure) +auto=_ATTACKING_pay({L:1}) && _TREASURE_ text=Whenever Zhentarim Bandit attacks, you may pay 1 life. If you do, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{B} type=Creature @@ -121286,7 +121264,7 @@ subtype=Swamp Mountain Forest [card] name=Ziatora, the Incinerator abilities=flying -auto=@each my endofturn:may notATarget(other creature|mybattlefield) sacrifice && transforms((,newability[damage:power target(anytarget)],newability[token(Treasure)*3])) oneshot +auto=@each my endofturn:may notATarget(other creature|mybattlefield) sacrifice && transforms((,newability[damage:power target(anytarget)],newability[_TREASURE_*3])) oneshot text=Flying -- At the beginning of your end step, you may sacrifice another creature. When you do, Ziatora, the Incinerator deals damage equal to that creature's power to any target and you create three Treasure tokens. mana={3}{B}{R}{G} type=Legendary Creature diff --git a/projects/mtg/bin/Res/sets/primitives/mtg.txt b/projects/mtg/bin/Res/sets/primitives/mtg.txt index 64a386954..38fc52294 100644 --- a/projects/mtg/bin/Res/sets/primitives/mtg.txt +++ b/projects/mtg/bin/Res/sets/primitives/mtg.txt @@ -16066,7 +16066,7 @@ type=Instant [card] name=Bygone Bishop abilities=flying -auto=@movedto(creature[manacost<=3]|mystack):name(Create clue) token(Clue) controller +auto=@movedto(creature[manacost<=3]|mystack):name(Create clue) _CLUE_ controller text=Flying -- Whenever you cast a creature spell with mana value 3 or less, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{W} type=Creature @@ -16076,7 +16076,7 @@ toughness=3 [/card] [card] name=Byway Courier -auto=_DIES_name(Create clue) token(Clue) controller +auto=_DIES_name(Create clue) _CLUE_ controller text=When Byway Courier dies, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{G} type=Creature @@ -21842,7 +21842,7 @@ toughness=1 name=Confirm Suspicions target=*|stack auto=fizzle -auto=name(Create clue) token(Clue)*3 controller +auto=name(Create clue) _CLUE_*3 controller text=Counter target spell. -- Investigate three times. (To investigate, put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={3}{U}{U} type=Instant @@ -21859,7 +21859,7 @@ subtype=Aura [card] name=Confront the Unknown target=creature -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller auto=foreach(clue|mybattlefield) 1/1 text=Investigate, then target creature gets +1/+1 until end of turn for each Clue you control. (To investigate, put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={G} @@ -27528,7 +27528,7 @@ type=Artifact [card] name=Declaration in Stone target=creature -auto=all(*[-token;share!name!]|targetcontrollerbattlefield) moveto(exile) and!( token(Clue) targetcontroller )! +auto=all(*[-token;share!name!]|targetcontrollerbattlefield) moveto(exile) and!( _CLUE_ targetcontroller )! auto=all(*[token;share!name!]|targetcontrollerbattlefield) moveto(exile) text=Exile target creature and all other creatures its controller controls with the same name as that creature. That player investigates for each nontoken creature exiled this way. mana={1}{W} @@ -32570,7 +32570,7 @@ toughness=7 [/card] [card] name=Drownyard Explorers -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=When Drownyard Explorers enters, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={3}{U} type=Creature @@ -34004,7 +34004,7 @@ subtype=Aura [card] name=Edgewalker auto=lord(cleric|mycastingzone) altercost(white,-1) -auto=lord(cleric|mycastingzone) altercost(black, -1) +auto=lord(cleric|mycastingzone) altercost(black,-1) text=Cleric spells you cast cost {W}{B} less to cast. This effect reduces only the amount of colored mana you pay. (For example, if you cast a Cleric spell with mana cost {1}{W}, it costs {1} to cast.) mana={1}{W}{B} type=Creature @@ -36665,7 +36665,7 @@ type=Legendary Enchantment [card] name=Erdwal Illuminator abilities=flying -auto=@movedto(clue|mybattlefield) turnlimited:name(Create clue) token(Clue) +auto=@movedto(clue|mybattlefield) turnlimited:name(Create clue) _CLUE_ text=Flying -- Whenever you investigate for the first time each turn, investigate an additional time. mana={1}{U} type=Creature @@ -37950,7 +37950,7 @@ type=Sorcery [card] name=Expose Evil auto=may tap target(creature) -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=Tap up to two target creatures. -- Investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={1}{W} type=Instant @@ -41729,7 +41729,7 @@ toughness=1 [/card] [card] name=Fleeting Memories -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller auto=@sacrificed(clue|mybattlefield):target(player) deplete:3 text=When Fleeting Memories enters, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you sacrifice a Clue, target player mills three cards. mana={2}{U} @@ -49010,7 +49010,7 @@ toughness=6 name=Gone Missing target=* auto=moveto(ownerlibrary) -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=Put target permanent on top of its owner's library. -- Investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={4}{U} type=Sorcery @@ -56126,7 +56126,7 @@ toughness=1 name=Humble the Brute target=creature[power>3] auto=destroy -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=Destroy target creature with power 4 or greater. -- Investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={4}{W} type=Instant @@ -59772,7 +59772,7 @@ type=Enchantment name=Jace's Scrutiny target=creature auto=-4/-0 -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=Target creature gets -4/-0 until end of turn. -- Investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={1}{U} type=Instant @@ -69881,7 +69881,7 @@ type=Instant [card] name=Magnifying Glass auto={T}:Add{C} -auto={4}{T}:name(Create clue) token(Clue) controller +auto={4}{T}:name(Create clue) _CLUE_ controller text={T}: Add {C}. -- {4}, {T}: Investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={3} type=Artifact @@ -82341,8 +82341,8 @@ toughness=3 [/card] [card] name=Ongoing Investigation -auto=@each combatdamage restriction{opponentdamagedbycombat}:name(Create clue) token(Clue) controller -auto={1}{G}{e(creature|mygraveyard)}:name(Create clue) token(Clue) controller && life:2 +auto=@each combatdamage restriction{opponentdamagedbycombat}:name(Create clue) _CLUE_ controller +auto={1}{G}{e(creature|mygraveyard)}:name(Create clue) _CLUE_ controller && life:2 text=Whenever one or more creatures you control deal combat damage to a player, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") -- {1}{G}, Exile a creature card from your graveyard: Investigate. You gain 2 life. mana={1}{U} type=Enchantment @@ -87767,6 +87767,7 @@ type=Sorcery [card] name=Porphyry Nodes auto=@each my upkeep:bury notatarget(creature[power=power:lowest:creature:battlefield]) +auto=if type(creature|battlefield)~equalto~0 then name(Sacrifice) name(Sacrifice) sacrifice text=At the beginning of your upkeep, destroy the creature with the least power. It can't be regenerated. If two or more creatures are tied for least power, you choose one of them. -- When there are no creatures on the battlefield, sacrifice Porphyry Nodes. mana={W} type=Enchantment @@ -88273,7 +88274,7 @@ type=Sorcery name=Press for Answers target=creature auto=freeze -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=Tap target creature. It doesn't untap during its controller's next untap step. -- Investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={1}{U} type=Sorcery @@ -96689,7 +96690,7 @@ type=Enchantment name=Root Out target=artifact,enchantment auto=destroy -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=Destroy target artifact or enchantment. -- Investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{G} type=Sorcery @@ -116248,7 +116249,7 @@ name=Survive the Night target=creature auto=1/0 auto=indestructible -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=Target creature gets +1/+0 and gains indestructible until end of turn. (Damage and effects that say "destroy" don't destroy it.) -- Investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{W} type=Instant @@ -117744,7 +117745,7 @@ toughness=4 [card] name=Tamiyo's Journal abilities=hiddenface -auto=@each my upkeep:name(Create clue) token(Clue) +auto=@each my upkeep:name(Create clue) _CLUE_ aicode=activate target(*|mylibrary) moveto(ownerHand) auto={T}{S(clue|mybattlefield)}{S(clue|mybattlefield)}{S(clue|mybattlefield)}:name(search card) Reveal:type:*:mylibrary revealzone(mylibrary) optionone name(choose card) target(<1>*|reveal) transforms((,newability[all(other *|reveal) moveto(mylibrary) and!(shuffle)!],newability[moveto(ownerHand)])) optiononeend optiontwo name(shuffle) bottomoflibrary target(<1>*|reveal) and!( all(*|reveal) bottomoflibrary and!(shuffle)! )! optiontwoend revealend text=At the beginning of your upkeep, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") -- {T}, Sacrifice three Clues: Search your library for a card and put that card into your hand. Then shuffle. @@ -120665,7 +120666,7 @@ toughness=2 [/card] [card] name=Thraben Inspector -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller text=When Thraben Inspector enters, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={W} type=Creature @@ -121965,7 +121966,7 @@ toughness=3 [/card] [card] name=Tireless Tracker -auto=_LANDFALL_name(Create clue) token(Clue) controller +auto=_LANDFALL_name(Create clue) _CLUE_ controller auto=@sacrificed(clue|mybattlefield):counter(1/1) text=Whenever a land enters under your control, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you sacrifice a Clue, put a +1/+1 counter on Tireless Tracker. mana={2}{G} @@ -123179,7 +123180,7 @@ type=Instant [/card] [card] name=Trail of Evidence -auto=@movedto(instant,sorcery|mystack):name(Create clue) token(Clue) controller +auto=@movedto(instant,sorcery|mystack):name(Create clue) _CLUE_ controller text=Whenever you cast an instant or sorcery spell, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{U} type=Enchantment @@ -125416,7 +125417,7 @@ toughness=* [/card] [card] name=Ulvenwald Mysteries -auto=@movedto(creature[-token]|mygraveyard):name(Create clue) token(Clue) controller +auto=@movedto(creature[-token]|mygraveyard):name(Create clue) _CLUE_ controller auto=@sacrificed(clue|mybattlefield):token(Human Soldier,creature Human Soldier,1/1,white) text=Whenever a nontoken creature you control dies, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") -- Whenever you sacrifice a Clue, put a 1/1 white Human Soldier creature token onto the battlefield. mana={2}{G} @@ -132968,7 +132969,7 @@ toughness=1 [/card] [card] name=Weirding Wood -auto=name(Create clue) token(Clue) controller +auto=name(Create clue) _CLUE_ controller auto=teach(land) {T}:add{G}{G} auto=teach(land) {T}:add{W}{W} auto=teach(land) {T}:add{U}{U} @@ -134754,7 +134755,7 @@ toughness=3 [/card] [card] name=Wirefly Hive -auto={3}{T}:flipacoin winability token(Wirefly,Artifact Creature Wirefly,2/2,flying) winabilityend loseability loseabilityend oneshot flipend +auto={3}{T}:flipacoin winability token(Wirefly,Artifact Creature Wirefly,2/2,flying) winabilityend loseability sacrifice loseabilityend flipend text={3}, {T}: Flip a coin. If you win the flip, put a 2/2 colorless Insect artifact creature token with flying named Wirefly onto the battlefield. If you lose the flip, destroy all permanents named Wirefly. mana={3} type=Artifact diff --git a/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt b/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt index 5475cc208..bfb4cd35a 100644 --- a/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt +++ b/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt @@ -811,7 +811,7 @@ abilities=canbecommander auto=counter(0/0,5,loyalty) auto={C(0/0,+2,Loyalty)}:target(legendary[creature]) transforms((,vigilance,lifelink,indestructible)) uynt auto={C(0/0,+2,Loyalty)}:name(No target) donothing -auto={C(0/0,-3,Loyalty)}:name(Reveal the top four) reveal:4 optionone name(Select any number of legendary) target(*[legendary]|reveal) moveto(myhand) optiononeend optiontwo name(Put into your graveyard) all(<4>*|reveal) moveto(mygraveyard) and!(token(Treasure))! optiontwoend revealend +auto={C(0/0,-3,Loyalty)}:name(Reveal the top four) reveal:4 optionone name(Select any number of legendary) target(*[legendary]|reveal) moveto(myhand) optiononeend optiontwo name(Put into your graveyard) all(<4>*|reveal) moveto(mygraveyard) and!(_TREASURE_)! optiontwoend revealend auto={C(0/0,-11,Loyalty)}:moveto(myBattlefield) all(*[-land]) && all(*[-land]) transforms((,newability[untap],haste)) ueot text=[+2]: Up to one target legendary creature gains vigilance, lifelink, and indestructible until your next turn. -- [-3]: Reveal the top four cards of your library. Put any number of legendary cards from among them into your hand and the rest into your graveyard. Create a Treasure token for each card put into your graveyard this way. -- [-11]: Gain control of all nonland permanents until end of turn. Untap them. They gain haste until end of turn. -- Dihada, Binder of Wills can be your commander. mana={1}{R}{W}{B} @@ -1252,7 +1252,7 @@ subtype=Gideon name=Gideon, Battle-Forged backside=Kytheon, Hero of Akros auto=counter(0/0,3,loyalty) -auto={C(0/0,2,Loyalty)}:name(+2: Target creature attacks Gideon) target(creature|opponentbattlefield) mustattack uynt +auto={C(0/0,2,Loyalty)}:name(+2: Target creature attacks Gideon) ability$! may target(creature|opponentbattlefield) mustattack uynt !$ controller auto={C(0/0,1,Loyalty)}:name(+1: Target creature is indestructible and untap it) target(creature) transforms((,newability[untap],indestructible)) uynt auto={C(0/0,0,Loyalty)}:name(+0: Transforms Gideon into a 4/4 Human Indestructible) transforms((Human Soldier Creature,setpower=4,settoughness=4,indestructible,newability[preventAllDamage to(this)])) ueot text=+2: Up to one target creature an opponent controls attacks Gideon, Battle-Forged during its controller's next turn if able. -- +1: Until your next turn, target creature gains indestructible. Untap that creature. -- 0: Until end of turn, Gideon, Battle-Forged becomes a 4/4 Human Soldier creature with indestructible that's still a planeswalker. Prevent all damage that would be dealt to him this turn. // Kytheon, Hero of Akros @@ -1592,7 +1592,7 @@ auto=counter(0/0,5,loyalty) auto={C(0/0,+1,Loyalty)}:create(Kavu:Creature Kavu:3/3:trample:white:blue:black:red:green) auto={C(0/0,-3,Loyalty)}:name(counters equal to number of colors) target(creature) transforms((,newability[counter(1/1.mycolnum)])) auto={C(0/0,-6,Loyalty)}:moveTo(ownerhand) target(*[multicolor]|mygraveyard) -auto={C(0/0,-6,Loyalty)}:name(Return card that's all colors) moveTo(ownerhand) target(*[white&blue&black&red&green]|mygraveyard) && draw:1 && token(Treasure)*2 +auto={C(0/0,-6,Loyalty)}:name(Return card that's all colors) moveTo(ownerhand) target(*[white&blue&black&red&green]|mygraveyard) && draw:1 && _TREASURE_*2 text=[+1]: Create a 3/3 Kavu creature token with trample that's all colors. -- [-3]: Choose up to two target creatures. For each of them, put a number of +1/+1 counters on it equal to the number of colors it is. -- [-6]: Return target multicolored card from your graveyard to your hand. If that card was all colors, draw a card and create two Treasure tokens. -- Jared Carthalion can be your commander. mana={W}{U}{B}{R}{G} type=Legendary Planeswalker @@ -2631,7 +2631,7 @@ subtype=Oko [card] name=Oko, Thief of Crowns auto=counter(0/0,4,loyalty) -auto={C(0/0,2,Loyalty)}:name(+2: Create food) token(Food) +auto={C(0/0,2,Loyalty)}:name(+2: Create food) _FOOD_ auto={C(0/0,1,Loyalty)}:name(+1: Transform artifact or creature) target(*[creature;artifact]|battlefield) transforms((Creature Elk,newcolors[green],setpower=3,settoughness=3,newability[loseabilities])) forever auto={C(0/0,-5,Loyalty)}:name(-5: Exchange control) target(*[creature;artifact]|mybattlefield) moveto(opponentbattlefield) and!( target(other creature[power<=3]|opponentbattlefield) moveto(mybattlefield) )! text=+2: Create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- +1: Target artifact or creature loses all abilities and becomes a green Elk creature with base power and toughness 3/3. -- -5: Exchange control of target artifact or creature you control and target creature an opponent controls with power 3 or less. @@ -3728,7 +3728,7 @@ subtype=Vraska name=Vraska, Relic Seeker auto=counter(0/0,6,loyalty) auto={C(0/0,2,Loyalty)}:name(+2: Create a 2/2 Pirate with Menace) token(Pirate,creature Pirate,2/2,black,menace) -auto={C(0/0,-3,Loyalty)}:name(-3: Destroy target artifact, creature or enchantment and create a Treasure) destroy target(enchantment,artifact,creature) && token(TreasureArtifactToken) +auto={C(0/0,-3,Loyalty)}:name(-3: Destroy target artifact, creature or enchantment and create a Treasure) destroy target(*[artifact;creature;enchantment]) && _TREASURE_ auto={C(0/0,-10,Loyalty)}:name(-10: life total becomes 1.) lifeset:1 opponent text=+2: Create a 2/2 black Pirate creature token with menace. -- -3: Destroy target artifact, creature, or enchantment. Create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." -- -10: Target player's life total becomes 1. mana={4}{B}{G}