diff --git a/projects/mtg/bin/Res/missing_cards_by_sets/OGW.txt b/projects/mtg/bin/Res/missing_cards_by_sets/OGW.txt index f6ad4f094..4b1cee149 100644 --- a/projects/mtg/bin/Res/missing_cards_by_sets/OGW.txt +++ b/projects/mtg/bin/Res/missing_cards_by_sets/OGW.txt @@ -68,12 +68,6 @@ mana={4}{G} type=Sorcery [/card] [card] -name=Oath of Nissa -text=When Oath of Nissa enters the battlefield, look at the top three cards of your library. You may reveal a creature, land, or planeswalker card from among them and put it into your hand. Put the rest on the bottom of your library in any order. -- You may spend mana as though it were mana of any color to cast planeswalker spells. -mana={G} -type=Legendary Enchantment -[/card] -[card] name=Reality Smasher text=({C} represents colorless mana.) -- Trample, haste -- Whenever Reality Smasher becomes the target of a spell an opponent controls, counter that spell unless its controller discards a card. mana={4}{C} diff --git a/projects/mtg/bin/Res/sets/primitives/mtg.txt b/projects/mtg/bin/Res/sets/primitives/mtg.txt index 531ecb07f..de29caf15 100644 --- a/projects/mtg/bin/Res/sets/primitives/mtg.txt +++ b/projects/mtg/bin/Res/sets/primitives/mtg.txt @@ -140,7 +140,7 @@ toughness=5 [card] name=Abolish target=artifact,enchantment -other={discard(plains|myhand)} name(Discard a Plains) +other={D(plains|myhand)} name(Discard a Plains) auto=destroy text=You may discard a Plains card rather than pay Abolish's mana cost. -- Destroy target artifact or enchantment. mana={1}{W}{W} @@ -888,7 +888,7 @@ toughness=2 [card] name=Advanced Stitchwing abilities=flying -autograveyard={2}{u}{discard(*|myhand)}{discard(*|myhand)}:moveTo(mybattlefield) and!(tap(noevent))! +autograveyard={2}{u}{D(*|myhand)}{D(*|myhand)}:moveTo(mybattlefield) and!(tap(noevent))! text=Flying -- {2}{U}, Discard two cards: Return Advanced Stitchwing from your graveyard to the battlefield tapped. mana={3}{U}{U} type=Creature @@ -2360,23 +2360,23 @@ toughness=3 [/card] [card] name=Alexi, Zephyr Mage -auto={X}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 0) donothing -auto={1}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 1) target(creature) moveTo(ownerhand) -auto={2}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 2) target(<2>creature) moveTo(ownerhand) -auto={3}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 3) target(<3>creature) moveTo(ownerhand) -auto={4}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 4) target(<4>creature) moveTo(ownerhand) -auto={5}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 5) target(<5>creature) moveTo(ownerhand) -auto={6}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 6) target(<6>creature) moveTo(ownerhand) -auto={7}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 7) target(<7>creature) moveTo(ownerhand) -auto={8}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 8) target(<8>creature) moveTo(ownerhand) -auto={9}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 9) target(<9>creature) moveTo(ownerhand) -auto={10}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 10) target(<10>creature) moveTo(ownerhand) -auto={11}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 11) target(<11>creature) moveTo(ownerhand) -auto={12}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 12) target(<12>creature) moveTo(ownerhand) -auto={13}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 13) target(<13>creature) moveTo(ownerhand) -auto={14}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 14) target(<14>creature) moveTo(ownerhand) -auto={15}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 15) target(<15>creature) moveTo(ownerhand) -auto={16}{U}{T}{discard(*|myhand)}{discard(*|myhand)}:name(X = 16) target(<16>creature) moveTo(ownerhand) +auto={X}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 0) donothing +auto={1}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 1) target(creature) moveTo(ownerhand) +auto={2}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 2) target(<2>creature) moveTo(ownerhand) +auto={3}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 3) target(<3>creature) moveTo(ownerhand) +auto={4}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 4) target(<4>creature) moveTo(ownerhand) +auto={5}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 5) target(<5>creature) moveTo(ownerhand) +auto={6}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 6) target(<6>creature) moveTo(ownerhand) +auto={7}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 7) target(<7>creature) moveTo(ownerhand) +auto={8}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 8) target(<8>creature) moveTo(ownerhand) +auto={9}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 9) target(<9>creature) moveTo(ownerhand) +auto={10}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 10) target(<10>creature) moveTo(ownerhand) +auto={11}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 11) target(<11>creature) moveTo(ownerhand) +auto={12}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 12) target(<12>creature) moveTo(ownerhand) +auto={13}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 13) target(<13>creature) moveTo(ownerhand) +auto={14}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 14) target(<14>creature) moveTo(ownerhand) +auto={15}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 15) target(<15>creature) moveTo(ownerhand) +auto={16}{U}{T}{D(*|myhand)}{D(*|myhand)}:name(X = 16) target(<16>creature) moveTo(ownerhand) text={X}{U}, {T}, Discard two cards: Return X target creatures to their owners' hands. mana={3}{U}{U} type=Legendary Creature @@ -2927,7 +2927,7 @@ toughness=2 [card] name=Amugaba abilities=flying -auto={2}{U}{discard(*|myhand)}:moveTo(ownerhand) +auto={2}{U}{D(*|myhand)}:moveTo(ownerhand) text=Flying -- {2}{U}, Discard a card: Return Amugaba to its owner's hand. mana={5}{U}{U} type=Creature @@ -4055,7 +4055,7 @@ toughness=2 [/card] [card] name=Anurid Brushhopper -auto={discard(*|myhand)}{discard(*|myhand)}:(blink)ueot +auto={D(*|myhand)}{D(*|myhand)}:(blink)ueot text=Discard two cards: Exile Anurid Brushhopper. Return it to the battlefield under its owner's control at the beginning of the next end step. mana={1}{G}{W} type=Creature @@ -4310,7 +4310,7 @@ toughness=1 [/card] [card] name=Aquamoeba -auto={discard(*|myhand)}:swap +auto={D(*|myhand)}:swap text=Discard a card: Switch Aquamoeba's power and toughness until end of turn. mana={1}{U} type=Creature @@ -4520,7 +4520,7 @@ type=Sorcery [/card] [card] name=Arc Mage -auto={2}{R}{T}{discard(*|myhand)}:damage:1 target(creature,player) && activate damage:1 target(creature,player) +auto={2}{R}{T}{D(*|myhand)}:damage:1 target(creature,player) && activate damage:1 target(creature,player) text={2}{R}, {T}, Discard a card: Arc Mage deals 2 damage divided as you choose among one or two target creatures and/or players. mana={2}{R} type=Creature @@ -5798,7 +5798,7 @@ subtype=Aura [/card] [card] name=Artificer's Intuition -auto={U}{discard(artifact|myhand)}:moveTo(myhand) target(artifact[manacost<=1]|mylibrary) +auto={U}{D(artifact|myhand)}:moveTo(myhand) target(artifact[manacost<=1]|mylibrary) text={U}, Discard an artifact card: Search your library for an artifact card with converted mana cost 1 or less, reveal that card, and put it into your hand. Then shuffle your library. mana={1}{U} type=Enchantment @@ -7335,7 +7335,7 @@ toughness=* [card] name=Aven Trooper abilities=flying -auto={2}{W}{discard(*|myHand)}:1/2 +auto={2}{W}{D(*|myHand)}:1/2 text=Flying -- {2}{W}, Discard a card: Aven Trooper gets +1/+2 until end of turn. mana={3}{W} type=Creature @@ -7375,7 +7375,7 @@ toughness=3 [/card] [card] name=Avenger en-Dal -auto={2}{W}{T}{discard(*|myhand)}:target(creature[attacking]) dynamicability moveTo(exile) +auto={2}{W}{T}{D(*|myhand)}:target(creature[attacking]) dynamicability moveTo(exile) text={2}{W}, {T}, Discard a card: Exile target attacking creature. Its controller gains life equal to its toughness. mana={1}{W} type=Creature @@ -8104,7 +8104,7 @@ toughness=2 [/card] [card] name=Balloon Peddler -auto={U}{T}{discard(*|myhand)}:flying target(creature) +auto={U}{T}{D(*|myhand)}:flying target(creature) text={U}, {T}, Discard a card: Target creature gains flying until end of turn. mana={2}{U} type=Creature @@ -8217,7 +8217,7 @@ toughness=2 [card] name=Balshan Griffin abilities=flying -auto={1}{U}{discard(*|myhand)}:moveTo(hand) +auto={1}{U}{D(*|myhand)}:moveTo(hand) text=Flying -- {1}{U}, Discard a card: Return Balshan Griffin to its owner's hand. mana={3}{U}{U} type=Creature @@ -8852,7 +8852,7 @@ type=Sorcery [card] name=Baru, Fist of Krosa auto=@movedto(forest|battlefield):all(creature[green]|mybattlefield) +1/+1 ueot && all(creature[green]|mybattlefield) trample ueot -auto={discard(other *[share!name!]|myhand)}:token(Wurm,creature Wurm,type:land:mybattlefield/type:land:mybattlefield,green) controller +auto={D(other *[share!name!]|myhand)}:token(Wurm,creature Wurm,type:land:mybattlefield/type:land:mybattlefield,green) controller text=Whenever a Forest enters the battlefield, green creatures you control get +1/+1 and gain trample until end of turn. -- Grandeur - Discard another card named Baru, Fist of Krosa: Put an X/X green Wurm creature token onto the battlefield, where X is the number of lands you control. mana={3}{G}{G} type=Legendary Creature @@ -10741,7 +10741,7 @@ type=Land [/card] [card] name=Blaster Mage -auto={R}{T}{discard(*|myhand)}:destroy target(wall) +auto={R}{T}{D(*|myhand)}:destroy target(wall) text={R}, {T}, Discard a card: Destroy target Wall. mana={2}{R} type=Creature @@ -12553,7 +12553,7 @@ toughness=2 [/card] [card] name=Bog Witch -auto={B}{T}{discard(*|myhand)}:Add{B}{B}{B} +auto={B}{T}{D(*|myhand)}:Add{B}{B}{B} text={B}, {T}, Discard a card: Add {B}{B}{B} to your mana pool. mana={2}{B} type=Creature @@ -12804,7 +12804,7 @@ toughness=1 [/card] [card] name=Bola Warrior -auto={R}{T}{discard(*|myhand)}:cantblock target(creature) +auto={R}{T}{D(*|myhand)}:cantblock target(creature) text={R}, {T}, Discard a card: Target creature can't block this turn. mana={1}{R} type=Creature @@ -13152,7 +13152,7 @@ toughness=4 [/card] [card] name=Borborygmos Enraged -auto={discard(land|myhand)}:target(creature,player) damage:3 +auto={D(land|myhand)}:target(creature,player) damage:3 auto=@combatdamaged(player) from(this):reveal:3 optionone name(Reveal) target(<3>land|reveal) moveto(myhand) optiononeend optiontwo name(Send To Grave) choice all(*|reveal) moveto(mygraveyard) optiontwoend revealend text=Trample -- Whenever Borborygmos Enraged deals combat damage to a player, reveal the top three cards of your library. Put all land cards revealed this way into your hand and the rest into your graveyard. -- Discard a land card: Borborygmos Enraged deals 3 damage to target creature or player. mana={4}{R}{R}{G}{G} @@ -15532,7 +15532,7 @@ toughness=2 [/card] [card] name=Cackling Witch -auto={X}{B}{T}{discard(*|myhand)}:thisforeach(X) 1/0 target(creature) +auto={X}{B}{T}{D(*|myhand)}:thisforeach(X) 1/0 target(creature) text={X}{B}, {T}, Discard a card: Target creature gets +X/+0 until end of turn. mana={1}{B} type=Creature @@ -15719,7 +15719,7 @@ type=Enchantment [/card] [card] name=Call the Bloodline -auto={1}{discard(*|myhand)}:token(Vampire Knight,creature Vampire Knight,1/1,black,lifelink) limit:1 +auto={1}{D(*|myhand)}:token(Vampire Knight,creature Vampire Knight,1/1,black,lifelink) limit:1 text={1}, Discard a card: Put a 1/1 black Vampire Knight creature token with lifelink onto the battlefield. Activate this ability only once each turn. mana={1}{B} type=Enchantment @@ -17373,7 +17373,7 @@ toughness=1 [card] name=Centaur Veteran abilities=trample -auto={G}{discard(*|myhand)}:regenerate +auto={G}{D(*|myhand)}:regenerate text=Trample -- {G}, Discard a card: Regenerate Centaur Veteran. mana={5}{G} type=Creature @@ -17467,7 +17467,7 @@ toughness=1 [/card] [card] name=Cephalid Inkshrouder -auto={discard(*|myHand)}:shroud && unblockable +auto={D(*|myHand)}:shroud && unblockable text=Discard a card: Cephalid Inkshrouder gains shroud until end of turn and is unblockable this turn. (A permanent with shroud can't be the target of spells or abilities.) mana={2}{U} type=Creature @@ -20131,7 +20131,7 @@ toughness=1 [card] name=Cloudseeder abilities=flying -auto={U}{T}{discard(*|myhand)}:token(Cloud Sprite,creature faerie, 1/1,flying,cloud blue) +auto={U}{T}{D(*|myhand)}:token(Cloud Sprite,creature faerie, 1/1,flying,cloud blue) text=Flying -- {U}, {T}, Discard a card: Put a 1/1 blue Faerie creature token named Cloud Sprite onto the battlefield. It has flying and "Cloud Sprite can block only creatures with flying." mana={1}{U} type=Creature @@ -20795,7 +20795,7 @@ type=Enchantment [/card] [card] name=Compulsion -auto={1}{U}{discard(*|myhand)}:draw:1 controller +auto={1}{U}{D(*|myhand)}:draw:1 controller auto={1}{U}{S}:draw:1 controller text={1}{U}, Discard a card: Draw a card. -- {1}{U}, Sacrifice Compulsion: Draw a card. mana={1}{U} @@ -21629,7 +21629,7 @@ toughness=1 [card] name=Coral Net target=creature[green;white] -auto=teach(creature) upcost[{discard(*|myhand)}] sacrifice +auto=teach(creature) upcost[{D(*|myhand)}] sacrifice text=Enchant green or white creature -- Enchanted creature has "At the beginning of your upkeep, sacrifice this creature unless you discard a card." mana={U} type=Enchantment @@ -22369,7 +22369,7 @@ type=Instant [/card] [card] name=Crashing Centaur -auto={G}{discard(*|myhand)}:trample +auto={G}{D(*|myhand)}:trample auto=aslongas(*|mygraveyard) 2/2 >6 auto=aslongas(*|mygraveyard) shroud >6 text={G}, Discard a card: Crashing Centaur gains trample until end of turn. -- Threshold - As long as seven or more cards are in your graveyard, Crashing Centaur gets +2/+2 and has shroud. (It can't be the target of spells or abilities.) @@ -23485,7 +23485,7 @@ toughness=0 [/card] [card] name=Cryptbreaker -auto={b}{1}{T}{discard(*|myhand)}:token(Zombie,Creature Zombie,2/2,black) +auto={b}{1}{T}{D(*|myhand)}:token(Zombie,Creature Zombie,2/2,black) auto={T(creature[Zombie]|myBattlefield)}{T(creature[Zombie]|myBattlefield)}{T(creature[Zombie]|myBattlefield)}:draw:1 controller && life:-1 controller text={1}{B}, {T}, Discard a card: Put a 2/2 black Zombie creature token onto the battlefield. -- Tap three untapped Zombies you control: You draw a card and you lose 1 life. mana={B} @@ -23496,7 +23496,7 @@ toughness=1 [/card] [card] name=Cryptic Cruiser -auto={2}{u}{discard(*|opponentexile)}:tap target(creature) +auto={2}{u}{D(*|opponentexile)}:tap target(creature) text=Devoid (This card has no color.) -- {2}{U}, Put a card an opponent owns from exile into that player's graveyard: Tap target creature. mana={3}{U} type=Creature @@ -24623,10 +24623,10 @@ type=Instant name=Dark Deal auto=count(type:*:myhand) auto=all(*|myhand) reject -auto=draw:countedamountplus1plusend controller +auto=draw:countedamountminus1minusend controller auto=count(type:*:opponenthand) auto=all(*|opponenthand) reject -auto=draw:countedamountplus1plusend opponent +auto=draw:countedamountminus1minusend opponent text=Each player discards all the cards in his or her hand, then draws that many cards minus one. mana={2}{B} type=Sorcery @@ -25459,7 +25459,7 @@ subtype=Aura [/card] [card] name=Dawnstrider -auto={G}{T}{discard(*|myhand)}:fog oneshot +auto={G}{T}{D(*|myhand)}:fog oneshot text={G}, {T}, Discard a card: Prevent all combat damage that would be dealt this turn. mana={1}{G} type=Creature @@ -26476,7 +26476,7 @@ type=Instant [card] name=Deepcavern Imp abilities=flying,haste -auto=upcost[{discard(*|myhand)};next upkeep] sacrifice +auto=upcost[{D(*|myhand)};next upkeep] sacrifice text=Flying, haste -- Echo - Discard a card. (At the beginning of your upkeep, if this came under your control since the beginning of your last upkeep, sacrifice it unless you pay its echo cost.) mana={2}{B} type=Creature @@ -26598,7 +26598,7 @@ toughness=1 [/card] [card] name=Deepwood Drummer -auto={G}{T}{discard(*|myhand)}:2/2 target(creature) +auto={G}{T}{D(*|myhand)}:2/2 target(creature) text={G}, {T}, Discard a card: Target creature gets +2/+2 until end of turn. mana={1}{G} type=Creature @@ -27080,7 +27080,7 @@ subtype=Aura name=Demonic Collusion target=*|mylibrary auto=moveTo(myhand) -buyback={3}{B}{B}{discard(*|myhand)}{discard(*|myhand)} +buyback={3}{B}{B}{D(*|myhand)}{D(*|myhand)} text=Buyback - Discard two cards. (You may discard two cards in addition to any other costs as you cast this spell. If you do, put this card into your hand as it resolves.) -- Search your library for a card and put that card into your hand. Then shuffle your library. mana={3}{B}{B} type=Sorcery @@ -27963,7 +27963,7 @@ toughness=1 [/card] [card] name=Devout Witness -auto={W}{T}{discard(*|myhand)}:destroy target(artifact,enchantment) +auto={W}{T}{D(*|myhand)}:destroy target(artifact,enchantment) text={1}{W}, {T}, Discard a card: Destroy target artifact or enchantment. mana={2}{W} type=Creature @@ -28411,7 +28411,7 @@ toughness=3 [/card] [card] name=Dirty Wererat -auto={B}{discard(*|myhand)}:regenerate +auto={B}{D(*|myhand)}:regenerate auto=aslongas(*|mygraveyard) 2/2 >6 auto=aslongas(*|mygraveyard) cantblock >6 text={B}, Discard a card: Regenerate Dirty Wererat. -- Threshold - As long as seven or more cards are in your graveyard, Dirty Wererat gets +2/+2 and can't block. @@ -30184,7 +30184,7 @@ type=Enchantment [/card] [card] name=Dralnu's Pet -other={3}{B}{U}{U}{discard(other creature|myhand)} name(Kicker) +other={3}{B}{U}{U}{D(other creature|myhand)} name(Kicker) auto=if paid(alternative) then counter(1/1,storedmanacost) && transforms((,flying)) forever text=Kicker - {2}{B}, Discard a creature card. (You may pay {2}{B} and discard a creature card in addition to any other costs as you cast this spell.) -- If Dralnu's Pet was kicked, it enters the battlefield with flying and with X +1/+1 counters on it, where X is the discarded card's converted mana cost. mana={1}{U}{U} @@ -31798,8 +31798,8 @@ toughness=2 [/card] [card] name=Dwarven Armorer -auto={R}{T}{discard(*|myhand)}:counter(0/1,1) target(creature) -auto={R}{T}{discard(*|myhand)}:counter(1/0,1) target(creature) +auto={R}{T}{D(*|myhand)}:counter(0/1,1) target(creature) +auto={R}{T}{D(*|myhand)}:counter(1/0,1) target(creature) text={R}, {T}, Discard a card: Put a +0/+1 counter or a +1/+0 counter on target creature. mana={R} type=Creature @@ -32157,7 +32157,7 @@ type=Enchantment [card] name=Earsplitting Rats auto=name(discard) transforms((,newability[ability$!name(discard) notatarget(*|myhand) reject!$ controller],newability[ability$!name(discard) notatarget(*|myhand) reject!$ opponent])) ueot -auto={discard(*|myhand)}:regenerate +auto={D(*|myhand)}:regenerate text=When Earsplitting Rats enters the battlefield, each player discards a card. -- Discard a card: Regenerate Earsplitting Rats. mana={3}{B} type=Creature @@ -33347,7 +33347,7 @@ toughness=3 [/card] [card] name=Elusive Tormentor -auto={1}{discard(*|myhand)}:flip(Insidious Mist) +auto={1}{D(*|myhand)}:flip(Insidious Mist) text={1}, Discard a card: Transform Elusive Tormentor. mana={2}{B}{B} type=Creature @@ -34998,7 +34998,7 @@ type=Instant [card] name=Ephemeron abilities=flying -auto={discard(*|myhand)}:moveTo(myhand) +auto={D(*|myhand)}:moveTo(myhand) text=Flying -- Discard a card: Return Ephemeron to its owner's hand. mana={4}{U}{U} type=Creature @@ -35045,7 +35045,7 @@ type=Sorcery [card] name=Epiphany Storm target=creature -auto=teach(creature) {R}{T}{discard(*|myhand)}:draw:1 controller +auto=teach(creature) {R}{T}{D(*|myhand)}:draw:1 controller text=Enchant creature -- Enchanted creature has "Red, Tap, Discard a card: Draw a card." mana={R} type=Enchantment @@ -35156,7 +35156,7 @@ toughness=7 name=Erebos's Emissary auto=bestow bstw auto=bestow teach(creature) +3/+3 -auto={discard(*|myhand)}:+2/+2 ueot +auto={D(*|myhand)}:+2/+2 ueot bestow={5}{b} text=Bestow {5}{B} (If you cast this card for its bestow cost, it's an Aura spell with enchant creature. It becomes a creature again if it's not attached to a creature.) -- Discard a creature card: Erebos's Emissary gets +2/+2 until end of turn. If Erebos's Emissary is an Aura, enchanted creature gets +2/+2 until end of turn instead. -- Enchanted creature gets +3/+3. mana={3}{B} @@ -35309,7 +35309,7 @@ toughness=4 [card] name=Escape Artist abilities=unblockable -auto={U}{discard(*|myhand)}:moveTo(ownerhand) +auto={U}{D(*|myhand)}:moveTo(ownerhand) text=Escape Artist is unblockable. -- {U}, Discard a card: Return Escape Artist to its owner's hand. mana={1}{U} type=Creature @@ -36758,7 +36758,7 @@ type=Sorcery [/card] [card] name=Face of Fear -auto={2}{B}{discard(*|myhand)}:fear +auto={2}{B}{D(*|myhand)}:fear text={2}{B}, Discard a card: Face of Fear gains fear until end of turn. (It can't be blocked except by artifact creatures and/or black creatures.) mana={5}{B} type=Creature @@ -37711,7 +37711,7 @@ toughness=4 [/card] [card] name=Fauna Shaman -auto={G}{T}{discard(creature|myhand)}:moveTo(myhand) target(creature|myLibrary) +auto={G}{T}{D(creature|myhand)}:moveTo(myhand) target(creature|myLibrary) text={G},{T}, Discard a creature card: Search your library for a creature card, reveal that card, and put it into your hand. Then shuffle your library. mana={1}{G} type=Creature @@ -39089,7 +39089,7 @@ toughness=1 [/card] [card] name=Firefright Mage -auto={1}{R}{T}{discard(*|myhand)}:target(creature) transforms((,newability[cantbeblockedby(-artfiact;-red)])) ueot +auto={1}{R}{T}{D(*|myhand)}:target(creature) transforms((,newability[cantbeblockedby(-artfiact;-red)])) ueot text={1}{R}, {T}, Discard a card: Target creature can't be blocked this turn except by artifact creatures and/or red creatures. mana={R} type=Creature @@ -39876,7 +39876,7 @@ toughness=2 [/card] [card] name=Fledgling Imp -auto={B}{discard(*|myhand)}:flying +auto={B}{D(*|myhand)}:flying text={B}, Discard a card: Fledgling Imp gains flying until end of turn. mana={2}{B} type=Creature @@ -40073,7 +40073,7 @@ toughness=2 [/card] [card] name=Fleshgrafter -auto={discard(artifact|myhand)}:2/2 +auto={D(artifact|myhand)}:2/2 text=Discard an artifact card: Fleshgrafter gets +2/+2 until end of turn. mana={2}{B} type=Creature @@ -40416,7 +40416,7 @@ subtype=Aura [/card] [card] name=Flowstone Channeler -auto={1}{R}{T}{discard(*|myhand)}:1/-1 && haste target(creature) +auto={1}{R}{T}{D(*|myhand)}:1/-1 && haste target(creature) text={1}{R}, {T}, Discard a card: Target creature gets +1/-1 and gains haste until end of turn. mana={2}{R} type=Creature @@ -40506,10 +40506,10 @@ toughness=4 [/card] [card] name=Flowstone Sculpture -auto={2}{discard(*|myhand)}:counter(1/1,1) -auto={2}{discard(*|myhand)}:name(flying) transforms((,flying)) forever -auto={2}{discard(*|myhand)}:name(first strike) transforms((,first strike)) forever -auto={2}{discard(*|myhand)}:name(trample) transforms((,trample)) forever +auto={2}{D(*|myhand)}:counter(1/1,1) +auto={2}{D(*|myhand)}:name(flying) transforms((,flying)) forever +auto={2}{D(*|myhand)}:name(first strike) transforms((,first strike)) forever +auto={2}{D(*|myhand)}:name(trample) transforms((,trample)) forever text={2}, Discard a card: Put a +1/+1 counter on Flowstone Sculpture or Flowstone Sculpture gains flying, first strike, or trample. (This effect lasts indefinitely.) mana={6} type=Artifact Creature @@ -40717,7 +40717,7 @@ toughness=3 name=Foil target=*|stack auto=fizzle -other={discard(island|myhand)}{discard(other *|myhand)} name(Discard an Island and Another Card) +other={D(island|myhand)}{D(other *|myhand)} name(Discard an Island and Another Card) text=You may discard an Island card and another card rather than pay Foil's mana cost. -- Counter target spell. mana={2}{U}{U} type=Instant @@ -40933,7 +40933,7 @@ type=Land name=Forbid target=*|stack auto=fizzle -buyback={1}{U}{U}{discard(*|myhand)}{discard(*|myhand)} +buyback={1}{U}{U}{D(*|myhand)}{D(*|myhand)} text=Buyback - Discard two cards. (You may discard two cards in addition to any other costs as you cast this spell. If you do, put this card into your hand as it resolves.) -- Counter target spell. mana={1}{U}{U} type=Instant @@ -42961,7 +42961,7 @@ toughness=1 [card] name=Gathan Raiders facedown={3} -autofacedown={discard(*|myhand)}:morph +autofacedown={D(*|myhand)}:morph auto=aslongas(*|myhand) 2/2 <1 text=Hellbent - Gathan Raiders gets +2/+2 if you have no cards in hand. -- Morph - Discard a card. (You may cast this face down as a 2/2 creature for {3}. Turn it face up any time for its morph cost.) mana={3}{R}{R} @@ -43506,7 +43506,7 @@ type=Land name=Geralf's Masterpiece abilities=flying auto=foreach(*|myhand) -1/-1 -autograveyard={3}{U}{discard(*|myhand)}{discard(*|myhand)}{discard(*|myhand)}:moveto(myhand) and!(tap(noevent))! +autograveyard={3}{U}{D(*|myhand)}{D(*|myhand)}{D(*|myhand)}:moveto(myhand) and!(tap(noevent))! text=Flying -- Geralf's Masterpiece gets -1/-1 for each card in your hand. -- {3}{U}, Discard three cards: Return Geralf's Masterpiece from your graveyard to the battlefield tapped. mana={3}{U}{U} type=Creature @@ -43858,7 +43858,7 @@ toughness=4 [/card] [card] name=Ghost Tactician -auto={W}{T}{discard(*|myhand)}:lord(creature|mybattlefield) 1/0 +auto={W}{T}{D(*|myhand)}:lord(creature|mybattlefield) 1/0 text={W}, {T}, Discard a card: Creatures you control get +1/+0 until end of turn. mana={4}{W} type=Creature @@ -44059,7 +44059,7 @@ name=Ghostly Wings target=creature auto=1/1 auto=flying -auto={discard(*|myhand)}:teach(creature) moveTo(ownerhand) +auto={D(*|myhand)}:teach(creature) moveTo(ownerhand) text=Enchant creature -- Enchanted creature gets +1/+1 and has flying. -- Discard a card: Return enchanted creature to its owner's hand. mana={1}{U} type=Enchantment @@ -44147,7 +44147,7 @@ type=Instant [/card] [card] name=Ghoulsteed -auto={2}{B}{discard(*|myhand)}{discard(*|myhand)}:moveto(mybattlefield) and!(tap(noevent))! +auto={2}{B}{D(*|myhand)}{D(*|myhand)}:moveto(mybattlefield) and!(tap(noevent))! text={2}{B}, Discard two cards: Return Ghoulsteed from your graveyard to the battlefield tapped. mana={4}{B} type=Creature @@ -44571,7 +44571,7 @@ toughness=0 [card] name=Gigapede abilities=shroud -autograveyard={discard(*|myhand)}:moveTo(myhand) myUpkeepOnly +autograveyard={D(*|myhand)}:moveTo(myhand) myUpkeepOnly text=Shroud (This permanent can't be the target of spells or abilities.) -- At the beginning of your upkeep, if Gigapede is in your graveyard, you may discard a card. If you do, return Gigapede to your hand. mana={3}{G}{G} type=Creature @@ -45048,7 +45048,7 @@ toughness=2 [card] name=Glint-Eye Nephilim auto=@combatdamaged(player) from(this):draw:thatmuch controller -auto={1}{discard(*|myhand)}:1/1 +auto={1}{D(*|myhand)}:1/1 text=Whenever Glint-Eye Nephilim deals combat damage to a player, draw that many cards. -- {1}, Discard a card: Glint-Eye Nephilim gets +1/+1 until end of turn. mana={U}{B}{R}{G} type=Creature @@ -46753,7 +46753,7 @@ toughness=1 [/card] [card] name=Goldmeadow Lookout -auto={W}{T}{discard(*|myhand)}:token(139397) +auto={W}{T}{D(*|myhand)}:token(139397) text={W}, {T}, Discard a card: Put a 1/1 white Kithkin Soldier creature token named Goldmeadow Harrier onto the battlefield. It has "{W}, {T}: Tap target creature." mana={3}{W} type=Creature @@ -47988,7 +47988,7 @@ type=Enchantment [/card] [card] name=Greel, Mind Raker -auto={X}{B}{T}{discard(*|myhand)}{discard(*|myhand)}:discard:X target(player) +auto={X}{B}{T}{D(*|myhand)}{D(*|myhand)}:discard:X target(player) text={X}{B}, {T}, Discard two cards: Target player discards X cards at random. mana={3}{B}{B} type=Legendary Creature @@ -48072,7 +48072,7 @@ toughness=3 [/card] [card] name=Greenseeker -auto={G}{T}{discard(*|myhand)}:moveTo(myHand) target(land[basic]|mylibrary) +auto={G}{T}{D(*|myhand)}:moveTo(myHand) target(land[basic]|mylibrary) text={G}, {T}, Discard a card: Search your library for a basic land card, reveal it, and put it into your hand. Then shuffle your library. mana={G} type=Creature @@ -48707,7 +48707,7 @@ toughness=3 [/card] [card] name=Grotesque Hybrid -auto={discard(*|myhand)}:flying & protection from white && protection from green +auto={D(*|myhand)}:flying & protection from white && protection from green auto=@combatdamaged(creature) from(this):all(trigger[to]) bury text=Whenever Grotesque Hybrid deals combat damage to a creature, destroy that creature. It can't be regenerated. -- Discard a card: Grotesque Hybrid gains flying and protection from green and from white until end of turn. mana={4}{B} @@ -49355,7 +49355,7 @@ toughness=2 name=Gurzigost auto=@each my upkeep restriction{type(*|mygraveyard)~morethan~1}:transforms((,newability[choice name(put at bottom of library) target(<2>*|mygraveyard) bottomoflibrary],newability[choice sacrifice])) ueot auto=@each my upkeep restriction{type(*|mygraveyard)~lessthan~2}:sacrifice -auto={G}{G}{discard(*|myhand)}:transforms((,newability[@combat(blocked turnlimited) source(this):may name(assign combat damage to defending player) thisforeach(power>=1) damage:1 opponent && fog from(this)])) ueot +auto={G}{G}{D(*|myhand)}:transforms((,newability[@combat(blocked turnlimited) source(this):may name(assign combat damage to defending player) thisforeach(power>=1) damage:1 opponent && fog from(this)])) ueot text=At the beginning of your upkeep, sacrifice Gurzigost unless you put two cards from your graveyard on the bottom of your library. -- {G}{G}, Discard a card: You may have Gurzigost assign its combat damage this turn as though it weren't blocked. mana={3}{G}{G} type=Creature @@ -49870,23 +49870,23 @@ toughness=6 [/card] [card] name=Hammer Mage -auto={R}{T}{discard(*|myhand)}:name(X <= 0) destroy all(artifact[manacost<=0]) -auto={1}{R}{T}{discard(*|myhand)}:name(X <= 1) destroy all(artifact[manacost<=1]) -auto={2}{R}{T}{discard(*|myhand)}:name(X <= 2) destroy all(artifact[manacost<=2]) -auto={3}{R}{T}{discard(*|myhand)}:name(X <= 3) destroy all(artifact[manacost<=3]) -auto={4}{R}{T}{discard(*|myhand)}:name(X <= 4) destroy all(artifact[manacost<=4]) -auto={5}{R}{T}{discard(*|myhand)}:name(X <= 5) destroy all(artifact[manacost<=5]) -auto={6}{R}{T}{discard(*|myhand)}:name(X <= 6) destroy all(artifact[manacost<=6]) -auto={7}{R}{T}{discard(*|myhand)}:name(X <= 7) destroy all(artifact[manacost<=7]) -auto={8}{R}{T}{discard(*|myhand)}:name(X <= 8) destroy all(artifact[manacost<=8]) -auto={9}{R}{T}{discard(*|myhand)}:name(X <= 9) destroy all(artifact[manacost<=9]) -auto={10}{R}{T}{discard(*|myhand)}:name(X <= 10) destroy all(artifact[manacost<=10]) -auto={11}{R}{T}{discard(*|myhand)}:name(X <= 11) destroy all(artifact[manacost<=11]) -auto={12}{R}{T}{discard(*|myhand)}:name(X <= 12) destroy all(artifact[manacost<=12]) -auto={13}{R}{T}{discard(*|myhand)}:name(X <= 13) destroy all(artifact[manacost<=13]) -auto={14}{R}{T}{discard(*|myhand)}:name(X <= 14) destroy all(artifact[manacost<=14]) -auto={15}{R}{T}{discard(*|myhand)}:name(X <= 15) destroy all(artifact[manacost<=15]) -auto={16}{R}{T}{discard(*|myhand)}:name(X <= 16) destroy all(artifact[manacost<=16]) +auto={R}{T}{D(*|myhand)}:name(X <= 0) destroy all(artifact[manacost<=0]) +auto={1}{R}{T}{D(*|myhand)}:name(X <= 1) destroy all(artifact[manacost<=1]) +auto={2}{R}{T}{D(*|myhand)}:name(X <= 2) destroy all(artifact[manacost<=2]) +auto={3}{R}{T}{D(*|myhand)}:name(X <= 3) destroy all(artifact[manacost<=3]) +auto={4}{R}{T}{D(*|myhand)}:name(X <= 4) destroy all(artifact[manacost<=4]) +auto={5}{R}{T}{D(*|myhand)}:name(X <= 5) destroy all(artifact[manacost<=5]) +auto={6}{R}{T}{D(*|myhand)}:name(X <= 6) destroy all(artifact[manacost<=6]) +auto={7}{R}{T}{D(*|myhand)}:name(X <= 7) destroy all(artifact[manacost<=7]) +auto={8}{R}{T}{D(*|myhand)}:name(X <= 8) destroy all(artifact[manacost<=8]) +auto={9}{R}{T}{D(*|myhand)}:name(X <= 9) destroy all(artifact[manacost<=9]) +auto={10}{R}{T}{D(*|myhand)}:name(X <= 10) destroy all(artifact[manacost<=10]) +auto={11}{R}{T}{D(*|myhand)}:name(X <= 11) destroy all(artifact[manacost<=11]) +auto={12}{R}{T}{D(*|myhand)}:name(X <= 12) destroy all(artifact[manacost<=12]) +auto={13}{R}{T}{D(*|myhand)}:name(X <= 13) destroy all(artifact[manacost<=13]) +auto={14}{R}{T}{D(*|myhand)}:name(X <= 14) destroy all(artifact[manacost<=14]) +auto={15}{R}{T}{D(*|myhand)}:name(X <= 15) destroy all(artifact[manacost<=15]) +auto={16}{R}{T}{D(*|myhand)}:name(X <= 16) destroy all(artifact[manacost<=16]) text={X}{R}, {T}, Discard a card: Destroy all artifacts with converted mana cost X or less. mana={1}{R} type=Creature @@ -50558,7 +50558,7 @@ type=Enchantment name=Haunted Dead abilities=flying auto=token(Spirit,Creature Spirit,1/1,white,flying) -autograveyard={1}{B}{discard(*|myhand)}{discard(*|myhand)}:moveto(mybattlefield) and!(tap(noevent))! +autograveyard={1}{B}{D(*|myhand)}{D(*|myhand)}:moveto(mybattlefield) and!(tap(noevent))! text=When Haunted Dead enters the battlefield, put a 1/1 white Spirit creature token with flying onto the battlefield. -- {1}{B}, Discard two cards: Return Haunted Dead from your graveyard to the battlefield tapped. mana={3}{B} type=Creature @@ -51388,7 +51388,7 @@ type=Enchantment [/card] [card] name=Heir of Falkenrath -auto={discard(*|myhand)}:flip(Heir to the Night) limit:1 +auto={D(*|myhand)}:flip(Heir to the Night) limit:1 text=Discard a card: Transform Heir of Falkenrath. Activate this ability only once each turn. mana={1}{B} type=Creature @@ -52454,7 +52454,7 @@ toughness=2 [/card] [card] name=Hisoka, Minamo Sensei -auto={2}{U}{discard(*|myhand)}:fizzle target(*[manacost=storedmanacost]|stack) +auto={2}{U}{D(*|myhand)}:fizzle target(*[manacost=storedmanacost]|stack) text={2}{U}, Discard a card: Counter target spell if it has the same converted mana cost as the discarded card. mana={2}{U}{U} type=Legendary Creature @@ -54313,7 +54313,7 @@ toughness=8 [/card] [card] name=Hypochondria -auto={W}{discard(*|myhand)}:prevent:3 target(creature,player) +auto={W}{D(*|myhand)}:prevent:3 target(creature,player) auto={S}:prevent:3 target(creature,player) text={W}, Discard a card: Prevent the next 3 damage that would be dealt to target creature or player this turn. -- {W}, Sacrifice Hypochondria: Prevent the next 3 damage that would be dealt to target creature or player this turn. mana={1}{W} @@ -54364,7 +54364,7 @@ toughness=2 [/card] [card] name=Icatian Crier -auto={1}{W}{T}{discard(*|myhand)}:token(Citizen,creature citizen, 1/1, white)*2 +auto={1}{W}{T}{D(*|myhand)}:token(Citizen,creature citizen, 1/1, white)*2 text={1}{W}, {T}, Discard a card: Put two 1/1 white Citizen creature tokens onto the battlefield. mana={2}{W} type=Creature @@ -54911,7 +54911,7 @@ toughness=2 name=Immobilizing Ink target=creature auto=doesnotuntap -auto=teach(creature) {1}{discard(*|myhand)}:untap +auto=teach(creature) {1}{D(*|myhand)}:untap text=Enchant creature -- Enchanted creature doesn't untap during its controller's untap step. -- Enchanted creature has "{1}, Discard a card: Untap this creature." mana={1}{U} type=Enchantment @@ -56120,7 +56120,7 @@ subtype=Aura [/card] [card] name=Insolent Neonate -auto={discard(*|myhand)}{s}:draw:1 +auto={D(*|myhand)}{s}:draw:1 abilities=menace text=Menace (This creature can't be blocked except by two or more creatures.) -- Discard a card, Sacrifice Insolent Neonate: Draw a card. mana={R} @@ -56196,7 +56196,7 @@ toughness=3 [/card] [card] name=Instigator -auto={1}{B}{B}{T}{discard(*|myhand)}:lord(creature|opponentBattlefield) mustattack ueot +auto={1}{B}{B}{T}{D(*|myhand)}:lord(creature|opponentBattlefield) mustattack ueot text={1}{B}{B}, {T}, Discard a card: Creatures target player controls attack this turn if able. mana={1}{B} type=Creature @@ -57479,9 +57479,9 @@ toughness=1 [/card] [card] name=Jaya Ballard, Task Mage -auto={R}{T}{discard(*|myHand)}:destroy target(*[blue]) -auto={1}{R}{T}{discard(*|myHand)}:damage:3 && cantregen target(creature,player) -auto={5}{R}{R}{discard(*|myHand)}:damage:6 all(creature,player) +auto={R}{T}{D(*|myHand)}:destroy target(*[blue]) +auto={1}{R}{T}{D(*|myHand)}:damage:3 && cantregen target(creature,player) +auto={5}{R}{R}{D(*|myHand)}:damage:6 all(creature,player) text={R}, {T}, Discard a card: Destroy target blue permanent. -- {1}{R}, {T}, Discard a card: Jaya Ballard, Task Mage deals 3 damage to target creature or player. A creature dealt damage this way can't be regenerated this turn. -- {5}{R}{R}, {T}, Discard a card: Jaya Ballard deals 6 damage to each creature and each player. mana={1}{R}{R} type=Legendary Creature @@ -57961,7 +57961,7 @@ toughness=12 [/card] [card] name=Jolrael, Empress of Beasts -auto={2}{G}{T}{discard(*|myhand)}{discard(*|myhand)}:name(lands become 3/3 creatures)target(player) all(land|targetedpersonsbattlefield) becomes(Creature,3/3) ueot +auto={2}{G}{T}{D(*|myhand)}{D(*|myhand)}:name(lands become 3/3 creatures)target(player) all(land|targetedpersonsbattlefield) becomes(Creature,3/3) ueot text={2}{G}, {T}, Discard two cards: All lands target player controls become 3/3 creatures until end of turn. They're still lands. mana={3}{G}{G} type=Legendary Creature @@ -58430,7 +58430,7 @@ toughness=1 name=Junk Golem auto=counter(1/1,3) auto=upcost[{C(1/1,-1)}] sacrifice -auto={discard(*|myhand)}:counter(1/1,1) +auto={D(*|myhand)}:counter(1/1,1) text=Junk Golem enters the battlefield with three +1/+1 counters on it. -- At the beginning of your upkeep, sacrifice Junk Golem unless you remove a +1/+1 counter from it. -- {1}, Discard a card: Put a +1/+1 counter on Junk Golem. mana={4} type=Artifact Creature @@ -61135,22 +61135,22 @@ toughness=5 [/card] [card] name=Knollspine Invocation -auto={1}{discard(*[manacost=1]|myhand)}:damage:1 target(creature,player) -auto={2}{discard(*[manacost=2]|myhand)}:damage:2 target(creature,player) -auto={3}{discard(*[manacost=3]|myhand)}:damage:3 target(creature,player) -auto={4}{discard(*[manacost=4]|myhand)}:damage:4 target(creature,player) -auto={5}{discard(*[manacost=5]|myhand)}:damage:5 target(creature,player) -auto={6}{discard(*[manacost=6]|myhand)}:damage:6 target(creature,player) -auto={7}{discard(*[manacost=7]|myhand)}:damage:7 target(creature,player) -auto={8}{discard(*[manacost=8]|myhand)}:damage:8 target(creature,player) -auto={9}{discard(*[manacost=9]|myhand)}:damage:9 target(creature,player) -auto={10}{discard(*[manacost=10]|myhand)}:damage:10 target(creature,player) -auto={11}{discard(*[manacost=11]|myhand)}:damage:11 target(creature,player) -auto={12}{discard(*[manacost=12]|myhand)}:damage:12 target(creature,player) -auto={13}{discard(*[manacost=13]|myhand)}:damage:13 target(creature,player) -auto={14}{discard(*[manacost=14]|myhand)}:damage:14 target(creature,player) -auto={15}{discard(*[manacost=15]|myhand)}:damage:15 target(creature,player) -auto={16}{discard(*[manacost=16]|myhand)}:damage:16 target(creature,player) +auto={1}{D(*[manacost=1]|myhand)}:damage:1 target(creature,player) +auto={2}{D(*[manacost=2]|myhand)}:damage:2 target(creature,player) +auto={3}{D(*[manacost=3]|myhand)}:damage:3 target(creature,player) +auto={4}{D(*[manacost=4]|myhand)}:damage:4 target(creature,player) +auto={5}{D(*[manacost=5]|myhand)}:damage:5 target(creature,player) +auto={6}{D(*[manacost=6]|myhand)}:damage:6 target(creature,player) +auto={7}{D(*[manacost=7]|myhand)}:damage:7 target(creature,player) +auto={8}{D(*[manacost=8]|myhand)}:damage:8 target(creature,player) +auto={9}{D(*[manacost=9]|myhand)}:damage:9 target(creature,player) +auto={10}{D(*[manacost=10]|myhand)}:damage:10 target(creature,player) +auto={11}{D(*[manacost=11]|myhand)}:damage:11 target(creature,player) +auto={12}{D(*[manacost=12]|myhand)}:damage:12 target(creature,player) +auto={13}{D(*[manacost=13]|myhand)}:damage:13 target(creature,player) +auto={14}{D(*[manacost=14]|myhand)}:damage:14 target(creature,player) +auto={15}{D(*[manacost=15]|myhand)}:damage:15 target(creature,player) +auto={16}{D(*[manacost=16]|myhand)}:damage:16 target(creature,player) text={X}, Discard a card with converted mana cost X: Knollspine Invocation deals X damage to target creature or player. mana={1}{R}{R} type=Enchantment @@ -61597,7 +61597,7 @@ toughness=1 [/card] [card] name=Korlash, Heir to Blackblade -auto={discard(other *[share!name!]|myhand)}:moveto(mybattlefield) and!(tap(noevent))! target(swamp|mylibrary) +auto={D(other *[share!name!]|myhand)}:moveto(mybattlefield) and!(tap(noevent))! target(swamp|mylibrary) anyzone=type:swamp:mybattlefield/type:swamp:mybattlefield cdaactive auto={1}{B}:regenerate text=Korlash, Heir to Blackblade's power and toughness are each equal to the number of Swamps you control. -- {1}{B}: Regenerate Korlash. -- Grandeur - Discard another card named Korlash, Heir to Blackblade: Search your library for up to two Swamp cards, put them onto the battlefield tapped, then shuffle your library. @@ -61713,23 +61713,23 @@ toughness=12 name=Kozilek, the Great Distortion abilities=menace autostack=if casted(this) then thisforeach(variable{phandcount}<7) draw:1 -auto={discard(*[manacost=0]|myhand)}:name(X = 0) fizzle target(*[manacost=0]|stack) restriction{type(*[manacost=0]|myhand)~morethan~0,type(*[manacost=0]|stack)~morethan~0} -auto={discard(*[manacost=1]|myhand)}:name(X = 1) fizzle target(*[manacost=1]|stack) restriction{type(*[manacost=1]|myhand)~morethan~0,type(*[manacost=1]|stack)~morethan~0} -auto={discard(*[manacost=2]|myhand)}:name(X = 2) fizzle target(*[manacost=2]|stack) restriction{type(*[manacost=2]|myhand)~morethan~0,type(*[manacost=2]|stack)~morethan~0} -auto={discard(*[manacost=3]|myhand)}:name(X = 3) fizzle target(*[manacost=3]|stack) restriction{type(*[manacost=3]|myhand)~morethan~0,type(*[manacost=3]|stack)~morethan~0} -auto={discard(*[manacost=4]|myhand)}:name(X = 4) fizzle target(*[manacost=4]|stack) restriction{type(*[manacost=4]|myhand)~morethan~0,type(*[manacost=4]|stack)~morethan~0} -auto={discard(*[manacost=5]|myhand)}:name(X = 5) fizzle target(*[manacost=5]|stack) restriction{type(*[manacost=5]|myhand)~morethan~0,type(*[manacost=5]|stack)~morethan~0} -auto={discard(*[manacost=6]|myhand)}:name(X = 6) fizzle target(*[manacost=6]|stack) restriction{type(*[manacost=6]|myhand)~morethan~0,type(*[manacost=6]|stack)~morethan~0} -auto={discard(*[manacost=7]|myhand)}:name(X = 7) fizzle target(*[manacost=7]|stack) restriction{type(*[manacost=7]|myhand)~morethan~0,type(*[manacost=7]|stack)~morethan~0} -auto={discard(*[manacost=8]|myhand)}:name(X = 8) fizzle target(*[manacost=8]|stack) restriction{type(*[manacost=8]|myhand)~morethan~0,type(*[manacost=8]|stack)~morethan~0} -auto={discard(*[manacost=9]|myhand)}:name(X = 9) fizzle target(*[manacost=9]|stack) restriction{type(*[manacost=9]|myhand)~morethan~0,type(*[manacost=9]|stack)~morethan~0} -auto={discard(*[manacost=10]|myhand)}:name(X = 10) fizzle target(*[manacost=10]|stack) restriction{type(*[manacost=10]|myhand)~morethan~0,type(*[manacost=10]|stack)~morethan~0} -auto={discard(*[manacost=11]|myhand)}:name(X = 11) fizzle target(*[manacost=11]|stack) restriction{type(*[manacost=11]|myhand)~morethan~0,type(*[manacost=11]|stack)~morethan~0} -auto={discard(*[manacost=12]|myhand)}:name(X = 12) fizzle target(*[manacost=12]|stack) restriction{type(*[manacost=12]|myhand)~morethan~0,type(*[manacost=12]|stack)~morethan~0} -auto={discard(*[manacost=13]|myhand)}:name(X = 13) fizzle target(*[manacost=13]|stack) restriction{type(*[manacost=13]|myhand)~morethan~0,type(*[manacost=13]|stack)~morethan~0} -auto={discard(*[manacost=14]|myhand)}:name(X = 14) fizzle target(*[manacost=14]|stack) restriction{type(*[manacost=14]|myhand)~morethan~0,type(*[manacost=14]|stack)~morethan~0} -auto={discard(*[manacost=15]|myhand)}:name(X = 15) fizzle target(*[manacost=15]|stack) restriction{type(*[manacost=15]|myhand)~morethan~0,type(*[manacost=15]|stack)~morethan~0} -auto={discard(*[manacost=16]|myhand)}:name(X = 16) fizzle target(*[manacost=16]|stack) restriction{type(*[manacost=16]|myhand)~morethan~0,type(*[manacost=16]|stack)~morethan~0} +auto={D(*[manacost=0]|myhand)}:name(X = 0) fizzle target(*[manacost=0]|stack) restriction{type(*[manacost=0]|myhand)~morethan~0,type(*[manacost=0]|stack)~morethan~0} +auto={D(*[manacost=1]|myhand)}:name(X = 1) fizzle target(*[manacost=1]|stack) restriction{type(*[manacost=1]|myhand)~morethan~0,type(*[manacost=1]|stack)~morethan~0} +auto={D(*[manacost=2]|myhand)}:name(X = 2) fizzle target(*[manacost=2]|stack) restriction{type(*[manacost=2]|myhand)~morethan~0,type(*[manacost=2]|stack)~morethan~0} +auto={D(*[manacost=3]|myhand)}:name(X = 3) fizzle target(*[manacost=3]|stack) restriction{type(*[manacost=3]|myhand)~morethan~0,type(*[manacost=3]|stack)~morethan~0} +auto={D(*[manacost=4]|myhand)}:name(X = 4) fizzle target(*[manacost=4]|stack) restriction{type(*[manacost=4]|myhand)~morethan~0,type(*[manacost=4]|stack)~morethan~0} +auto={D(*[manacost=5]|myhand)}:name(X = 5) fizzle target(*[manacost=5]|stack) restriction{type(*[manacost=5]|myhand)~morethan~0,type(*[manacost=5]|stack)~morethan~0} +auto={D(*[manacost=6]|myhand)}:name(X = 6) fizzle target(*[manacost=6]|stack) restriction{type(*[manacost=6]|myhand)~morethan~0,type(*[manacost=6]|stack)~morethan~0} +auto={D(*[manacost=7]|myhand)}:name(X = 7) fizzle target(*[manacost=7]|stack) restriction{type(*[manacost=7]|myhand)~morethan~0,type(*[manacost=7]|stack)~morethan~0} +auto={D(*[manacost=8]|myhand)}:name(X = 8) fizzle target(*[manacost=8]|stack) restriction{type(*[manacost=8]|myhand)~morethan~0,type(*[manacost=8]|stack)~morethan~0} +auto={D(*[manacost=9]|myhand)}:name(X = 9) fizzle target(*[manacost=9]|stack) restriction{type(*[manacost=9]|myhand)~morethan~0,type(*[manacost=9]|stack)~morethan~0} +auto={D(*[manacost=10]|myhand)}:name(X = 10) fizzle target(*[manacost=10]|stack) restriction{type(*[manacost=10]|myhand)~morethan~0,type(*[manacost=10]|stack)~morethan~0} +auto={D(*[manacost=11]|myhand)}:name(X = 11) fizzle target(*[manacost=11]|stack) restriction{type(*[manacost=11]|myhand)~morethan~0,type(*[manacost=11]|stack)~morethan~0} +auto={D(*[manacost=12]|myhand)}:name(X = 12) fizzle target(*[manacost=12]|stack) restriction{type(*[manacost=12]|myhand)~morethan~0,type(*[manacost=12]|stack)~morethan~0} +auto={D(*[manacost=13]|myhand)}:name(X = 13) fizzle target(*[manacost=13]|stack) restriction{type(*[manacost=13]|myhand)~morethan~0,type(*[manacost=13]|stack)~morethan~0} +auto={D(*[manacost=14]|myhand)}:name(X = 14) fizzle target(*[manacost=14]|stack) restriction{type(*[manacost=14]|myhand)~morethan~0,type(*[manacost=14]|stack)~morethan~0} +auto={D(*[manacost=15]|myhand)}:name(X = 15) fizzle target(*[manacost=15]|stack) restriction{type(*[manacost=15]|myhand)~morethan~0,type(*[manacost=15]|stack)~morethan~0} +auto={D(*[manacost=16]|myhand)}:name(X = 16) fizzle target(*[manacost=16]|stack) restriction{type(*[manacost=16]|myhand)~morethan~0,type(*[manacost=16]|stack)~morethan~0} text=When you cast Kozilek, the Great Distortion, if you have fewer than seven cards in hand, draw cards equal to the difference. -- Menace -- Discard a card with converted mana cost X: Counter target spell with converted mana cost X. mana={8}{C}{C} type=Legendary Creature @@ -61994,7 +61994,7 @@ toughness=2 [/card] [card] name=Kris Mage -auto={R}{T}{discard(*|myhand)}:damage:1 target(creature,player) +auto={R}{T}{D(*|myhand)}:damage:1 target(creature,player) text={R}, {T}, Discard a card: Kris Mage deals 1 damage to target creature or player. mana={R} type=Creature @@ -62016,7 +62016,7 @@ toughness=6 [card] name=Krosan Archer abilities=reach -auto={G}{discard(*|myhand)}:0/2 +auto={G}{D(*|myhand)}:0/2 text=Reach (This creature can block creatures with flying.) -- {G}, Discard a card: Krosan Archer gets +0/+2 until end of turn. mana={3}{G} type=Creature @@ -62228,8 +62228,8 @@ toughness=1 [/card] [card] name=Krovikan Sorcerer -auto={T}{discard(*[-black]|myhand)}:draw:1 -auto={T}{discard(*[black]|myhand)}:draw:2 && transforms((,newability[reject target(*[fresh]|myhand)])) +auto={T}{D(*[-black]|myhand)}:draw:1 +auto={T}{D(*[black]|myhand)}:draw:2 && transforms((,newability[reject target(*[fresh]|myhand)])) text={T}, Discard a nonblack card: Draw a card. -- {T}, Discard a black card: Draw two cards, then discard one of them. mana={2}{U} type=Creature @@ -63105,7 +63105,7 @@ type=Instant [/card] [card] name=Latulla, Keldon Overseer -auto={X}{R}{T}{discard(*|myhand)}{discard(*|myhand)}:damage:X target(creature,player) +auto={X}{R}{T}{D(*|myhand)}{D(*|myhand)}:damage:X target(creature,player) text={X}{R}, {T}, Discard two cards: Latulla, Keldon Overseer deals X damage to target creature or player. mana={3}{R}{R} type=Legendary Creature @@ -64319,7 +64319,7 @@ other={5}{R} name(pay 5 mana) target=creature auto=damage:5 text=As an additional cost to cast Lightning Axe, discard a card or pay {5}. -- Lightning Axe deals 5 damage to target creature. -mana={R}{discard(other *|myhand)} +mana={R}{D(other *|myhand)} type=Instant [/card] [card] @@ -64736,7 +64736,7 @@ toughness=1 [card] name=Lim-Dul's Paladin abilities=trample -auto=upcostmulti[{discard(*|myhand)}] sacrifice && draw:1 controller +auto=upcostmulti[{D(*|myhand)}] sacrifice && draw:1 controller auto=@combat(blocked,turnlimited) source(this):6/3 ueot auto=@combat(notblocked) source(this):preventAllCombatDamage from(this) ueot && life:-4 opponent text=Trample -- At the beginning of your upkeep, sacrifice Lim-Dul's Paladin unless you discard a card. If you sacrifice it this way, draw a card. -- Whenever Lim-Dul's Paladin becomes blocked, it gets +6/+3 until end of turn. -- Whenever Lim-Dul's Paladin attacks and isn't blocked, it assigns no combat damage this turn and defending player loses 4 life. @@ -65139,7 +65139,7 @@ toughness=2 [/card] [card] name=Llanowar Mentor -auto={G}{T}{discard(*|myhand)}:token(Llanowar Elves) +auto={G}{T}{D(*|myhand)}:token(Llanowar Elves) text={G}, {T}, Discard a card: Put a 1/1 green Elf Druid creature token named Llanowar Elves onto the battlefield. It has "{T}: Add {G} to your mana pool." mana={G} type=Creature @@ -65718,7 +65718,7 @@ toughness=1 [/card] [card] name=Lotleth Troll -auto={discard(creature|myhand)}:counter(1/1,1) +auto={D(creature|myhand)}:counter(1/1,1) auto={B}:regenerate abilities=trample text=Trample -- Discard a creature card: Put a +1/+1 counter on Lotleth Troll. -- {B}: Regenerate Lotleth Troll. @@ -66525,7 +66525,7 @@ toughness=3 [/card] [card] name=Lys Alana Scarblade -auto={T}{discard(elf|myhand)}:foreach(elf|mybattlefield) -1/-1 target(creature) +auto={T}{D(elf|myhand)}:foreach(elf|mybattlefield) -1/-1 target(creature) text={T}, Discard an Elf card: Target creature gets -X/-X until end of turn, where X is the number of Elves you control. mana={2}{B} type=Creature @@ -66595,7 +66595,7 @@ toughness=2 [card] name=Mad Prophet abilities=haste -auto={T}{discard(*|myhand)}:draw:1 controller +auto={T}{D(*|myhand)}:draw:1 controller text=Haste -- {T}, Discard a card: Draw a card. mana={3}{R} type=Creature @@ -66785,7 +66785,7 @@ type=Instant [/card] [card] name=Mageta the Lion -auto={2}{W}{W}{T}{discard(*|myhand)}{discard(*|myhand)}:bury all(other creature) +auto={2}{W}{W}{T}{D(*|myhand)}{D(*|myhand)}:bury all(other creature) text={2}{W}{W}, {T}, Discard two cards: Destroy all creatures except for Mageta the Lion. Those creatures can't be regenerated. mana={3}{W}{W} type=Legendary Creature @@ -66972,7 +66972,7 @@ toughness=7 name=Magmatic Insight auto=draw:2 controller text=As an additional cost to cast Magmatic Insight, discard a land card. -- Draw two cards. -mana={R}{discard(land|myhand)} +mana={R}{D(land|myhand)} type=Sorcery [/card] [card] @@ -68429,7 +68429,7 @@ toughness=3 [card] name=Markov Dreadknight abilities=flying -auto={2}{B}{discard(*|myhand)}:counter(1/1,2) +auto={2}{B}{D(*|myhand)}:counter(1/1,2) text=Flying -- {2}{B}, Discard a card: Put two +1/+1 counters on Markov Dreadknight. mana={3}{B}{B} type=Creature @@ -69071,7 +69071,7 @@ type=Instant [/card] [card] name=Masticore -auto=upcost[{discard(*|myhand)}] sacrifice +auto=upcost[{D(*|myhand)}] sacrifice auto={2}:damage:1 target(creature) auto={2}:regenerate text=At the beginning of your upkeep, sacrifice Masticore unless you discard a card. -- {2}: Masticore deals 1 damage to target creature. -- {2}: Regenerate Masticore. @@ -69368,7 +69368,7 @@ type=Enchantment [/card] [card] name=Medicine Bag -auto={1}{T}{discard(*|myhand)}:regenerate target(creature) +auto={1}{T}{D(*|myhand)}:regenerate target(creature) text={1}, {T}, Discard a card: Regenerate target creature. mana={3} type=Artifact @@ -69675,7 +69675,7 @@ type=Sorcery [/card] [card] name=Mental Discipline -auto={1}{U}{discard(*|myhand)}:draw:1 +auto={1}{U}{D(*|myhand)}:draw:1 text={1}{U}, Discard a card: Draw a card. mana={1}{U}{U} type=Enchantment @@ -69872,7 +69872,7 @@ type=Instant [card] name=Mercurial Chemister auto={U}{T}:draw:2 controller -auto={R}{T}{discard(*|myhand)}:damage:storedmanacost target(creature) +auto={R}{T}{D(*|myhand)}:damage:storedmanacost target(creature) text={U}, {T}: Draw two cards. -- {R}, {T}, Discard a card: Mercurial Chemister deals damage to target creature equal to the discarded card's converted mana cost. mana={3}{U}{R} type=Creature @@ -70198,7 +70198,7 @@ type=Artifact [/card] [card] name=Mesmeric Trance -auto={U}{discard(*|myhand)}:draw:1 +auto={U}{D(*|myhand)}:draw:1 auto=cumulativeupcost[{1}] sacrifice text=Cumulative upkeep {1} (At the beginning of your upkeep, put an age counter on this permanent, then sacrifice it unless you pay its upkeep cost for each age counter on it.) -- {U}, Discard a card: Draw a card. mana={1}{U}{U} @@ -70819,8 +70819,8 @@ toughness=2 [/card] [card] name=Mind Over Matter -auto={discard(*|myhand)}:tap target(artifact,creature,land) -auto={discard(*|myhand)}:untap target(artifact,creature,land) +auto={D(*|myhand)}:tap target(artifact,creature,land) +auto={D(*|myhand)}:untap target(artifact,creature,land) text=Discard a card: You may tap or untap target artifact, creature, or land. mana={2}{U}{U}{U}{U} type=Enchantment @@ -71023,7 +71023,7 @@ toughness=6 [card] name=Mindless Automaton auto=counter(1/1,2) -auto={1}{discard(*|myhand)}:counter(1/1,1) +auto={1}{D(*|myhand)}:counter(1/1,1) auto={C(1/1,-2)}:draw:1 controller text=Mindless Automaton enters the battlefield with two +1/+1 counters on it. -- {1}, Discard a card: Put a +1/+1 counter on Mindless Automaton. -- Remove two +1/+1 counters from Mindless Automaton: Draw a card. mana={4} @@ -72640,7 +72640,7 @@ toughness=4 [/card] [card] name=Molten Vortex -auto={R}{discard(land|myhand)}:damage:2 target(creature,player) +auto={R}{D(land|myhand)}:damage:2 target(creature,player) text={R}, Discard a land card: Molten Vortex deals 2 damage to target creature or player. mana={R} type=Enchantment @@ -72659,7 +72659,7 @@ toughness=4 [/card] [card] name=Molten-Tail Masticore -auto=upcost[{discard(*|myhand)}] sacrifice +auto=upcost[{D(*|myhand)}] sacrifice auto={4}{E(creature|mygraveyard)}:damage:4 target(creature,player) auto={2}:regenerate text=At the beginning of your upkeep, sacrifice Molten-Tail Masticore unless you discard a card. -- {4}, Exile a creature card from your graveyard: Molten-Tail Masticore deals 4 damage to target creature or player. -- {2}: Regenerate Molten-Tail Masticore. @@ -72900,7 +72900,7 @@ toughness=1 name=Monstrify target=creature auto=4/4 -retrace={3}{G}{discard(land|myhand)} +retrace={3}{G}{D(land|myhand)} text=Target creature gets +4/+4 until end of turn. -- Retrace (You may cast this card from your graveyard by discarding a land card in addition to paying its other costs.) mana={3}{G} type=Sorcery @@ -73482,7 +73482,7 @@ toughness=1 [/card] [card] name=Mortiphobia -auto={1}{B}{discard(*|myhand)}:moveto(exile) target(*|graveyard) +auto={1}{B}{D(*|myhand)}:moveto(exile) target(*|graveyard) auto={1}{B}{S}:moveto(exile) target(*|graveyard) text={1}{B}, Discard a card: Exile target card from a graveyard. -- {1}{B}, Sacrifice Mortiphobia: Exile target card from a graveyard. mana={1}{B}{B} @@ -74065,7 +74065,7 @@ toughness=4 [/card] [card] name=Murderer's Axe -auto={discard(*|myhand)}:equip +auto={D(*|myhand)}:equip auto=2/2 text=Equipped creature gets +2/+2. -- Equip—Discard a card. mana={4} @@ -75068,7 +75068,7 @@ toughness=2 [/card] [card] name=Narcissism -auto={G}{discard(*|myhand)}:2/2 target(creature) +auto={G}{D(*|myhand)}:2/2 target(creature) auto={G}{S}:2/2 target(creature) text={G}, Discard a card: Target creature gets +2/+2 until end of turn. -- {G}, Sacrifice Narcissism: Target creature gets +2/+2 until end of turn. mana={2}{G} @@ -76058,7 +76058,7 @@ toughness=4 [/card] [card] name=Netter en-Dal -auto={W}{T}{discard(*|myhand)}:cantattack target(creature) +auto={W}{T}{D(*|myhand)}:cantattack target(creature) text={W}, {T}, Discard a card: Target creature can't attack this turn. mana={W} type=Creature @@ -76162,7 +76162,7 @@ toughness=1 [card] name=Neurok Prodigy abilities=flying -auto={discard(artifact|myhand)}:moveto(ownerhand) +auto={D(artifact|myhand)}:moveto(ownerhand) text=Flying -- Discard an artifact card: Return Neurok Prodigy to its owner's hand. mana={2}{U} type=Creature @@ -76739,7 +76739,7 @@ text={T}, Sacrifice Nihil Spellbomb: Exile all cards from target player's gravey [/card] [card] name=Nihilistic Glee -auto={2}{B}{discard(*|myhand)}:target(opponent) life:-1 && life:1 controller +auto={2}{B}{D(*|myhand)}:target(opponent) life:-1 && life:1 controller auto=aslongas(*|myhand) {L:2}{1}:draw:1 <1 text={2}{B}, Discard a card: Target opponent loses 1 life and you gain 1 life. -- Hellbent - {1}, Pay 2 life: Draw a card. Activate this ability only if you have no cards in hand. mana={2}{B}{B} @@ -77413,7 +77413,7 @@ type=Sorcery [card] name=Noose Constrictor abilities=reach -auto={discard(*|myhand)}:1/1 ueot +auto={D(*|myhand)}:1/1 ueot text=Reach -- Discard a card: Noose Constrictor gets +1/+1 until end of turn. mana={1}{G} type=Creature @@ -77512,7 +77512,7 @@ type=Sorcery [/card] [card] name=Notorious Assassin -auto={2}{B}{T}{discard(*|myhand)}:bury target(creature[-black]) +auto={2}{B}{T}{D(*|myhand)}:bury target(creature[-black]) text={2}{B}, {T}, Discard a card: Destroy target nonblack creature. It can't be regenerated. mana={3}{B} type=Creature @@ -78094,6 +78094,14 @@ mana={1}{R} type=Enchantment [/card] [card] +name=Oath of Nissa +auto=reveal:3 optionone name(Get a card) target(<1>*[creature;land;planeswalker]|reveal) moveto(myhand) optiononeend optiontwo name(put on bottom) target(<3>*|reveal) bottomoflibrary optiontwoend revealend +auto=lord(planeswalker|mycastingzone) anytypeofmana +text=When Oath of Nissa enters the battlefield, look at the top three cards of your library. You may reveal a creature, land, or planeswalker card from among them and put it into your hand. Put the rest on the bottom of your library in any order. -- You may spend mana as though it were mana of any color to cast planeswalker spells. +mana={G} +type=Legendary Enchantment +[/card] +[card] name=Oath of the Ancient Wood auto=may counter(1/1,1) target(creature) restriction{type(creature|battlefield)~morethan~0} auto=@movedTo(enchantment|myBattlefield) restriction{type(creature|battlefield)~morethan~0}:may counter(1/1,1) target(creature) @@ -78226,7 +78234,7 @@ type=Sorcery name=Oblivion Crown target=creature abilities=flash -auto=teach(creature) {discard(*|myhand)}:1/1 +auto=teach(creature) {D(*|myhand)}:1/1 text=Enchant creature -- Enchanted creature has "Discard a card: This creature gets +1/+1 until end of turn." mana={1}{B} type=Enchantment @@ -78846,7 +78854,7 @@ toughness=1 [/card] [card] name=Olivia's Dragoon -auto={discard(*|myhand)}:flying ueot +auto={D(*|myhand)}:flying ueot text=Discard a card: Olivia's Dragoon gains flying until end of turn. mana={1}{B} type=Creature @@ -79151,7 +79159,7 @@ toughness=1 name=Oona's Grace target=player auto=draw:1 -retrace={2}{U}{discard(land|myhand)} +retrace={2}{U}{D(land|myhand)} text=Target player draws a card. -- Retrace (You may cast this card from your graveyard by discarding a land card in addition to paying its other costs.) mana={2}{U} type=Instant @@ -79966,7 +79974,7 @@ type=Instant [card] name=Oriss, Samite Guardian auto={T}:name(prevent all damage) target(creature) transforms((,newability[preventalldamage to(this)])) ueot -auto={discard(*[share!name!]|myhand)}:target(player) maxCast(*)0 ueot && all(creature|targetedpersonsbattlefield) cantattack ueot +auto={D(*[share!name!]|myhand)}:target(player) maxCast(*)0 ueot && all(creature|targetedpersonsbattlefield) cantattack ueot text={T}: Prevent all damage that would be dealt to target creature this turn. Grandeur — Discard another card named Oriss, Samite Guardian: Target player can't cast spells this turn, and creatures that player controls can't attack this turn. mana={1}{W}{W} type=Legendary Creature @@ -80200,7 +80208,7 @@ type=Instant [/card] [card] name=Outbreak -other={discard(swamp|myhand)} name(Discard a Swamp) +other={D(swamp|myhand)} name(Discard a Swamp) auto=chooseatype all(creature[chosentype]) -1/-1 chooseend text=You may discard a Swamp card rather than pay Outbreak's mana cost. -- Choose a creature type. All creatures of that type get -1/-1 until end of turn. mana={3}{B} @@ -80266,7 +80274,7 @@ type=Enchantment [/card] [card] name=Overeager Apprentice -auto={S}{discard(*|myhand)}:Add{B}{B}{B} +auto={S}{D(*|myhand)}:Add{B}{B}{B} text=Discard a card, Sacrifice Overeager Apprentice: Add {B}{B}{B} to your mana pool. mana={2}{B} type=Creature @@ -80378,7 +80386,7 @@ toughness=5 [/card] [card] name=Overtaker -auto={3}{U}{T}{discard(*|myhand)}:target(creature) transforms((,newability[moveTo(opponentbattlefield)],newability[phaseaction[endofturn sourceinplay] moveTo(ownerbattlefield)],newability[untap],haste)) ueot +auto={3}{U}{T}{D(*|myhand)}:target(creature) transforms((,newability[moveTo(opponentbattlefield)],newability[phaseaction[endofturn sourceinplay] moveTo(ownerbattlefield)],newability[untap],haste)) ueot text={3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn. mana={1}{U} type=Creature @@ -80551,7 +80559,7 @@ type=Sorcery [card] name=Pack Rat anyzone=type:rat:mybattlefield/type:rat:mybattlefield cdaactive -auto={2}{B}{discard(*|myhand)}:token(Pack Rat) +auto={2}{B}{D(*|myhand)}:token(Pack Rat) text=Pack Rat's power and toughness are each equal to the number of Rats you control. -- {2}{B}, Discard a card: Put a token onto the battlefield that's a copy of Pack Rat. mana={1}{B} type=Creature @@ -81281,7 +81289,7 @@ toughness=1 [/card] [card] name=Patchwork Gnomes -auto={discard(*|myhand)}:regenerate +auto={D(*|myhand)}:regenerate text=Discard a card: Regenerate Patchwork Gnomes. mana={3} type=Artifact Creature @@ -81373,7 +81381,7 @@ type=Instant [/card] [card] name=Patrol Hound -auto={discard(*|myhand)}:first strike +auto={D(*|myhand)}:first strike text=Discard a card: Patrol Hound gains first strike until end of turn. mana={1}{W} type=Creature @@ -81531,7 +81539,7 @@ type=Instant [/card] [card] name=Peace of Mind -auto={W}{discard(*|myhand)}:life:3 +auto={W}{D(*|myhand)}:life:3 text={W}, Discard a card: You gain 3 life. mana={1}{W} type=Enchantment @@ -81693,7 +81701,7 @@ toughness=1 [/card] [card] name=Pegasus Refuge -auto={2}{discard(*|myhand)}:token(Pegasus,Creature Pegasus, 1/1,flying white) +auto={2}{D(*|myhand)}:token(Pegasus,Creature Pegasus, 1/1,flying white) text={2}, Discard a card: Put a 1/1 white Pegasus creature token with flying onto the battlefield. mana={3}{W} type=Enchantment @@ -82359,7 +82367,7 @@ subtype=Aura [card] name=Phantatog auto={S(enchantment|myBattlefield)}:1/1 -auto={discard(*|myhand)}:1/1 +auto={D(*|myhand)}:1/1 text=Sacrifice an enchantment: Phantatog gets +1/+1 until end of turn. -- Discard a card: Phantatog gets +1/+1 until end of turn. mana={1}{W}{U} type=Creature @@ -83749,7 +83757,7 @@ type=Sorcery [/card] [card] name=Plague Witch -auto={B}{T}{discard(*|myhand)}:-1/-1 target(creature) +auto={B}{T}{D(*|myhand)}:-1/-1 target(creature) text={B}, {T}, Discard a card: Target creature gets -1/-1 until end of turn. mana={1}{B} type=Creature @@ -85814,7 +85822,7 @@ toughness=2 [/card] [card] name=Psychatog -auto={discard(*|myhand)}:1/1 +auto={D(*|myhand)}:1/1 auto={E(*|mygraveyard)}{E(*|mygraveyard)}:1/1 text=Discard a card: Psychatog gets +1/+1 until end of turn. -- Exile two cards from your graveyard: Psychatog gets +1/+1 until end of turn. mana={1}{U}{B} @@ -85865,7 +85873,7 @@ name=Psychic Overload target=*|battlefield auto=tap auto=teach(*) doesnotuntap -auto=teach(*) {discard(*|myhand)}{discard(*|myhand)}:untap +auto=teach(*) {D(*|myhand)}{D(*|myhand)}:untap text=Enchant permanent -- When Psychic Overload enters the battlefield, tap enchanted permanent. -- Enchanted permanent doesn't untap during its controller's untap step. -- Enchanted permanent has "Discard two artifact cards: Untap this permanent." mana={3}{U} type=Enchantment @@ -86019,7 +86027,7 @@ toughness=3 [card] name=Pulsating Illusion abilities=flying -auto={discard(*|myhand)}:4/4 limit:1 +auto={D(*|myhand)}:4/4 limit:1 text=Flying -- Discard a card: Pulsating Illusion gets +4/+4 until end of turn. Activate this ability only once each turn. mana={4}{U} type=Creature @@ -86421,7 +86429,7 @@ toughness=3 [/card] [card] name=Putrid Imp -auto={discard(*|myhand)}:flying +auto={D(*|myhand)}:flying auto=aslongas(*|mygraveyard) 1/1 >6 auto=aslongas(*|mygraveyard) cantblock >6 text=Discard a card: Putrid Imp gains flying until end of turn. -- Threshold - As long as seven or more cards are in your graveyard, Putrid Imp gets +1/+1 and can't block. @@ -86444,7 +86452,7 @@ toughness=2 [card] name=Putrid Raptor facedown={3} -autofacedown={discard(zombie|myhand)}:morph +autofacedown={D(zombie|myhand)}:morph text=Morph - Discard a Zombie card. (You may cast this face down as a 2/2 creature for {3}. Turn it face up any time for its morph cost.) mana={4}{B}{B} type=Creature @@ -87785,7 +87793,7 @@ subtype=Gate [/card] [card] name=Rakdos Guildmage -auto={3}{B}{discard(*|myhand)}:-2/-2 target(creature) +auto={3}{B}{D(*|myhand)}:-2/-2 target(creature) auto={3}{R}:token(Goblin,Creature Goblin,2/1,red,haste,unearth) text=({(b/r)} can be paid with either {B} or {R}.) -- {3}{B}, Discard a card: Target creature gets -2/-2 until end of turn. -- {3}{R}: Put a 2/1 red Goblin creature token with haste onto the battlefield. Exile it at the beginning of the next end step. mana={BR}{BR} @@ -88622,7 +88630,7 @@ toughness=4 [/card] [card] name=Ravenous Bloodseeker -auto={discard(*|myhand)}:2/-2 ueot +auto={D(*|myhand)}:2/-2 ueot text=Discard a card: Ravenous Bloodseeker gets +2/-2 until end of turn. mana={1}{R} type=Creature @@ -88925,7 +88933,7 @@ toughness=5 [card] name=Razormane Masticore auto=first strike -auto=upcost[{discard(*|myhand)}] sacrifice +auto=upcost[{D(*|myhand)}] sacrifice auto=@each my draw:may damage:3 target(creature) text=First strike (This creature deals combat damage before creatures without first strike.) -- At the beginning of your upkeep, sacrifice Razormane Masticore unless you discard a card. -- At the beginning of your draw step, you may have Razormane Masticore deal 3 damage to target creature. mana={5} @@ -90436,11 +90444,11 @@ type=Sorcery [card] name=Resilient Wanderer abilities=first strike -auto={discard(*|myhand)}:name(White) protection from white -auto={discard(*|myhand)}:name(Blue) protection from blue -auto={discard(*|myhand)}:name(Black) protection from black -auto={discard(*|myhand)}:name(Red) protection from red -auto={discard(*|myhand)}:name(Green) protection from green +auto={D(*|myhand)}:name(White) protection from white +auto={D(*|myhand)}:name(Blue) protection from blue +auto={D(*|myhand)}:name(Black) protection from black +auto={D(*|myhand)}:name(Red) protection from red +auto={D(*|myhand)}:name(Green) protection from green text=First strike -- Discard a card: Resilient Wanderer gains protection from the color of your choice until end of turn. mana={2}{W}{W} type=Creature @@ -91305,7 +91313,7 @@ toughness=4 [/card] [card] name=Ridged Kusite -auto={1}{B}{T}{discard(*|myhand)}:1/0 && first strike target(creature) +auto={1}{B}{T}{D(*|myhand)}:1/0 && first strike target(creature) text={1}{B}, {T}, Discard a card: Target creature gets +1/+0 and gains first strike until end of turn. mana={B} type=Creature @@ -93404,7 +93412,7 @@ toughness=5 [/card] [card] name=Rummaging Goblin -auto={t}{discard(*|myhand)}:draw:1 +auto={t}{D(*|myhand)}:draw:1 text={T}, Discard a card: Draw a card. mana={2}{R} type=Creature @@ -93726,7 +93734,7 @@ type=Land [/card] [card] name=Rushwood Herbalist -auto={G}{T}{discard(*|myhand)}:regenerate target(creature) +auto={G}{T}{D(*|myhand)}:regenerate target(creature) text={G}, {T}, Discard a card: Regenerate target creature. mana={2}{G} type=Creature @@ -93890,7 +93898,7 @@ name=Ruthless Disposal target=<2>creature auto=-13/-13 ueot text=As an additional cost to cast Ruthless Disposal, discard a card and sacrifice a creature. -- Two target creatures each get -13/-13 until end of turn. -mana={4}{B}{S(creature|mybattlefield)}{discard(*|myhand)} +mana={4}{B}{S(creature|mybattlefield)}{D(*|myhand)} type=Sorcery [/card] [card] @@ -95370,7 +95378,7 @@ type=Instant [card] name=Savage Conception auto=token(Beast,creature beast, 3/3,green) -retrace={3}{G}{G}{discard(land|myhand)} +retrace={3}{G}{G}{D(land|myhand)} text=Put a 3/3 green Beast creature token onto the battlefield. -- Retrace (You may cast this card from your graveyard by discarding a land card in addition to paying its other costs.) mana={3}{G}{G} type=Sorcery @@ -97774,7 +97782,7 @@ toughness=3 [/card] [card] name=Seismic Assault -auto={discard(land|myhand)}:damage:2 target(creature,player) +auto={D(land|myhand)}:damage:2 target(creature,player) text=Discard a land card: Seismic Assault deals 2 damage to target creature or player. mana={R}{R}{R} type=Enchantment @@ -97791,7 +97799,7 @@ toughness=4 [/card] [card] name=Seismic Mage -auto={2}{R}{T}{discard(*|myhand)}:destroy target(land) +auto={2}{R}{T}{D(*|myhand)}:destroy target(land) text={2}{R}, {T}, Discard a card: Destroy target land. mana={3}{R} type=Creature @@ -100367,7 +100375,7 @@ type=Instant name=Shred Memory target=*|graveyard auto=moveTo(exile) -autohand={1}{B}{B}{discard(this|myhand)}:moveTo(myhand) target(*[manacost=2]|mylibrary) asSorcery +autohand={1}{B}{B}{D(this|myhand)}:moveTo(myhand) target(*[manacost=2]|mylibrary) asSorcery text=Exile up to four target cards from a single graveyard. -- Transmute {1}{B}{B} ({1}{B}{B}, Discard this card: Search your library for a card with the same converted mana cost as this card, reveal it, and put it into your hand. Then shuffle your library. Transmute only as a sorcery.) mana={1}{B} type=Instant @@ -101577,7 +101585,7 @@ toughness=4 [/card] [card] name=Silverglade Pathfinder -auto={1}{G}{T}{discard(*|myhand)}:moveTo(myBattlefield) and!(tap(noevent))! target(basic|myLibrary) +auto={1}{G}{T}{D(*|myhand)}:moveTo(myBattlefield) and!(tap(noevent))! target(basic|myLibrary) text={1}{G}, {T}, Discard a card: Search your library for a basic land card and put that card onto the battlefield tapped. Then shuffle your library. mana={1}{G} type=Creature @@ -101659,7 +101667,7 @@ toughness=4 [/card] [card] name=Simian Brawler -auto={discard(land|myHand)}:1/1 +auto={D(land|myHand)}:1/1 text=Discard a land card: Simian Brawler gets +1/+1 until end of turn. mana={3}{G} type=Creature @@ -101860,7 +101868,7 @@ toughness=3 [/card] [card] name=Sinister Concoction -auto={B}{L}{discard(*|myhand)}{m}{S}:destroy target(creature) +auto={B}{L}{D(*|myhand)}{m}{S}:destroy target(creature) text={B}, Pay 1 life, Put the top card of your library into your graveyard, Discard a card, Sacrifice Sinister Concoction: Destroy target creature. mana={B} type=Enchantment @@ -102328,7 +102336,7 @@ subtype=Equipment [card] name=Skirge Familiar abilities=flying -auto={discard(*|myhand)}:Add{B} +auto={D(*|myhand)}:Add{B} text=Flying -- Discard a card: Add {B} to your mana pool. mana={4}{B} type=Creature @@ -102405,7 +102413,7 @@ toughness=1 [/card] [card] name=Skirk Ridge Exhumer -auto={B}{discard(*|myhand)}{T}:token(Festering Goblin) +auto={B}{D(*|myhand)}{T}:token(Festering Goblin) text={B}, {T}, Discard a card: Put a 1/1 black Zombie Goblin creature token named Festering Goblin onto the battlefield. It has "When Festering Goblin dies, target creature gets -1/-1 until end of turn." mana={1}{B} type=Creature @@ -102455,7 +102463,7 @@ toughness=2 [/card] [card] name=Skirsdag Supplicant -auto={b}{t}{discard(*|myhand)}:all(player) life:-2 +auto={b}{t}{D(*|myhand)}:all(player) life:-2 text={B}, {T}, Discard a card: Each player loses 2 life. mana={2}{B} type=Creature @@ -102701,7 +102709,7 @@ toughness=1 [card] name=Skullmead Cauldron auto={T}:life:1 -auto={T}{discard(*|myhand)}:life:3 +auto={T}{D(*|myhand)}:life:3 text={T}: You gain 1 life. -- {T}, Discard a card: You gain 3 life. mana={4} type=Artifact @@ -103229,7 +103237,7 @@ toughness=3 [card] name=Skyshroud Vampire abilities=flying -auto={discard(creature|myhand)}:2/2 +auto={D(creature|myhand)}:2/2 text=Flying -- Discard a creature card: Skyshroud Vampire gets +2/+2 until end of turn. mana={3}{B}{B} type=Creature @@ -103306,7 +103314,7 @@ toughness=1 [card] name=Skywing Aven abilities=flying -auto={discard(*|myhand)}:moveto(ownerhand) +auto={D(*|myhand)}:moveto(ownerhand) text=Flying -- Discard a card: Return Skywing Aven to its owner's hand. mana={2}{U} type=Creature @@ -103867,7 +103875,7 @@ toughness=7 [/card] [card] name=Sliversmith -auto={1}{T}{discard(*|myhand)}:token(Metallic Sliver,artifact creature sliver, 1/1) +auto={1}{T}{D(*|myhand)}:token(Metallic Sliver,artifact creature sliver, 1/1) text={1}, {T}, Discard a card: Put a 1/1 colorless Sliver artifact creature token named Metallic Sliver onto the battlefield. mana={2} type=Artifact Creature @@ -103965,7 +103973,7 @@ toughness=3 [/card] [card] name=Slumbering Tora -auto={2}{discard(*[spirit,arcane]|myhand)}:transforms((Artifact Creature Cat,setpower=storedmanacost,settoughness=storedtoughness)) ueot +auto={2}{D(*[spirit,arcane]|myhand)}:transforms((Artifact Creature Cat,setpower=storedmanacost,settoughness=storedtoughness)) ueot text={2}, Discard a Spirit or Arcane card: Slumbering Tora becomes an X/X Cat artifact creature until end of turn, where X is the discarded card's converted mana cost. mana={3} type=Artifact @@ -104163,7 +104171,7 @@ toughness=3 name=Snag auto=preventAllCombatDamage from(creature[-blocked]) ueot text=You may discard a Forest card rather than pay Snag's mana cost. -- Prevent all combat damage that would be dealt by unblocked creatures this turn. -other={discard(forest|myhand)} name(Discard Forest to Cast) +other={D(forest|myhand)} name(Discard Forest to Cast) mana={3}{G} type=Instant [/card] @@ -104680,7 +104688,7 @@ type=Instant [/card] [card] name=Solitary Confinement -auto=upcost[{discard(*|myhand)}] sacrifice +auto=upcost[{D(*|myhand)}] sacrifice auto=phasealter(remove,draw,controller) abilities=playershroud auto=preventalldamage to(controller) @@ -105003,7 +105011,7 @@ toughness=3 [/card] [card] name=Sophic Centaur -auto={2}{G}{G}{T}{discard(*|myhand)}:life:twicetype:*:myhand controller +auto={2}{G}{G}{T}{D(*|myhand)}:life:twicetype:*:myhand controller text={2}{G}{G}, {T}, Discard a card: You gain 2 life for each card in your hand. mana={3}{G} type=Creature @@ -105865,7 +105873,7 @@ toughness=1 [/card] [card] name=Sparkspitter -auto={R}{T}{discard(*|myhand)}:token(Spark Elemental) +auto={R}{T}{D(*|myhand)}:token(Spark Elemental) text={R}, {T}, Discard a card: Put a 3/1 red Elemental creature token named Spark Elemental onto the battlefield. It has trample, haste, and "At the beginning of the end step, sacrifice Spark Elemental." mana={2}{R} type=Creature @@ -108088,7 +108096,7 @@ toughness=1 [card] name=Stalking Bloodsucker abilities=flying -auto={1}{B}{discard(*|myhand)}:2/2 +auto={1}{B}{D(*|myhand)}:2/2 text=Flying -- {1}{B}, Discard a card: Stalking Bloodsucker gets +2/+2 until end of turn. mana={4}{B}{B} type=Creature @@ -108201,7 +108209,7 @@ subtype=Aura [/card] [card] name=Stampede Driver -auto={1}{G}{T}{discard(*|myhand)}:lord(creature|myBattlefield) 1/1 && lord(creature|mybattlefield) trample +auto={1}{G}{T}{D(*|myhand)}:lord(creature|myBattlefield) 1/1 && lord(creature|mybattlefield) trample text={1}{G}, {T}, Discard a card: Creatures you control get +1/+1 and gain trample until end of turn. mana={G} type=Creature @@ -108882,7 +108890,7 @@ type=Enchantment [/card] [card] name=Stern Constable -auto={T}{discard(*|myhand)}:tap target(creature) +auto={T}{D(*|myhand)}:tap target(creature) text={T}, Discard a card: Tap target creature. mana={W} type=Creature @@ -109123,7 +109131,7 @@ subtype=Equipment [card] name=Stitchwing Skaab abilities=flying -auto={1}{U}{discard(*|myhand)}{discard(*|myhand)}:moveto(mybattlefield) and!(tap(noevent))! +auto={1}{U}{D(*|myhand)}{D(*|myhand)}:moveto(mybattlefield) and!(tap(noevent))! text=Flying -- {1}{U}, Discard two cards: Return Stitchwing Skaab from your graveyard to the battlefield tapped. mana={3}{U} type=Creature @@ -110246,7 +110254,7 @@ toughness=2 [/card] [card] name=Stromkirk Condemned -auto={discard(*|myhand)}:all(vampire|mybattlefield) +1/+1 ueot limit:1 +auto={D(*|myhand)}:all(vampire|mybattlefield) +1/+1 ueot limit:1 text=Discard a card: Vampires you control get +1/+1 until end of turn. Activate this ability only once each turn. mana={B}{B} type=Creature @@ -110329,7 +110337,7 @@ toughness=1 [/card] [card] name=Stronghold Biologist -auto={U}{U}{T}{discard(*|myhand)}:fizzle target(creature|stack) +auto={U}{U}{T}{D(*|myhand)}:fizzle target(creature|stack) text={U}{U}, {T}, Discard a card: Counter target creature spell. mana={2}{U} type=Creature @@ -110347,7 +110355,7 @@ type=Sorcery [/card] [card] name=Stronghold Machinist -auto={U}{U}{T}{discard(*|myhand)}:fizzle target(*[-creature]|stack) +auto={U}{U}{T}{D(*|myhand)}:fizzle target(*[-creature]|stack) text={U}{U}, {T}, Discard a card: Counter target noncreature spell. mana={2}{U} type=Creature @@ -111546,7 +111554,7 @@ target=auto auto=trample auto=storedmanacost/0 text=As an additional cost to cast Surge of Strength, discard a red or green card. -- Target creature gains trample and gets +X/+0 until end of turn, where X is that creature's converted mana cost. -mana={R}{G}{discard(*[red;green]|myhand)} +mana={R}{G}{D(*[red;green]|myhand)} type=Instant [/card] [card] @@ -111687,7 +111695,7 @@ type=Sorcery [/card] [card] name=Survival of the Fittest -auto={G}{discard(creature|myhand)}:moveTo(myhand) target(creature|myLibrary) +auto={G}{D(creature|myhand)}:moveTo(myhand) target(creature|myLibrary) text={G}, Discard a creature card: Search your library for a creature card, reveal that card, and put it into your hand. Then shuffle your library. mana={1}{G} type=Enchantment @@ -112576,7 +112584,7 @@ name=Syphon Life target=player auto=life:-2 auto=life:2 controller -retrace={1}{B}{B}{discard(land|myhand)} +retrace={1}{B}{B}{D(land|myhand)} text=Target player loses 2 life and you gain 2 life. -- Retrace (You may cast this card from your graveyard by discarding a land card in addition to paying its other costs.) mana={1}{B}{B} type=Sorcery @@ -113373,7 +113381,7 @@ type=Land [card] name=Tarox Bladewing abilities=flying,haste -auto={discard(other *[share!name!]|myhand)}:dynamicability +auto={D(other *[share!name!]|myhand)}:dynamicability text=Flying, haste -- Grandeur - Discard another card named Tarox Bladewing: Tarox Bladewing gets +X/+X until end of turn, where X is its power. mana={2}{R}{R}{R} type=Legendary Creature @@ -114830,7 +114838,7 @@ toughness=1 [/card] [card] name=Thalakos Drifters -auto={discard(*|myhand)}:shadow +auto={D(*|myhand)}:shadow text=Discard a card: Thalakos Drifters gains shadow until end of turn. (This creature can block or be blocked by only creatures with shadow.) mana={2}{U}{U} type=Creature @@ -114860,7 +114868,7 @@ toughness=1 [card] name=Thalakos Scout abilities=shadow -auto={discard(*|myhand)}:moveTo(myhand) +auto={D(*|myhand)}:moveTo(myhand) text=Shadow (This creature can block or be blocked by only creatures with shadow.) -- Discard a card: Return Thalakos Scout to its owner's hand. mana={2}{U} type=Creature @@ -116006,7 +116014,7 @@ toughness=2 [/card] [card] name=Thraben Standard Bearer -auto={1}{W}{t}{discard(*|myhand)}:token(Human Soldier,creature Human Soldier,1/1,white) +auto={1}{W}{t}{D(*|myhand)}:token(Human Soldier,creature Human Soldier,1/1,white) text={1}{W}, {T}, Discard a card: Put a 1/1 white Human Soldier creature token onto the battlefield. mana={W} type=Creature @@ -117163,7 +117171,7 @@ toughness=1 [card] name=Tin Street Market target=land -auto=teach(land) transforms((,newability[{T}{discard(*|myhand)}:draw:1 controller])) +auto=teach(land) transforms((,newability[{T}{D(*|myhand)}:draw:1 controller])) text=Enchant land -- Enchanted land has "{T}, Discard a card: Draw a card." mana={4}{R} type=Enchantment @@ -117228,7 +117236,7 @@ toughness=2 [/card] [card] name=Tireless Tribe -auto={discard(*|myhand)}:0/4 +auto={D(*|myhand)}:0/4 text=Discard a card: Tireless Tribe gets +0/+4 until end of turn. mana={W} type=Creature @@ -117460,7 +117468,7 @@ toughness=1 [card] name=Tolarian Sentinel abilities=flying -auto={U}{T}{discard(*|myhand)}:moveTo(ownerhand) target(*|myBattlefield) +auto={U}{T}{D(*|myhand)}:moveTo(ownerhand) target(*|myBattlefield) text=Flying -- {U}, {T}, Discard a card: Return target permanent you control to its owner's hand. mana={3}{U} type=Creature @@ -117573,7 +117581,7 @@ toughness=3 [/card] [card] name=Tonic Peddler -auto={W}{T}{discard(*|myhand)}:life:3 target(player) +auto={W}{T}{D(*|myhand)}:life:3 target(player) text={W}, {T}, Discard a card: Target player gains 3 life. mana={1}{W} type=Creature @@ -117795,7 +117803,7 @@ subtype=Aura name=Tormenting Voice auto=draw:2 text=As an additional cost to cast Tormenting Voice, discard a card. -- Draw two cards. -mana={1}{R}{discard(*|myhand)} +mana={1}{R}{D(*|myhand)} type=Sorcery [/card] [card] @@ -117933,7 +117941,7 @@ type=Artifact [/card] [card] name=Tortured Existence -auto={discard(creature|myhand)}:moveTo(myhand) target(creature|mygraveyard) +auto={D(creature|myhand)}:moveTo(myhand) target(creature|mygraveyard) text={B}, Discard a creature card: Return target creature card from your graveyard to your hand. mana={B} type=Enchantment @@ -118266,7 +118274,7 @@ toughness=3 [/card] [card] name=Toymaker -auto={1}{T}{discard(*|myhand)}:target(artifact[-creature]) dynamicability transforms((creature,setpower=0,settoughness=0)) ueot +auto={1}{T}{D(*|myhand)}:target(artifact[-creature]) dynamicability transforms((creature,setpower=0,settoughness=0)) ueot text={1}, {T}, Discard a card: Target noncreature artifact becomes an artifact creature with power and toughness each equal to its converted mana cost until end of turn. (It retains its abilities.) mana={2} type=Artifact Creature @@ -118316,7 +118324,7 @@ toughness=1 [card] name=Trade Routes auto={1}:moveTo(ownerhand) target(land|myBattlefield) -auto={1}{discard(land|myhand)}:draw:1 +auto={1}{D(land|myhand)}:draw:1 text={1}: Return target land you control to its owner's hand. -- {1}, Discard a land card: Draw a card. mana={1}{U} type=Enchantment @@ -118334,7 +118342,7 @@ toughness=4 [/card] [card] name=Trading Post -auto={1}{T}{discard(*|myhand)}:life:4 +auto={1}{T}{D(*|myhand)}:life:4 auto={1}{T}{L}:token(Goat,Creature Goat,0/1,white) auto={1}{T}{S(creature|myBattlefield)}:moveTo(myhand) target(artifact|mygraveyard) auto={1}{T}{S(artifact|myBattlefield)}:draw:1 @@ -118442,7 +118450,7 @@ toughness=6 [/card] [card] name=Trained Pronghorn -auto={discard(*|myhand)}:all(this) prevent:9999 +auto={D(*|myhand)}:all(this) prevent:9999 text=Discard a card: Prevent all damage that would be dealt to Trained Pronghorn this turn. mana={1}{W} type=Creature @@ -119104,7 +119112,7 @@ subtype=Equipment [/card] [card] name=Trespasser il-Vec -auto={discard(*|myhand)}:shadow +auto={D(*|myhand)}:shadow text=Discard a card: Trespasser il-Vec gains shadow until end of turn. (It can block or be blocked by only creatures with shadow.) mana={2}{B} type=Creature @@ -119301,8 +119309,8 @@ subtype=Aura [/card] [card] name=Trickster Mage -auto={U}{T}{discard(*|myhand)}:tap target(artifact,creature,land) -auto={U}{T}{discard(*|myhand)}:untap target(artifact,creature,land) +auto={U}{T}{D(*|myhand)}:tap target(artifact,creature,land) +auto={U}{T}{D(*|myhand)}:untap target(artifact,creature,land) text={U}, {T}, Discard a card: You may tap or untap target artifact, creature, or land. mana={U} type=Creature @@ -119892,7 +119900,7 @@ toughness=1 [/card] [card] name=Tunneler Wurm -auto={discard(*|myhand)}:regenerate +auto={D(*|myhand)}:regenerate text=Discard a card: Regenerate Tunneler Wurm. mana={6}{G}{G} type=Creature @@ -120788,7 +120796,7 @@ toughness=2 [card] name=Undead Gladiator autohand=__CYCLING__({1}{B}) -autograveyard={1}{B}{discard(*|myhand)}:moveTo(myhand) myUpkeepOnly +autograveyard={1}{B}{D(*|myhand)}:moveTo(myhand) myUpkeepOnly text={1}{B}, Discard a card: Return Undead Gladiator from your graveyard to your hand. Activate this ability only during your upkeep. -- Cycling {1}{B} ({1}{B}, Discard this card: Draw a card.) mana={1}{B}{B} type=Creature @@ -120933,7 +120941,7 @@ type=Instant [/card] [card] name=Undertaker -auto={B}{T}{discard(*|myhand)}:moveTo(ownerhand) target(creature|mygraveyard) +auto={B}{T}{D(*|myhand)}:moveTo(ownerhand) target(creature|mygraveyard) text={B}, {T}, Discard a card: Return target creature card from your graveyard to your hand. mana={1}{B} type=Creature @@ -121708,7 +121716,7 @@ toughness=4 [/card] [card] name=Urborg Syphon-Mage -auto={2}{B}{T}{discard(*|myhand)}:life:-2 opponent && life:2 controller +auto={2}{B}{T}{D(*|myhand)}:life:-2 opponent && life:2 controller text={2}{B}, {T}, Discard a card: Each other player loses 2 life. You gain life equal to the life lost this way. mana={2}{B} type=Creature @@ -122194,7 +122202,7 @@ toughness=1 [/card] [card] name=Vampire Hounds -auto={discard(creature|myhand)}:2/2 +auto={D(creature|myhand)}:2/2 text=Discard a creature card: Vampire Hounds gets +2/+2 until end of turn. mana={2}{B} type=Creature @@ -123525,7 +123533,7 @@ toughness=5 name=Vexing Sphinx abilities=flying auto=@each my upkeep:counter(0/0,1,Age) -auto=thisforeach(counter{0/0.1.Age}) upcost[{discard(*|myhand)}] sacrifice +auto=thisforeach(counter{0/0.1.Age}) upcost[{D(*|myhand)}] sacrifice auto=@movedTo(this|graveyard) from(battlefield):thisforeach(counter{0/0.1.Age}) draw:1 controller text=Flying -- Cumulative upkeep - Discard a card. (At the beginning of your upkeep, put an age counter on this permanent, then sacrifice it unless you pay its upkeep cost for each age counter on it.) -- When Vexing Sphinx dies, draw a card for each age counter on it. mana={1}{U}{U} @@ -123707,7 +123715,7 @@ toughness=1 [/card] [card] name=Viashino Skeleton -auto={1}{B}{discard(*|myhand)}:regenerate +auto={1}{B}{D(*|myhand)}:regenerate text={1}{B}, Discard a card: Regenerate Viashino Skeleton. mana={3}{R} type=Creature @@ -125304,7 +125312,7 @@ subtype=Aura [/card] [card] name=Volrath the Fallen -auto={discard(creature|myhand)}:storedmanacost/storedmanacost ueot +auto={D(creature|myhand)}:storedmanacost/storedmanacost ueot text={1}{B}, Discard a creature card: Volrath the Fallen gets +X/+X until end of turn, where X is the discarded card's converted mana cost. mana={3}{B}{B}{B} type=Legendary Creature @@ -127206,7 +127214,7 @@ toughness=1 name=Waste Away auto=-5/-5 target(creature) text=As an additional cost to cast Waste Away, discard a card. -- Target creature gets -5/-5 until end of turn. -mana={4}{B}{discard(*|myhand)} +mana={4}{B}{D(*|myhand)} type=Instant [/card] [card] @@ -127334,7 +127342,7 @@ toughness=3 [/card] [card] name=Waterfront Bouncer -auto={U}{T}{discard(*|myhand)}:moveTo(ownerhand) target(creature) +auto={U}{T}{D(*|myhand)}:moveTo(ownerhand) target(creature) text={U}, {T}, Discard a card: Return target creature to its owner's hand. mana={1}{U} type=Creature @@ -128653,7 +128661,7 @@ subtype=Aura name=Wild Guess auto=draw:2 text=As an additional cost to cast Wild Guess, discard a card. -- Draw two cards. -mana={R}{R}{discard(*|myhand)} +mana={R}{R}{D(*|myhand)} type=Sorcery [/card] [card] @@ -128706,11 +128714,11 @@ toughness=4 [/card] [card] name=Wild Mongrel -auto={discard(*|myhand)}:name(becomes white ueot) 1/1 && transforms((,white)) ueot -auto={discard(*|myhand)}:name(becomes blue ueot) 1/1 && transforms((,blue)) ueot -auto={discard(*|myhand)}:name(becomes black ueot) 1/1 && transforms((,black)) ueot -auto={discard(*|myhand)}:name(becomes red ueot) 1/1 && transforms((,red)) ueot -auto={discard(*|myhand)}:name(becomes green ueot) 1/1 && transforms((,green)) ueot +auto={D(*|myhand)}:name(becomes white ueot) 1/1 && transforms((,white)) ueot +auto={D(*|myhand)}:name(becomes blue ueot) 1/1 && transforms((,blue)) ueot +auto={D(*|myhand)}:name(becomes black ueot) 1/1 && transforms((,black)) ueot +auto={D(*|myhand)}:name(becomes red ueot) 1/1 && transforms((,red)) ueot +auto={D(*|myhand)}:name(becomes green ueot) 1/1 && transforms((,green)) ueot text=Discard a card: Wild Mongrel gets +1/+1 and becomes the color of your choice until end of turn. mana={1}{G} type=Creature @@ -129877,7 +129885,7 @@ type=Instant [/card] [card] name=Wolf of Devil's Breach -auto=this(attacking) {1}{R}{discard(*|myhand)}:damage:storedmanacost target(creature,planeswalker) +auto=this(attacking) {1}{R}{D(*|myhand)}:damage:storedmanacost target(creature,planeswalker) text=Whenever Wolf of Devil's Breach attacks, you may pay {1}{R} and discard a card. If you do, Wolf of Devil's Breach deals damage to target creature or planeswalker equal to the discarded card's converted mana cost. mana={3}{R}{R} type=Creature @@ -130414,7 +130422,7 @@ toughness=15 [card] name=Worm Harvest auto=foreach(land|mygraveyard) token(Worm,creature worm,1/1,blackgreen) -retrace={2}{BG}{BG}{BG}{discard(land|myhand)} +retrace={2}{BG}{BG}{BG}{D(land|myhand)} text=Put a 1/1 black and green Worm creature token onto the battlefield for each land card in your graveyard. -- Retrace (You may cast this card from your graveyard by discarding a land card in addition to paying its other costs.) mana={2}{BG}{BG}{BG} type=Sorcery @@ -132028,7 +132036,7 @@ toughness=3 [/card] [card] name=Zombie Infestation -auto={discard(*|myhand)}{discard(*|myhand)}:token(Zombie,Creature Zombie,2/2,black) +auto={D(*|myhand)}{D(*|myhand)}:token(Zombie,Creature Zombie,2/2,black) text=Discard two cards: Put a 2/2 black Zombie creature token onto the battlefield. mana={1}{B} type=Enchantment diff --git a/projects/mtg/include/MTGCardInstance.h b/projects/mtg/include/MTGCardInstance.h index 1949b3468..5fe7d6016 100644 --- a/projects/mtg/include/MTGCardInstance.h +++ b/projects/mtg/include/MTGCardInstance.h @@ -266,6 +266,7 @@ public: int myconvertedcost; ManaCost * computeNewCost(MTGCardInstance * card,ManaCost * oldCost, ManaCost * refCost,bool noTrinisphere = false); int countTrini; + bool anymanareplacement; vectorimprintedCards; int attackCost; int attackCostBackup; diff --git a/projects/mtg/include/MTGDefinitions.h b/projects/mtg/include/MTGDefinitions.h index 31521b878..678a847a0 100644 --- a/projects/mtg/include/MTGDefinitions.h +++ b/projects/mtg/include/MTGDefinitions.h @@ -264,7 +264,8 @@ class Constants OPPNOMAXHAND = 142, CANTCREW = 143, HIDDENFACE = 144, - NB_BASIC_ABILITIES = 145, + ANYTYPEOFMANA = 145, + NB_BASIC_ABILITIES = 146, RARITY_S = 'S', //Special Rarity RARITY_M = 'M', //Mythics diff --git a/projects/mtg/src/CardDescriptor.cpp b/projects/mtg/src/CardDescriptor.cpp index 938d33628..ce412411a 100644 --- a/projects/mtg/src/CardDescriptor.cpp +++ b/projects/mtg/src/CardDescriptor.cpp @@ -388,7 +388,14 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card) } //Counters - if (anyCounter) + if (anyCounter == -1) + { + if (card->counters->mCount) + { + match = NULL; + } + } + else if (anyCounter) { if (!(card->counters->mCount)) { diff --git a/projects/mtg/src/GameObserver.cpp b/projects/mtg/src/GameObserver.cpp index 2a6f6f1a4..1f9802025 100644 --- a/projects/mtg/src/GameObserver.cpp +++ b/projects/mtg/src/GameObserver.cpp @@ -1119,6 +1119,26 @@ void GameObserver::Affinity() ///we handle trisnisphere seperately because its a desaster. if(card->getManaCost())//make sure we check, abiliy$!/token dont have a mancost object. { + //change cost to colorless for anytypeofmana ability + if(card->has(Constants::ANYTYPEOFMANA)) + { + card->anymanareplacement = true; + int convertedC = card->getManaCost()->getConvertedCost(); + card->getManaCost()->changeCostTo( NEW ManaCost(ManaCost::parseManaCost("{0}", NULL, card)) ); + for (int jj = 0; jj < convertedC; jj++) + { + card->getManaCost()->add(Constants::MTG_COLOR_ARTIFACT, 1); + } + } + else + { + if (card->anymanareplacement) + { + card->getManaCost()->changeCostTo( card->model->data->getManaCost() ); + card->anymanareplacement = false; + } + } + if (card->has(Constants::TRINISPHERE)) { for (int jj = card->getManaCost()->getConvertedCost(); jj < 3; jj++) diff --git a/projects/mtg/src/MTGCardInstance.cpp b/projects/mtg/src/MTGCardInstance.cpp index 62b6a2317..43d9f3330 100644 --- a/projects/mtg/src/MTGCardInstance.cpp +++ b/projects/mtg/src/MTGCardInstance.cpp @@ -241,6 +241,7 @@ void MTGCardInstance::initMTGCI() miracle = false; hasCopiedToken = false; countTrini = 0; + anymanareplacement = false; imprintedCards.clear(); attackCost = 0; attackCostBackup = 0; diff --git a/projects/mtg/src/MTGDefinitions.cpp b/projects/mtg/src/MTGDefinitions.cpp index 363f1a6e7..f9811f8e7 100644 --- a/projects/mtg/src/MTGDefinitions.cpp +++ b/projects/mtg/src/MTGDefinitions.cpp @@ -175,7 +175,8 @@ const char* Constants::MTGBasicAbilities[] = { "canblocktapped", "oppnomaxhand", "cantcrew", - "hiddenface"//test for facedown + "hiddenface",//test for facedown + "anytypeofmana" }; map Constants::MTGBasicAbilitiesMap; diff --git a/projects/mtg/src/TargetChooser.cpp b/projects/mtg/src/TargetChooser.cpp index b65f876b0..2e72d0680 100644 --- a/projects/mtg/src/TargetChooser.cpp +++ b/projects/mtg/src/TargetChooser.cpp @@ -746,6 +746,10 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta { cd->anyCounter = 1; } + else if (attribute.find("{notany}") != string::npos) + { + cd->anyCounter = -1; + } else { size_t start = attribute.find("{");