diff --git a/projects/mtg/bin/Res/sets/primitives/_macros.txt b/projects/mtg/bin/Res/sets/primitives/_macros.txt index 93cf80a20..5a9d53c93 100644 --- a/projects/mtg/bin/Res/sets/primitives/_macros.txt +++ b/projects/mtg/bin/Res/sets/primitives/_macros.txt @@ -22,7 +22,7 @@ #AUTO_DEFINE _PARTNER_ may name(Put partner in hand) moveto(myhand) target(*[partname]|mylibrary) # Goad -#AUTO_DEFINE _GOAD_ transforms((,newability[counter(0/0.1.Goaded) notrg],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] counter(0/0.-hascntgoaded.Goaded) notrg])) forever +#AUTO_DEFINE _GOAD_ transforms((,newability[counter(0/0.1.Goaded) notrg],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] counter(0/0.-hascntgoaded.Goaded) notrg])) forever # Rebound #AUTO_DEFINE _REBOUND_ if rebound then all(this|mystack) moveto(exile) and!( transforms((,newability[@rebounded:may name(Cast rebounded card) activate castcard(normal)])) forever )! @@ -208,7 +208,7 @@ # Exile card. Return it to the battlefield under its owner's control at the beginning of the next end step. # (blink)ueot doesn't work if a creature uses it on itself -#AUTO_DEFINE _BLINK_UEOT_ moveto(exile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveto(ownerbattlefield)])) forever )! +#AUTO_DEFINE _BLINK_UEOT_ moveto(exile) and!( transforms((,newability[phaseaction[end once checkex] moveto(ownerbattlefield)])) forever )! # Connives. (Draw a card, then discard a card. If you discarded a nonland card, put a +1/+1 counter on this creature.) #AUTO_DEFINE _CONNIVES_ draw:1 && transforms((,newability[if type(*[-land]|myhand)~morethan~0 then choice name(Discard a nonland) name(Discard a nonland) target(*[-land]|myhand) reject && counter(1/1) all(this)],newability[if type(land|myhand)~morethan~0 then choice name(Discard a land) name(Discard a land) target(land|myhand) reject])) oneshot diff --git a/projects/mtg/bin/Res/sets/primitives/borderline.txt b/projects/mtg/bin/Res/sets/primitives/borderline.txt index 15df95d83..9713a043d 100644 --- a/projects/mtg/bin/Res/sets/primitives/borderline.txt +++ b/projects/mtg/bin/Res/sets/primitives/borderline.txt @@ -88,7 +88,7 @@ toughness=4 [/card] [card] name=Abiding Grace -auto=@each my endofturn:transforms((,newability[if type(creature[manacost=1]|myGraveyard)~equalto~0 then name(Gain 1 life) name(Gain 1 life) life:1 controller],newability[if type(creature[manacost=1]|myGraveyard)~morethan~0 then choice name(Gain 1 life) name(Gain 1 life) life:1 controller],newability[if type(creature[manacost=1]|myGraveyard)~morethan~0 then choice name(Return creature) name(Return creature) target(creature[manacost=1]|myGraveyard) moveto(myBattlefield)])) oneshot +auto=@each my end:transforms((,newability[if type(creature[manacost=1]|myGraveyard)~equalto~0 then name(Gain 1 life) name(Gain 1 life) life:1 controller],newability[if type(creature[manacost=1]|myGraveyard)~morethan~0 then choice name(Gain 1 life) name(Gain 1 life) life:1 controller],newability[if type(creature[manacost=1]|myGraveyard)~morethan~0 then choice name(Return creature) name(Return creature) target(creature[manacost=1]|myGraveyard) moveto(myBattlefield)])) oneshot text=At the beginning of your end step, Choose one -- You gain 1 life. -- Return target creature card with mana value 1 from your graveyard to the battlefield. mana={2}{W} type=Enchantment @@ -173,8 +173,8 @@ type=Instant [card] name=Absorb Identity target=creature -auto=moveto(ownerhand) and!( transforms((,newability[counter(0/0.1.AbsorbEffect)],newability[phaseaction[endofturn once] counter(0/0.-1.AbsorbEffect)])) forever )! -auto=may name(Shapeshifters become copies) all(*[shapeshifter]|mybattlefield) transforms((,newability[copy all(creature[fresh;counter{0/0.1.AbsorbEffect}]|hand)],newability[phaseaction[endofturn once] flip(myorigname) undocpy])) forever +auto=moveto(ownerhand) and!( transforms((,newability[counter(0/0.1.AbsorbEffect)],newability[phaseaction[end once] counter(0/0.-1.AbsorbEffect)])) forever )! +auto=may name(Shapeshifters become copies) all(*[shapeshifter]|mybattlefield) transforms((,newability[copy all(creature[fresh;counter{0/0.1.AbsorbEffect}]|hand)],newability[phaseaction[end once] flip(myorigname) undocpy])) forever text=Return target creature to its owner's hand. You may have Shapeshifters you control become copies of that creature until end of turn. mana={1}{U} type=Instant @@ -193,7 +193,7 @@ toughness=1 name=Abuelo, Ancestral Echo abilities=flying auto=_WARD2_ -auto={1}{W}{U}:target(other creature,artifact|myBattlefield) moveto(exile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveto(ownerbattlefield)])) ueot )! +auto={1}{W}{U}:target(other creature,artifact|myBattlefield) moveto(exile) and!( transforms((,newability[phaseaction[end once checkex] moveto(ownerbattlefield)])) ueot )! text=Flying, ward {2} -- {1}{W}{U}: Exile another target creature or artifact you control. Return it to the battlefield under its owner's control at the beginning of the next end step. mana={1}{W}{U} type=Legendary Creature @@ -400,7 +400,7 @@ toughness=3 [/card] [card] name=Acolyte of Bahamut -auto=lord(creature[iscommander]|mybattlefield) transforms((,newability[this(counter{0/0.1.AcolyteEffect}=0) lord(*[dragon]|mycastingzone) altercost(colorless:-2)],newability[@movedto(*[dragon]|mystack):name(Dragon spell casted) counter(0/0.1.AcolyteEffect) notrg],newability[@each endofturn restriction{compare(hascntacolyteffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.AcolyteEffect)])) +auto=lord(creature[iscommander]|mybattlefield) transforms((,newability[this(counter{0/0.1.AcolyteEffect}=0) lord(*[dragon]|mycastingzone) altercost(colorless:-2)],newability[@movedto(*[dragon]|mystack):name(Dragon spell casted) counter(0/0.1.AcolyteEffect) notrg],newability[@each end restriction{compare(hascntacolyteffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.AcolyteEffect)])) text=Commander creatures you own have "The first Dragon spell you cast each turn costs {2} less to cast." mana={1}{G} type=Legendary Enchantment @@ -574,8 +574,8 @@ type=Instant name=Admiral Beckett Brass auto=lord(other pirate|mybattlefield) 1/1 auto=@combatdamagefoeof(player) from(*[pirate]|myBattlefield):counter(0/0,1,PirateDamage) all(this) -auto=@each my endofturn:this(counter{0/0.1.PirateDamage}>=3) removeallcounters(0/0,1,PirateDamage) && ability$!name(Gain control of permanent) name(Gain control of permanent) moveto(mybattlefield) target(*[-land]|opponentbattlefield)!$ controller -auto=@each my endofturn:this(counter{0/0.1.PirateDamage}<3) removeallcounters(0/0,1,PirateDamage) +auto=@each my end:this(counter{0/0.1.PirateDamage}>=3) removeallcounters(0/0,1,PirateDamage) && ability$!name(Gain control of permanent) name(Gain control of permanent) moveto(mybattlefield) target(*[-land]|opponentbattlefield)!$ controller +auto=@each my end:this(counter{0/0.1.PirateDamage}<3) removeallcounters(0/0,1,PirateDamage) text=Other Pirates you control get +1/+1. -- At the beginning of your end step, gain control of target nonland permanent controlled by a player who was dealt combat damage by three or more Pirates this turn. mana={1}{U}{B}{R} type=Legendary Creature @@ -1097,7 +1097,7 @@ toughness=6 [card] name=Agent of Treachery auto=moveTo(myBattlefield) target(*|opponentBattlefield) -auto=@each my endofturn:ability$!name(Choose one) choice name(You control 3 or more permanents you don't own) draw:3 controller _ choice name(You don't control 3 or more permanents you don't own) donothing!$ controller +auto=@each my end:ability$!name(Choose one) choice name(You control 3 or more permanents you don't own) draw:3 controller _ choice name(You don't control 3 or more permanents you don't own) donothing!$ controller text=When Agent of Treachery enters, gain control of target permanent. -- At the beginning of your end step, if you control three or more permanents you don't own, draw three cards. mana={5}{U}{U} type=Creature @@ -1126,7 +1126,7 @@ name=Aggression target=creature[-wall] auto=first strike auto=trample -auto=teach(creature) transforms((,newability[@each my endofturn restriction{didntattack}:destroy])) +auto=teach(creature) transforms((,newability[@each my end restriction{didntattack}:destroy])) text=Enchant non-Wall creature -- Enchanted creature has first strike and trample. -- At the beginning of the end step of enchanted creature's controller, destroy that creature if it didn't attack this turn. mana={2}{R} type=Enchantment @@ -1163,8 +1163,8 @@ type=Sorcery [/card] [card] name=Agitator Ant -auto=@each my endofturn:may name(Put 1/1 counters and goad) target(creature|mybattlefield) transforms((,newability[counter(1/1.2)],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever -auto=@each my endofturn:ability$!may name(Put 1/1 counters and goad) target(creature|mybattlefield) transforms((,newability[counter(1/1.2)],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever!$ opponent +auto=@each my end:may name(Put 1/1 counters and goad) target(creature|mybattlefield) transforms((,newability[counter(1/1.2)],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto=@each my end:ability$!may name(Put 1/1 counters and goad) target(creature|mybattlefield) transforms((,newability[counter(1/1.2)],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever!$ opponent text=At the beginning of your end step, each player may put two +1/+1 counters on a creature they control. Goad each creature that had counters put on it this way. (Until your next turn, those creatures attack each combat if able and attack a player other than you if able.) mana={2}{R} type=Creature @@ -1239,7 +1239,7 @@ toughness=2 [card] name=Aid from the Cowl aicode=activate transforms((,newability[may name(Put on battlefield) target(*[-instant;-sorcery;zpos<=1]|mylibrary) moveto(myBattlefield)])) oneshot -auto=@each my endofturn:if revolt then name(Look top card) name(Look top card) reveal:1 optionone target(*[-instant;-sorcery]|reveal) transforms((,newability[choice name(Put on battlefield) moveto(mybattlefield)],newability[choice name(Put on bottom) bottomoflibrary],newability[choice name(Put back) moveto(mylibrary)])) oneshot optiononeend optiontwo name(Put Back On Bottom) target(*|reveal) transforms((,newability[choice name(Put back) moveto(mylibrary)],newability[choice name(Put on bottom) bottomoflibrary])) oneshot optiontwoend revealend +auto=@each my end:if revolt then name(Look top card) name(Look top card) reveal:1 optionone target(*[-instant;-sorcery]|reveal) transforms((,newability[choice name(Put on battlefield) moveto(mybattlefield)],newability[choice name(Put on bottom) bottomoflibrary],newability[choice name(Put back) moveto(mylibrary)])) oneshot optiononeend optiontwo name(Put Back On Bottom) target(*|reveal) transforms((,newability[choice name(Put back) moveto(mylibrary)],newability[choice name(Put on bottom) bottomoflibrary])) oneshot optiontwoend revealend text=Revolt - At the beginning of your end step, if a permanent you controlled left the battlefield this turn, reveal the top card of your library. If it's a permanent card, you may put it onto the battlefield. Otherwise, you may put it on the bottom of your library. mana={3}{G}{G} type=Enchantment @@ -1624,7 +1624,7 @@ name=Alchemist's Gambit abilities=exiledeath other={4}{U}{U}{R} name(Cleave) auto=turns:+1 controller -auto=ifnot paid(alternative) then emblem transforms((,newability[@each my upkeep:phaseaction[endofturn once] winGame opponent])) forever dontremove +auto=ifnot paid(alternative) then emblem transforms((,newability[@each my upkeep:phaseaction[end once] winGame opponent])) forever dontremove text=Cleave {4}{U}{U}{R} (You may cast this spell for its cleave cost. If you do, remove the words in square brackets.) -- Take an extra turn after this one. During that turn, damage can't be prevented. [At the beginning of that turn's end step, you lose the game.] -- Exile Alchemist's Gambit. mana={1}{R}{R} type=Sorcery @@ -1885,7 +1885,7 @@ toughness=2 [card] name=Alora, Merry Thief abilities=backgroundpartner -auto=@each my blockers:may target(creature[attacking]|myBattlefield) transforms((,unblockable,newability[phaseaction[endofturn once] moveTo(ownerhand) ueot])) oneshot +auto=@each my blockers:may target(creature[attacking]|myBattlefield) transforms((,unblockable,newability[phaseaction[end once] moveTo(ownerhand) ueot])) oneshot text=Whenever you attack, up to one target attacking creature can't be blocked this turn. Return that creature to its owner's hand at the beginning of the next end step. -- Choose a Background (You can have a Background as a second commander.) mana={2}{U} type=Legendary Creature @@ -1985,7 +1985,7 @@ anyzone={0}:doubleside(Hakka, Whispering Raven) autostack=if paid(alternative) then name(Hakka, Whispering Raven) name(Hakka, Whispering Raven) flip(Hakka, Whispering Raven) forcetype(Legendary Creature) auto=this(variable{isflipped}<1) foreach(*[foretold]|myexile) 1/1 auto=this(variable{isflipped}<1) foreach(*|myhand) 1/1 -auto=@each my endofturn restriction{compare(isflipped)~equalto~0}:transforms((,newability[choice name(Creature) reveal:2 optionone name(Get Creature) target(<2>Creature|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Artifact) reveal:2 optionone name(Get Artifact) target(<2>artifact|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Enchantment) reveal:2 optionone name(Get Enchantment) target(<2>enchantment|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Instant) reveal:2 optionone name(Get Instant) target(<2>instant|reveal) moveto(ownerHand) optiononeend optiontwo name(put in grave) name(Bottom of library) bottomoflibrary optiontwoend revealend],newability[choice name(Land) reveal:2 optionone name(Get Land) target(<2>land|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Planeswalker) reveal:2 optionone name(Get Planeswalker) target(<2>planeswalker|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Sorcery) reveal:2 optionone name(Get Sorcery) target(<2>sorcery|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Tribal) reveal:2 optionone name(Get Tribal) target(<2>tribal|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend])) oneshot +auto=@each my end restriction{compare(isflipped)~equalto~0}:transforms((,newability[choice name(Creature) reveal:2 optionone name(Get Creature) target(<2>Creature|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Artifact) reveal:2 optionone name(Get Artifact) target(<2>artifact|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Enchantment) reveal:2 optionone name(Get Enchantment) target(<2>enchantment|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Instant) reveal:2 optionone name(Get Instant) target(<2>instant|reveal) moveto(ownerHand) optiononeend optiontwo name(put in grave) name(Bottom of library) bottomoflibrary optiontwoend revealend],newability[choice name(Land) reveal:2 optionone name(Get Land) target(<2>land|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Planeswalker) reveal:2 optionone name(Get Planeswalker) target(<2>planeswalker|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Sorcery) reveal:2 optionone name(Get Sorcery) target(<2>sorcery|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend],newability[choice name(Tribal) reveal:2 optionone name(Get Tribal) target(<2>tribal|reveal) moveto(ownerHand) optiononeend optiontwo name(Bottom of library) target(<2>*|reveal) bottomoflibrary optiontwoend revealend])) oneshot aicode=activate transforms((,newability[if type(*[creature;zpos<=2]|mylibrary)~equalto~0 then all(*[zpos<=2]|mylibrary) moveto(myreveal) and!( bottomoflibrary )! else all(*[creature;zpos<=2]|mylibrary) moveto(ownerHand) and!( all(*[-creature;zpos<=2]|mylibrary) moveto(myreveal) and!( bottomoflibrary )! )!])) oneshot text=Alrund gets +1/+1 for each card in your hand and each foretold card you own in exile. -- At the beginning of your end step, choose a card type, then reveal the top two cards of your library. Put all cards of the chosen type into your hand and the rest on the bottom of your library in any order. // {1}{U} Hakka, Whispering Raven mana={3}{U}{U} @@ -2604,7 +2604,7 @@ name=Angel of Destiny abilities=flying,double strike auto=@combatdamaged(player) from(creature|myBattlefield):life:thatmuch controller auto=@combatdamaged(player) from(creature|myBattlefield):life:thatmuch opponent -auto=@each my endofturn restriction{compare(lifetotalminusstartinglifeminusend)~morethan~14,type(Angel of Destiny[attacking]|myBattlefield)~morethan~0}:winGame controller +auto=@each my end restriction{compare(lifetotalminusstartinglifeminusend)~morethan~14,type(Angel of Destiny[attacking]|myBattlefield)~morethan~0}:winGame controller text=Flying, double strike -- Whenever a creature you control deals combat damage to a player, you and that player each gain that much life. -- At the beginning of your end step, if you have at least 15 life more than your starting life total, each player Angel of Destiny attacked this turn loses the game. mana={3}{W}{W} type=Creature @@ -3356,7 +3356,7 @@ type=Sorcery [card] name=Aphemia, the Cacophony abilities=flying -auto=@each my endofturn:may moveto(exile) target(enchantment|myGraveyard) && _ZOMBIETOKEN_ +auto=@each my end:may moveto(exile) target(enchantment|myGraveyard) && _ZOMBIETOKEN_ text=Flying -- At the beginning of your end step, you may exile an enchantment card from your graveyard. If you do, create a 2/2 black Zombie creature token. mana={1}{B} type=Legendary Enchantment Creature @@ -3488,7 +3488,7 @@ auto=cantattack auto=cantpwattack auto=cantblock auto=noactivatedability -auto=@each endofturn restriction{compare(power)~morethan~3}:destroy target(Arachnus Web|myBattlefield) +auto=@each end restriction{compare(power)~morethan~3}:destroy target(Arachnus Web|myBattlefield) text=Enchant creature -- Enchanted creature can't attack or block, and its activated abilities can't be activated. -- At the beginning of the end step, if enchanted creature's power is 4 or greater, destroy Arachnus Web. mana={2}{G} type=Enchantment @@ -3997,7 +3997,7 @@ toughness=4 [card] name=Archfiend of Despair abilities=flying,nolifegainopponent -auto=@each endofturn:life:-oplifelost opponent +auto=@each end:life:-oplifelost opponent text=Flying -- Your opponents can't gain life. -- At the beginning of each end step, each opponent loses life equal to the life that player lost this turn. (Damage causes loss of life.) mana={6}{B}{B} type=Creature @@ -4149,8 +4149,8 @@ subtype=Trap [card] name=Archivist of Gondor auto=@combatdamaged(player) from(*[iscommander]|mybattlefield) restriction{compare(pmonarch)~equalto~0,compare(omonarch)~equalto~0}:_MONARCH_CONTROLLER_ -auto=@each my endofturn restriction{compare(pmonarch)~morethan~0}:name(Draw a card) name(Draw a card) draw:1 controller -auto=@each opponent endofturn restriction{compare(omonarch)~morethan~0}:name(Draw a card) name(Draw a card) draw:1 opponent +auto=@each my end restriction{compare(pmonarch)~morethan~0}:name(Draw a card) name(Draw a card) draw:1 controller +auto=@each opponent end restriction{compare(omonarch)~morethan~0}:name(Draw a card) name(Draw a card) draw:1 opponent text=When your commander deals combat damage to a player, if there is no monarch, you become the monarch. -- At the beginning of the monarch's end step, that player draws a card. mana={2}{U} type=Creature @@ -4645,7 +4645,7 @@ type=Sorcery [card] name=Armed and Armored auto=all(vehicle|mybattlefield) transforms((Artifact Creature)) ueot -auto=name(Choose a dwarf) target(dwarf|mybattlefield) transforms((,newability[counter(0/0.1.ArmedEffect)],newability[target(equipment|mybattlefield) name(Choose equipments to attach) transforms((,newability[rehook all(dwarf[counter{0/0.1.ArmedEffect}]|mybattlefield)])) oneshot],newability[phaseaction[endofturn once] counter(0/0.-1.ArmedEffect)])) ueot +auto=name(Choose a dwarf) target(dwarf|mybattlefield) transforms((,newability[counter(0/0.1.ArmedEffect)],newability[target(equipment|mybattlefield) name(Choose equipments to attach) transforms((,newability[rehook all(dwarf[counter{0/0.1.ArmedEffect}]|mybattlefield)])) oneshot],newability[phaseaction[end once] counter(0/0.-1.ArmedEffect)])) ueot text=Vehicles you control become artifact creatures until end of turn. Choose a Dwarf you control. Attach any number of Equipment you control to it. mana={1}{W} type=Instant @@ -4924,12 +4924,12 @@ type=Instant name=Artificer Class auto=this(counter{0/0.1.ArtificerEffect}=0) lord(artifact|mycastingzone) altercost(colorless, -1) auto=@movedto(artifact|mystack):counter(0/0,1,ArtificerEffect) -auto=@each endofturn restriction{compare(hascntartificereffect)~morethan~0}:removeallcounters(0/0.1.ArtificerEffect) +auto=@each end restriction{compare(hascntartificereffect)~morethan~0}:removeallcounters(0/0.1.ArtificerEffect) auto=counter(0/0,1,Level) auto=this(variable{hascntlevel}=1) {1}{U}:name(Level 2) counter(0/0,1,Level) asSorcery auto=this(variable{hascntlevel}=2) {5}{U}:name(Level 3) counter(0/0,1,Level) asSorcery auto=@counteradded(0/0.1.Level) from(this) restriction{compare(hascntlevel)~equalto~2}:name(Exile cards) name(Exile cards) target(*[zpos=findfirsttypeartifact]|mylibrary) moveto(myexile) and!( moveto(myBattlefield) and!( all(*[zpos<=findfirsttypeartifact]|mylibrary) moveto(exile) and!( bottomoflibrary )! )! )! -auto=@counteradded(0/0.1.Level) from(this) restriction{compare(hascntlevel)~equalto~3}:name(Create a copy) transforms((,newability[@each my endofturn restriction{type(artifact|mybattlefield)~morethan~0}:name(Copy an artifact) target(artifact|mybattlefield) clone])) ueot +auto=@counteradded(0/0.1.Level) from(this) restriction{compare(hascntlevel)~equalto~3}:name(Create a copy) transforms((,newability[@each my end restriction{type(artifact|mybattlefield)~morethan~0}:name(Copy an artifact) target(artifact|mybattlefield) clone])) ueot text=(Gain the next level as a sorcery to add its ability.) -- The first artifact spell you cast each turn costs {1} less to cast. -- {1}{U}: Level 2 -- When this Class becomes level 2, reveal cards from the top of your library until you reveal an artifact card. Put that card into your hand and the rest on the bottom of your library in a random order. -- {5}{U}: Level 3 -- At the beginning of your end step, create a token that's a copy of target artifact you control. mana={1}{U} type=Enchantment @@ -5163,7 +5163,7 @@ toughness=* name=Ashcoat of the Shadow Swarm auto=_ATTACKING_name(Rats gain X/X) all(other rat|myBattlefield) type:rat:mybattlefield/type:rat:mybattlefield ueot auto=@combat(blocking) source(this):name(Rats gain X/X) all(other rat|myBattlefield) type:rat:mybattlefield/type:rat:mybattlefield ueot -auto=@each my endofturn:may name(Mill 4 cards) all(*[zpos<=3]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[all(*[zpos=4]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[may name(Return 2 rats) target(*[creature&rat]|mygraveyard) moveto(ownerHand)])) ueot )!])) ueot )! +auto=@each my end:may name(Mill 4 cards) all(*[zpos<=3]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[all(*[zpos=4]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[may name(Return 2 rats) target(*[creature&rat]|mygraveyard) moveto(ownerHand)])) ueot )!])) ueot )! text=Whenever Ashcoat of the Shadow Swarm attacks or blocks, other Rats you control get +X/+X until end of turn, where X is the number of Rats you control. -- At the beginning of your end step, you may mill four cards. If you do, return up to two Rat creature cards from your graveyard to your hand. (To mill a card, put the top card of your library into your graveyard.) mana={3}{B} type=Legendary Creature @@ -5257,7 +5257,7 @@ toughness=1 [card] name=Ashnod's Intervention target=creature -auto=transforms((,newability[2/0],newability[handdeath],newability[counter(0/0.1.AshnodEffect) notrg],newability[phaseaction[endofturn once sourceinplay] removeallcounters(0/0.1.AshnodEffect) notrg])) ueot +auto=transforms((,newability[2/0],newability[handdeath],newability[counter(0/0.1.AshnodEffect) notrg],newability[phaseaction[end once sourceinplay] removeallcounters(0/0.1.AshnodEffect) notrg])) ueot auto=emblem transforms((,newability[@movedto(creature[counter{0/0.1.AshnodEffect}]|exile) from(battlefield):name(Return to hand) all(trigger[to]) moveto(ownerHand)])) ueot text=Until end of turn, target creature gets +2/+0 and gains "When this creature dies or is put into exile from the battlefield, return it to its owner's hand." mana={B} @@ -5448,7 +5448,7 @@ type=Instant [card] name=Astarion, the Decadent abilities=deathtouch,lifelink -auto=@each my endofturn:ability$!name(Choose one) choice name(Feed) damage:oplifelost opponent _ choice name(Friends) life:lifegain!$ controller +auto=@each my end:ability$!name(Choose one) choice name(Feed) damage:oplifelost opponent _ choice name(Friends) life:lifegain!$ controller text=Deathtouch, lifelink -- At the beginning of your end step, choose one - -- - Feed - Target opponent loses life equal to the amount of life they lost this turn. -- - Friends - You gain life equal to the amount of life you gained this turn. mana={4}{W}{B} type=Legendary Creature @@ -5571,7 +5571,7 @@ name=Athreos, Shroud-Veiled abilities=indestructible auto=this(variable{orzhov}<7) transforms((removetypes,newability[becomes(Legendary Enchantment God)])) auto=this(variable{orzhov}>6) transforms((Legendary Enchantment Creature)) -auto=@each my endofturn:name(Put coin counter) target(other creature|battlefield) counter(0/0,1,Coin) +auto=@each my end:name(Put coin counter) target(other creature|battlefield) counter(0/0,1,Coin) auto=@movedto(graveyard) from(creature[counter{1/1.1.coin}]|battlefield):all(trigger[to]) moveTo(mybattlefield) auto=@movedto(exile) from(creature[counter{1/1.1.coin}]|battlefield):all(trigger[to]) moveTo(mybattlefield) text=Indestructible -- As long as your devotion to white and black is less than seven, Athreos isn't a creature. -- At the beginning of your end step, put a coin counter on another target creature. -- Whenever a creature with a coin counter on it dies or is put into exile, return that card to the battlefield under your control. @@ -6913,7 +6913,7 @@ subtype=Gate name=Balduvian Atrocity kicker={R} abilities=menace -auto=if paid(kicker) then target(creature[manacost<=3]|mygraveyard) transforms((,newability[moveto(mybattlefield)],newability[phaseaction[endofturn] sacrifice all(this)],newability[haste all(this)])) forever +auto=if paid(kicker) then target(creature[manacost<=3]|mygraveyard) transforms((,newability[moveto(mybattlefield)],newability[phaseaction[end] sacrifice all(this)],newability[haste all(this)])) forever text=Kicker {R} (You may pay an additional {R} as you cast this spell.) -- Menace -- When Balduvian Atrocity enters, if it was kicked, return target creature card with mana value 3 or less from your graveyard to the battlefield. It gains haste. Sacrifice it at the beginning of the next end step. mana={2}{B} type=Creature @@ -7547,7 +7547,7 @@ type=Sorcery [card] name=Barrin, Tolarian Archmage auto=may moveTo(ownerhand) target(other creature,planeswalker) -auto=@movedTo(*|myhand) from(battlefield):phaseaction[endofturn once] draw:1 controller limit:1 +auto=@movedTo(*|myhand) from(battlefield):phaseaction[end once] draw:1 controller limit:1 text=When Barrin, Tolarian Archmage enters, return up to one other target creature or planeswalker to its owner's hand. -- At the beginning of your end step, if a permanent was put into your hand from the battlefield this turn, draw a card. mana={1}{U}{U} type=Legendary Creature @@ -8544,8 +8544,8 @@ toughness=2 [/card] [card] name=Bellowing Mauler -auto=@each my endofturn:ability$!name(lose 4 life or sacrifice) choice life:-4 controller _ choice restriction{type(creature|mybattlefield)~morethan~0} sacrifice notatarget(creature[-token]|mybattlefield)!$ opponent -auto=@each my endofturn:ability$!name(lose 4 life or sacrifice) choice life:-4 controller _ choice restriction{type(creature|mybattlefield)~morethan~0} sacrifice notatarget(creature[-token]|mybattlefield)!$ controller +auto=@each my end:ability$!name(lose 4 life or sacrifice) choice life:-4 controller _ choice restriction{type(creature|mybattlefield)~morethan~0} sacrifice notatarget(creature[-token]|mybattlefield)!$ opponent +auto=@each my end:ability$!name(lose 4 life or sacrifice) choice life:-4 controller _ choice restriction{type(creature|mybattlefield)~morethan~0} sacrifice notatarget(creature[-token]|mybattlefield)!$ controller text=At the beginning of your end step, each player loses 4 life unless they sacrifice a nontoken creature. mana={4}{B} type=Creature @@ -8728,7 +8728,7 @@ toughness=1 [card] name=Bennie Bracks, Zoologist other={convoke} name(Convoke) -auto=@each endofturn restriction{type(*[token&fresh]|mybattlefield)~morethan~0}:draw:1 +auto=@each end restriction{type(*[token&fresh]|mybattlefield)~morethan~0}:draw:1 text=Convoke (Your creatures can help cast this spell. Each creature you tap while casting this spell pays for {1} or one mana of that creature's color.) -- At the beginning of each end step, if you created a token this turn, draw a card. mana={3}{W} type=Legendary Creature @@ -8833,7 +8833,7 @@ toughness=1 [card] name=Besmirch target=creature -auto=moveto(mybattlefield) and!( transforms((,newability[phaseaction[endofturn once sourceinplay] moveTo(ownerBattlefield)],newability[untap],newability[haste ueot],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever )! +auto=moveto(mybattlefield) and!( transforms((,newability[phaseaction[end once sourceinplay] moveTo(ownerBattlefield)],newability[untap],newability[haste ueot],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever )! text=Until end of turn, gain control of target creature and it gains haste. Untap and goad that creature. (Until your next turn, that creature attacks each combat if able and attacks a player other than you if able.) mana={1}{R}{R} type=Sorcery @@ -8929,7 +8929,7 @@ toughness=2 [card] name=Bhaal, Lord of Murder auto=this(variable{controllerlife}<=halfupstartinglife) indestructible -auto=@movedTo(other creature[-token]|graveyard) from(myBattlefield):name(Put 1/1 counter and goad) target(creature|battlefield) transforms((,newability[counter(1/1)],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto=@movedTo(other creature[-token]|graveyard) from(myBattlefield):name(Put 1/1 counter and goad) target(creature|battlefield) transforms((,newability[counter(1/1)],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever text=As long as your life total is less than or equal to half your starting life total, Bhaal, Lord of Murder has indestructible. -- Whenever another nontoken creature you control dies, put a +1/+1 counter on target creature and goad it. mana={2}{B}{R}{G} type=Legendary Creature @@ -9126,7 +9126,7 @@ toughness=4 name=Biogenic Ooze auto=create(Ooze:creature Ooze:2/2:green) auto={1}{G}{G}{G}:create(Ooze:creature Ooze:2/2:green) -auto=@each my endofturn:all(Ooze|mybattlefield) counter(1/1) +auto=@each my end:all(Ooze|mybattlefield) counter(1/1) text=When Biogenic Ooze enters, create a 2/2 green Ooze creature token. -- At the beginning of your end step, put a +1/+1 counter on each Ooze you control. -- {1}{G}{G}{G}: Create a 2/2 green Ooze creature token. mana={3}{G}{G} type=Creature @@ -9154,7 +9154,7 @@ restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) aicode=activate transforms((,newability[all(*[zpos<=2]|mylibrary) transforms((,newability[may name(Put on bottom of library) moveto(myreveal) and!( bottomoflibrary )!])) oneshot])) oneshot auto=_SCRY2_ -auto=@sacrificed(this):name(Return transformed) name(Return transformed) transforms((,newability[@each endofturn:name(Return transformed) flip(backside) forcetype(Creature Serpent)])) ueot +auto=@sacrificed(this):name(Return transformed) name(Return transformed) transforms((,newability[@each end:name(Return transformed) flip(backside) forcetype(Creature Serpent)])) ueot text=Defender -- When Biolume Egg enters, scry 2. -- When you sacrifice Biolume Egg, return it to the battlefield transformed under its owner's control at the beginning of the next end step. // Biolume Serpent mana={2}{U} type=Creature @@ -10826,7 +10826,7 @@ type=Artifact [card] name=Bloodsoaked Reveler backside=Restless Bloodseeker -auto=@each my endofturn restriction{compare(lifegain)~morethan~0}:name(Create Blood) token(Blood) +auto=@each my end restriction{compare(lifegain)~morethan~0}:name(Create Blood) token(Blood) auto={4}{B}:name(Opponent looses 2 life) life:-2 opponent && life:2 controller text=At the beginning of your end step, if you gained life this turn, create a Blood token. (It's an artifact with "{1}, {T}, Discard a card, Sacrifice this artifact: Draw a card.") -- {4}{B}: Each opponent loses 2 life and you gain 2 life. // Restless Bloodseeker color=black @@ -11021,7 +11021,7 @@ toughness=4 [card] name=Bloomwielder Dryads auto=_WARD2_ -auto=@each my endofturn:name(Put 1/1 counter) target(creature|myBattlefield) counter(1/1) +auto=@each my end:name(Put 1/1 counter) target(creature|myBattlefield) counter(1/1) text=Ward {2} (Whenever this creature becomes the target of a spell or ability an opponent controls, counter it unless that player pays {2}.) -- At the beginning of your end step, put a +1/+1 counter on target creature you control. color=green,white type=Creature @@ -11180,7 +11180,7 @@ auto=if type(creature|opponentbattlefield)~equalto~1 then name(Creature gets -3/ auto=if type(creature|opponentbattlefield)~morethan~1 then name(Creature gets -3/0) name(Creature gets -3/0) target(creature|opponentbattlefield) transforms((,newability[-3/0],newability[counter(0/0.1.DragonEffect)],newability[counter(0/0.1.DragonEffect3)])) uynt auto=@counteradded(0/0.1.DragonEffect3) from(creature|opponentbattlefield) once:if cantargetcard(*[fresh]|*) then may name(Creature gets -2/0) name(Creature gets -2/0) target(creature[-counter{0/0.1.DragonEffect}]|opponentbattlefield) transforms((,newability[-2/0],newability[counter(0/0.1.DragonEffect)],newability[counter(0/0.1.DragonEffect2)])) uynt auto=@counteradded(0/0.1.DragonEffect2) from(creature|opponentbattlefield) once:if cantargetcard(*[fresh]|*) then may name(Creature gets -1/0) name(Creature gets -1/0) target(creature[-counter{0/0.1.DragonEffect}]|opponentbattlefield) transforms((,newability[-1/0],newability[all(creature|mybattlefield) removeallcounters(0/0.1.DragonEffect)],newability[all(creature|mybattlefield) removeallcounters(0/0.1.DragonEffect3)],newability[all(creature|mybattlefield) removeallcounters(0/0.1.DragonEffect2)])) uynt -auto=@each endofturn:if cantargetcard(*[fresh]|*) then all(creature[counter{0/0.1.DragonEffect}]|opponentbattlefield) transforms((,newability[removeallcounters(0/0.1.DragonEffect)],newability[removeallcounters(0/0.1.DragonEffect3)],newability[removeallcounters(0/0.1.DragonEffect2)])) forever +auto=@each end:if cantargetcard(*[fresh]|*) then all(creature[counter{0/0.1.DragonEffect}]|opponentbattlefield) transforms((,newability[removeallcounters(0/0.1.DragonEffect)],newability[removeallcounters(0/0.1.DragonEffect3)],newability[removeallcounters(0/0.1.DragonEffect2)])) forever text=Flying -- Lightning Breath - When Blue Dragon enters, until your next turn, target creature an opponent controls gets -3/-0, up to one other target creature gets -2/-0, and up to one other target creature gets -1/-0. mana={5}{U}{U} type=Creature @@ -11234,7 +11234,7 @@ type=Sorcery [card] name=Boarded Window auto=lord(creature[attacking]|opponentbattlefield) -1/0 -auto=@each endofturn restriction{compare(pdcount)~morethan~3}:name(Exile) moveto(exile) all(this) +auto=@each end restriction{compare(pdcount)~morethan~3}:name(Exile) moveto(exile) all(this) text=Creatures attacking you get -1/-0. -- At the beginning of each end step, if you were dealt 4 or more damage this turn, exile Boarded Window. mana={3} type=Artifact @@ -12403,8 +12403,8 @@ name=Brainstealer Dragon abilities=flying auto=@movedto(*[-land]|mybattlefield) from(opponentzones):name(Opponent looses life) all(trigger[to]) transforms((,newability[life:-manacost opponent])) oneshot auto=@movedto(*[-land;counter{0/0.1.BrainExiled}]|mybattlefield):name(Opponent looses life) all(trigger[to]) transforms((,newability[life:-manacost opponent])) oneshot -auto=@each my endofturn:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(opponentexile) and!( counter(0/0.1.BrainExiled) )! -auto={0}:name(Cast exiled card) target(*[counter{0/0.1.BrainExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[counter(0/0.1.BrainExiled)],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.BrainExiled)])) ueot )! +auto=@each my end:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(opponentexile) and!( counter(0/0.1.BrainExiled) )! +auto={0}:name(Cast exiled card) target(*[counter{0/0.1.BrainExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[counter(0/0.1.BrainExiled)],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.BrainExiled)])) ueot )! text=Flying -- At the beginning of your end step, exile the top card of each opponent's library. You may play those cards for as long as they remain exiled. If you cast a spell this way, you may spend mana as though it were mana of any color to cast it. -- Whenever a nonland permanent an opponent owns enters under your control, they lose life equal to its mana value. mana={5}{B}{B} type=Creature @@ -12829,7 +12829,7 @@ type=Enchantment [card] name=Breeches, Brazen Plunderer abilities=menace,partner -auto=@combatdamagefoeof(player) from(*[pirate]|myBattlefield) turnlimited:all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once] moveTo(ownerexile)])) ueot )! +auto=@combatdamagefoeof(player) from(*[pirate]|myBattlefield) turnlimited:all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once] moveTo(ownerexile)])) ueot )! text=Menace -- Whenever one or more Pirates you control deal damage to your opponents, exile the top card of each of those opponents' libraries. You may play those cards this turn, and you may spend mana as though it were mana of any color to cast those spells. -- Partner (You can have two commanders if both have partner.) mana={3}{R} type=Legendary Creature @@ -12905,8 +12905,8 @@ toughness=4 name=Briarbridge Patrol auto=@damaged(creature) from(this):name(Investigate) _CLUE_ auto=@sacrificed(clue|myBattlefield):counter(0/0.1.ClueSac) notrg -auto=@each endofturn restriction{compare(hascntcluesac)~morethan~2}:name(Put creature in play) name(Put creature in play) target(creature|myhand) moveto(myBattlefield) -auto=@each endofturn:removeallcounters(0/0.1.ClueSac) +auto=@each end restriction{compare(hascntcluesac)~morethan~2}:name(Put creature in play) name(Put creature in play) target(creature|myhand) moveto(myBattlefield) +auto=@each end:removeallcounters(0/0.1.ClueSac) text=Whenever Briarbridge Patrol deals damage to one or more creatures, investigate. (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.") -- At the beginning of each end step, if you sacrificed three or more Clues this turn, you may put a creature card from your hand onto the battlefield. mana={3}{G} type=Creature @@ -13016,7 +13016,7 @@ type=Sorcery name=Brimaz, Blight of Oreskos auto=@movedTo(creature[artifact]|mystack):name(Incubate X) name(Incubate X) all(trigger[to]) transforms((,newability[name(Incubate X) name(Incubate X) token(Incubator) and!( counter(1/1.manacost) )!])) oneshot auto=@movedTo(creature[-artifact&phyrexian]|mystack):name(Incubate X) name(Incubate X) all(trigger[to]) transforms((,newability[name(Incubate X) name(Incubate X) token(Incubator) and!( counter(1/1.manacost) )!])) oneshot -auto=@movedTo(phyrexian|graveyard) from(mybattlefield):name(Phyrexian died) transforms((,newability[@each endofturn:name(Proliferate) _PROLIFERATE_])) ueot +auto=@movedTo(phyrexian|graveyard) from(mybattlefield):name(Phyrexian died) transforms((,newability[@each end:name(Proliferate) _PROLIFERATE_])) ueot text=Whenever you cast a Phyrexian creature or artifact creature spell, incubate X, where X is that spell's mana value. (Create an Incubator token with X +1/+1 counters on it and "{2}: Transform this artifact." It transforms into a 0/0 Phyrexian artifact creature.) -- At the beginning of each end step, if a Phyrexian died under your control this turn, proliferate. mana={2}{W}{B} type=Legendary Creature @@ -13255,8 +13255,8 @@ type=Instant [/card] [card] name=Brokers Ascendancy -auto=@each my endofturn:counter(1/1) all(creature|myBattlefield) -auto=@each my endofturn:counter(0/0,1,Loyalty) all(planeswalker|myBattlefield) +auto=@each my end:counter(1/1) all(creature|myBattlefield) +auto=@each my end:counter(0/0,1,Loyalty) all(planeswalker|myBattlefield) text=At the beginning of your end step, put a +1/+1 counter on each creature you control and a loyalty counter on each planeswalker you control. mana={G}{W}{U} type=Enchantment @@ -13407,7 +13407,7 @@ toughness=5 [/card] [card] name=Broodrage Mycoid -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then create(fungus:creature fungus:1/1:black:cantblock) +auto=@each my end:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then create(fungus:creature fungus:1/1:black:cantblock) text=At the beginning of your end step, if you descended this turn, create a 1/1 black Fungus creature token with "This creature can't block." (You descended if a permanent card was put into your graveyard from anywhere.) mana={3}{B} type=Creature @@ -13587,7 +13587,7 @@ type=Artifact [/card] [card] name=Bulette -auto=@each my endofturn restriction{morbid}:name(Put 1/1 counter) counter(1/1) +auto=@each my end restriction{morbid}:name(Put 1/1 counter) counter(1/1) text=At the beginning of your end step, if a creature died this turn, put a +1/+1 counter on Bulette. mana={3}{G} type=Creature @@ -13920,7 +13920,7 @@ type=Sorcery [/card] [card] name=Butterbur, Bree Innkeeper -auto=@each my endofturn restriction{type(food|mybattlefield)~equalto~0}:name(Create food) _FOOD_ +auto=@each my end restriction{type(food|mybattlefield)~equalto~0}:name(Create food) _FOOD_ text=At the beginning of your end step, if you don't control a Food, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") mana={2}{G}{W} type=Legendary Creature @@ -14139,7 +14139,7 @@ toughness=3 [/card] [card] name=Caetus, Sea Tyrant of Segovia -auto=@each my endofturn:may name(Untap 4 creatures) target(creature|battlefield) untap +auto=@each my end:may name(Untap 4 creatures) target(creature|battlefield) untap auto=lord(creature[-tapped]|mybattlefield) transforms((,newability[{T}:name(Pay 1 convoke for spell) name(Pay 1 convoke for spell) target(*[-creature]|myrestrictedcastingzone) transforms((,newability[changecost(colorless:-1)])) ueot])) text=Noncreature spells you cast have convoke. (Your creatures can help cast those spells. Each creature you tap while casting a noncreature spell pays for {1} or one mana of that creature's color.) -- At the beginning of your end step, untap up to four target creatures. type=Legendary Creature @@ -14578,7 +14578,7 @@ type=Sorcery [/card] [card] name=Canonized in Blood -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then counter(1/1) target(creature|myBattlefield) +auto=@each my end:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then counter(1/1) target(creature|myBattlefield) auto={5}{B}{B}{S}:create(vampire demon:creature vampire demon:4/3:white:black:flying) text=At the beginning of your end step, if you descended this turn, put a +1/+1 counter on target creature you control. (You descended if a permanent card was put into your graveyard from anywhere.) -- {5}{B}{B}, Sacrifice Canonized in Blood: Create a 4/3 white and black Vampire Demon creature token with flying. mana={1}{B} @@ -14619,7 +14619,7 @@ toughness=3 [card] name=Canyon Crab auto={1}{U}:2/-2 ueot -auto=@each my endofturn restriction{thisturn(*|mystack)~equalto~0}:_LOOT_ +auto=@each my end restriction{thisturn(*|mystack)~equalto~0}:_LOOT_ text={1}{U}: Canyon Crab gets +2/-2 until end of turn. -- At the beginning of your end step, if you haven't cast a spell from your hand this turn, draw a card, then discard a card. mana={1}{U} type=Creature @@ -14722,7 +14722,7 @@ auto=lord(horror|myBattlefield) menace auto=@combatdamaged(player) from(horror|myBattlefield):name(Opponent mills cards) deplete:thatmuch opponent auto=@movedTo(artifact|opponentgraveyard) from(opponentlibrary):all(trigger[to]) transforms((Captain)) ueot auto=@movedTo(creature|opponentgraveyard) from(opponentlibrary):all(trigger[to]) transforms((Captain)) ueot -auto=@each my endofturn:target(*[Captain]|opponentgraveyard) moveto(mybattlefield) +auto=@each my end:target(*[Captain]|opponentgraveyard) moveto(mybattlefield) text=Horrors you control have menace. -- Whenever a Horror you control deals combat damage to a player, that player mills that many cards. -- At the beginning of your end step, choose target artifact or creature card in an opponent's graveyard that was put there from their library this turn. Put it onto the battlefield under your control. mana={3}{U}{B} type=Legendary Creature @@ -15540,7 +15540,7 @@ toughness=1 name=Cathar's Call target=creature auto=teach(creature) vigilance -auto=teach(creature) transforms((,newability[@each my endofturn:name(Create human) token(Human^Creature Human^1/1^white)])) +auto=teach(creature) transforms((,newability[@each my end:name(Create human) token(Human^Creature Human^1/1^white)])) text=Enchant creature -- Enchanted creature has vigilance and "At the beginning of your end step, create a 1/1 white Human creature token." mana={2}{W} type=Enchantment @@ -15986,13 +15986,13 @@ auto=counter(0/0,1,IlluminatorEffect) notrg auto=@each beginofturn restriction{compare(hascntilluminatoreffect)~equalto~0}:name(Start effect) counter(0/0,1,IlluminatorEffect) notrg auto=name(Exile a card) target(*|graveyard) moveto(exile) and!( counter(0/0,1,IlluminatorExiled) notrg )! auto=_ATTACKING_name(Exile a card) transforms((,newability[name(Exile a card) target(*|graveyard) moveto(exile) and!( counter(0/0.1.IlluminatorExiled) notrg )!])) oneshot -auto=aslongas(creature[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(creature[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast creature) name(Cast creature) name(Cast creature) all(creature[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(mylibrary)])) ueot )! limit:1 -auto=aslongas(planeswalker[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(planeswalker[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast planeswalker) name(Cast planeswalker) name(Cast planeswalker) all(planeswalker[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(mylibrary)])) ueot )! limit:1 -auto=aslongas(instant[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(instant[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast instant) name(Cast instant) name(Cast instant) all(instant[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(mylibrary)])) ueot )! limit:1 -auto=aslongas(sorcery[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(sorcery[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast sorcery) name(Cast sorcery) name(Cast sorcery) all(sorcery[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(mylibrary)])) ueot )! limit:1 -auto=aslongas(enchantment[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(enchantment[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast enchantment) name(Cast enchantment) name(Cast enchantment) all(enchantment[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(mylibrary)])) ueot )! limit:1 -auto=aslongas(artifact[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(artifact[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast artifact) name(Cast artifact) name(Cast artifact) all(artifact[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(mylibrary)])) ueot )! limit:1 -auto=aslongas(tribal[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(tribal[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast tribal) name(Cast tribal) name(Cast tribal) all(tribal[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(mylibrary)])) ueot )! limit:1 +auto=aslongas(creature[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(creature[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast creature) name(Cast creature) name(Cast creature) all(creature[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(mylibrary)])) ueot )! limit:1 +auto=aslongas(planeswalker[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(planeswalker[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast planeswalker) name(Cast planeswalker) name(Cast planeswalker) all(planeswalker[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(mylibrary)])) ueot )! limit:1 +auto=aslongas(instant[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(instant[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast instant) name(Cast instant) name(Cast instant) all(instant[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(mylibrary)])) ueot )! limit:1 +auto=aslongas(sorcery[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(sorcery[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast sorcery) name(Cast sorcery) name(Cast sorcery) all(sorcery[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(mylibrary)])) ueot )! limit:1 +auto=aslongas(enchantment[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(enchantment[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast enchantment) name(Cast enchantment) name(Cast enchantment) all(enchantment[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(mylibrary)])) ueot )! limit:1 +auto=aslongas(artifact[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(artifact[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast artifact) name(Cast artifact) name(Cast artifact) all(artifact[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(mylibrary)])) ueot )! limit:1 +auto=aslongas(tribal[counter{0/0.1.IlluminatorExiled}]|exile) aslongas(tribal[zpos=1]|mylibrary) {C(0/0,-1,IlluminatorEffect)}:name(Cast tribal) name(Cast tribal) name(Cast tribal) all(tribal[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(mylibrary)])) ueot )! limit:1 text=Flying -- Whenever Cemetery Illuminator enters or attacks, exile a card from a graveyard. -- You may look at the top card of your library any time. -- Once each turn, you may cast a spell from the top of your library if it shares a card type with a card exiled with Cemetery Illuminator. mana={1}{U}{U} type=Creature @@ -16474,7 +16474,7 @@ type=Enchantment name=Chance for Glory auto=all(creature|myBattlefield) transforms((,indestructible)) forever auto=turns:+1 controller -auto=emblem transforms((,newability[@each my upkeep:phaseaction[endofturn once] winGame opponent])) forever dontremove +auto=emblem transforms((,newability[@each my upkeep:phaseaction[end once] winGame opponent])) forever dontremove text=Creatures you control gain indestructible. Take an extra turn after this one. At the beginning of that turn's end step, you lose the game. mana={1}{R}{W} type=Instant @@ -17227,7 +17227,7 @@ toughness=5 [card] name=Child of the Volcano abilities=trample -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then counter(1/1) +auto=@each my end:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then counter(1/1) text=Trample -- At the beginning of your end step, if you descended this turn, put a +1/+1 counter on Child of the Volcano. (You descended if a permanent card was put into your graveyard from anywhere.) mana={3}{R} type=Creature @@ -17364,7 +17364,7 @@ toughness=4 [card] name=Chishiro, the Shattered Blade auto=@movedTo(*[Aura;Equipment]|myBattlefield):create(spirit:creature spirit:2/2:red:menace) -auto=@each my endofturn:counter(1/1) all(creature[modified]|myBattlefield) +auto=@each my end:counter(1/1) all(creature[modified]|myBattlefield) text=Whenever an Aura or Equipment enters under your control, create a 2/2 red Spirit creature token with menace. -- At the beginning of your end step, put a +1/+1 counter on each modified creature you control. (Equipment, Auras you control, and counters are modifications.) mana={2}{R}{G} type=Legendary Creature @@ -19747,9 +19747,9 @@ type=Enchantment [/card] [card] name=Concord with the Kami -auto=@each my endofturn:if type(Equipment|mybattlefield)~morethan~0,type(creature|mybattlefield)~morethan~0 then may create(spirit:creature spirit:1/1) -auto=@each my endofturn:if type(creature[enchanted]|mybattlefield)~morethan~0 then may draw:1 -auto=@each my endofturn:may counter(1/1) target(creature[counter{any}]) +auto=@each my end:if type(Equipment|mybattlefield)~morethan~0,type(creature|mybattlefield)~morethan~0 then may create(spirit:creature spirit:1/1) +auto=@each my end:if type(creature[enchanted]|mybattlefield)~morethan~0 then may draw:1 +auto=@each my end:may counter(1/1) target(creature[counter{any}]) text=At the beginning of your end step, choose one or more - -- - Put a +1/+1 counter on target creature with a counter on it. -- - Draw a card if you control an enchanted creature. -- - Create a 1/1 colorless Spirit creature token if you control an equipped creature. mana={3}{G} type=Enchantment @@ -19801,7 +19801,7 @@ subtype=Desert [card] name=Conduit of Worlds auto=lord(land|mygraveyard) canplayfromgraveyard -auto={T} restriction{thisturn(*|mystack)~equalto~0}:name(Cast a spell from graveyard) target(*[-land;-instant;-sorcery]|mygraveyard) transforms((,newability[canplayfromgraveyard],newability[counter(0/0.1.ConduitEffect) notrg],newability[@each endofturn restriction{compare(hascntconduiteffect)~morethan~0}:name(Effect ends) counter(0/0.-hascntconduiteffect.ConduitEffect) notrg])) ueot asSorcery +auto={T} restriction{thisturn(*|mystack)~equalto~0}:name(Cast a spell from graveyard) target(*[-land;-instant;-sorcery]|mygraveyard) transforms((,newability[canplayfromgraveyard],newability[counter(0/0.1.ConduitEffect) notrg],newability[@each end restriction{compare(hascntconduiteffect)~morethan~0}:name(Effect ends) counter(0/0.-hascntconduiteffect.ConduitEffect) notrg])) ueot asSorcery auto=@movedto(*[counter{0/0.1.ConduitEffect}]|mystack) from(mygraveyard) turnlimited:name(Can't cast addition spells) transforms((,newability[maxCast(*)0 controller ueot])) ueot text=You may play lands from your graveyard. -- {T}: Choose target nonland permanent card in your graveyard. If you haven't cast a spell this turn, you may cast that card. If you do, you can't cast additional spells this turn. Activate only as a sorcery. mana={2}{G}{G} @@ -20254,7 +20254,7 @@ toughness=2 name=Contaminant Grafter abilities=trample,poisontoxic auto=@combatdamaged(player) from(creature|myBattlefield):_PROLIFERATE_ -auto=@each my endofturn restriction{compare(opponentpoisoncount)~morethan~2}:name(Draw a card) draw:1 controller && transforms((,newability[may name(Put land in play) target(land|myhand) moveto(mybattlefield)])) oneshot +auto=@each my end restriction{compare(opponentpoisoncount)~morethan~2}:name(Draw a card) draw:1 controller && transforms((,newability[may name(Put land in play) target(land|myhand) moveto(mybattlefield)])) oneshot text=Trample, toxic 1 -- Whenever one or more creatures you control deal combat damage to one or more players, proliferate. -- Corrupted - At the beginning of your end step, if an opponent has three or more poison counters, draw a card, then you may put a land card from your hand onto the battlefield. mana={4}{G} type=Creature @@ -20507,7 +20507,7 @@ toughness=4 [card] name=Coronation of Chaos target=creature -auto=transforms((,newability[cantblock ueot],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto=transforms((,newability[cantblock ueot],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever text=Up to three target creatures can't block this turn. Goad them. (Until your next turn, those creatures attack each combat if able and attack a player other than you if able.) mana={2}{R} type=Sorcery @@ -20563,7 +20563,7 @@ name=Corpses of the Lost auto=lord(skeleton|myBattlefield) 1/0 auto=lord(skeleton|myBattlefield) haste auto=create(skeleton pirate:creature skeleton pirate:2/2:black) -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then pay({L:1}) moveto(ownerhand) +auto=@each my end:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then pay({L:1}) moveto(ownerhand) text=Skeletons you control get +1/+0 and have haste. -- When Corpses of the Lost enters, create a 2/2 black Skeleton Pirate creature token. -- At the beginning of your end step, if you descended this turn, you may pay 1 life. If you do, return Corpses of the Lost to its owner's hand. (You descended if a permanent card was put into your graveyard from anywhere.) mana={2}{B} type=Enchantment @@ -20721,7 +20721,7 @@ name=Cosmic Intervention abilities=foretell autohand=_FORETELL_ autoexile={1}{W} restriction{compare(canforetellcast)~morethan~0}:name(Cast with foretell) name(Cast with foretell) activate castcard(alternative) -auto=emblem transforms((,newability[@movedto(*[-instant;-sorcery]|graveyard) from(mybattlefield):all(trigger[to]) transforms((,newability[moveto(exile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveto(ownerbattlefield)])) ueot )! ])) ueot])) ueot +auto=emblem transforms((,newability[@movedto(*[-instant;-sorcery]|graveyard) from(mybattlefield):all(trigger[to]) transforms((,newability[moveto(exile) and!( transforms((,newability[phaseaction[end once checkex] moveto(ownerbattlefield)])) ueot )! ])) ueot])) ueot text=If a permanent you control would be put into a graveyard from the battlefield this turn, exile it instead. Return it to the battlefield under its owner's control at the beginning of the next end step. -- Foretell {1}{W} (During your turn, you may pay 2 and exile this card from your hand face down. Cast it on a later turn for its foretell cost.) mana={3}{W} type=Instant @@ -20759,9 +20759,9 @@ toughness=3 [/card] [card] name=Cosmos Elixir -auto=@each my endofturn restriction{compare(lifetotal)~lessthan~compare(startinglife)}:life:2 controller -auto=@each my endofturn restriction{compare(lifetotal)~equalto~compare(startinglife)}:life:2 controller -auto=@each my endofturn restriction{compare(lifetotal)~morethan~compare(startinglife)}:draw:1 controller +auto=@each my end restriction{compare(lifetotal)~lessthan~compare(startinglife)}:life:2 controller +auto=@each my end restriction{compare(lifetotal)~equalto~compare(startinglife)}:life:2 controller +auto=@each my end restriction{compare(lifetotal)~morethan~compare(startinglife)}:draw:1 controller text=At the beginning of your end step, draw a card if your life total is greater than your starting life total. Otherwise, you gain 2 life. mana={4} type=Artifact @@ -21467,7 +21467,7 @@ toughness=3 [card] name=Crested Sunmare auto=lord(Other Horse|myBattlefield) indestructible -auto=@lifeof(player) turnlimited:transforms((,newability[@next endofturn:token(Horse,creature Horse,5/5,white)])) ueot +auto=@lifeof(player) turnlimited:transforms((,newability[@next end:token(Horse,creature Horse,5/5,white)])) ueot text=Other Horses you control have indestructible. -- At the beginning of each end step, if you gained life this turn, create a 5/5 white Horse creature token. mana={3}{W}{W} type=Creature @@ -22207,7 +22207,7 @@ toughness=2 [card] name=Cunning Rhetoric auto=@each blockers restriction{type(creature[attacking]|opponentbattlefield)~morethan~0}:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(exile) and!( counter(0/0.1.CunningExiled) )! -auto={0}:name(You can cast exiled card) target(*[counter{0/0.1.CunningExiled}]|exile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.CunningExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.CunningExiled)])) ueot )! +auto={0}:name(You can cast exiled card) target(*[counter{0/0.1.CunningExiled}]|exile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.CunningExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.CunningExiled)])) ueot )! text=Whenever an opponent attacks you and/or one or more planeswalkers you control, exile the top card of that player's library. You may play that card for as long as it remains exiled, and you may spend mana as though it were mana of any color to cast it. mana={2}{B} type=Enchantment @@ -22329,7 +22329,7 @@ name=Curious Obsession target=creature auto=teach(creature) 1/1 auto=teach(creature) transforms((,newability[@combatdamaged(player) from(this):may draw:1])) -auto=@each my combatends restriction{type(creature[attacking]|mybattlefield)~equalto~0}:phaseaction[endofturn once] sacrifice all(this) +auto=@each my combatends restriction{type(creature[attacking]|mybattlefield)~equalto~0}:phaseaction[end once] sacrifice all(this) text=Enchant creature -- Enchanted creature gets +1/+1 and has "Whenever this creature deals combat damage to a player, you may draw a card." -- At the beginning of your end step, if you didn't attack with a creature this turn, sacrifice Curious Obsession. mana={U} type=Enchantment @@ -22431,7 +22431,7 @@ subtype=Aura Curse name=Curse of Hospitality target=player auto=if compare(oppotgt)~morethan~0 then name(Target opponent) name(Target opponent) transforms((,newability[lord(creature[attacking]|mybattlefield) trample])) forever -auto=if compare(oppotgt)~morethan~0 then name(Target opponent) name(Target opponent) transforms((,newability[@combatdamagefoeof(player) from(creature|mybattlefield):name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile ueot],newability[anytypeofmana ueot],newability[phaseaction[endofturn once checkex] moveto(ownerexile)])) ueot )!])) forever +auto=if compare(oppotgt)~morethan~0 then name(Target opponent) name(Target opponent) transforms((,newability[@combatdamagefoeof(player) from(creature|mybattlefield):name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile ueot],newability[anytypeofmana ueot],newability[phaseaction[end once checkex] moveto(ownerexile)])) ueot )!])) forever auto=if compare(ctrltgt)~morethan~0 then name(Target yourself) name(Target yourself) transforms((,newability[lord(creature[attacking]|opponentbattlefield) trample])) forever auto=if compare(ctrltgt)~morethan~0 then name(Target yourself) name(Target yourself) transforms((,newability[@combatdamageof(player) from(creature|opponentbattlefield):name(Exile top card) all(*[zpos=1]|mylibrary) moveto(opponentexile) and!( transforms((,newability[canplayfromexile ueot],newability[anytypeofmana ueot],newability[phaseaction[opponent upkeep once checkex] moveto(ownerexile)])) ueot )!])) forever text=Enchant player -- Creatures attacking enchanted player have trample. -- Whenever a creature deals combat damage to enchanted player, that player exiles the top card of their library. Until end of turn, that creature's controller may play that card and they may spend mana as though it were mana of any color to cast that spell. @@ -22476,7 +22476,7 @@ subtype=Aura Curse name=Curse of Obsession target=player auto=@each targetedplayer draw:ability$!name(Draw 2 cards more) name(Draw 2 cards more) draw:2!$ targetedplayer -auto=@each targetedplayer endofturn:ability$!name(Discard hand) name(Discard hand) all(*|myhand) reject!$ targetedplayer +auto=@each targetedplayer end:ability$!name(Discard hand) name(Discard hand) all(*|myhand) reject!$ targetedplayer text=Enchant player -- At the beginning of enchanted player's draw step, that player draws two additional cards. -- At the beginning of enchanted player's end step, that player discards their hand. mana={4}{R} type=Enchantment @@ -22642,7 +22642,7 @@ toughness=2 [card] name=Cursed Mirror auto={T}:add{R} -auto=may name(Copy target creature) target(creature|battlefield) copy and!( all(this) transforms((,haste,newability[phaseaction[endofturn once] flip(Cursed Mirror) undocpy])) forever )! +auto=may name(Copy target creature) target(creature|battlefield) copy and!( all(this) transforms((,haste,newability[phaseaction[end once] flip(Cursed Mirror) undocpy])) forever )! text={T}: Add {R}. -- As Cursed Mirror enters, you may have it become a copy of any creature on the battlefield until end of turn, except it has haste. mana={2}{R} type=Artifact @@ -22851,7 +22851,7 @@ toughness=0 name=Cytoshape target=creature[-legendary] auto=counter(0/0.1.CytoshapeChoosen) notrg -auto=name(Choose a creature) target(creature|battlefield) transforms((,newability[all(creature[counter{0/0.1.CytoshapeChoosen}]|battlefield) copy and!( all(this) transforms((,newability[all(creature[counter{0/0.1.CytoshapeChoosen}]|battlefield) removeallcounters(0/0.1.CytoshapeChoosen)],newability[phaseaction[endofturn once] flip(myOrigName) undocpy])) ueot )!])) ueot +auto=name(Choose a creature) target(creature|battlefield) transforms((,newability[all(creature[counter{0/0.1.CytoshapeChoosen}]|battlefield) copy and!( all(this) transforms((,newability[all(creature[counter{0/0.1.CytoshapeChoosen}]|battlefield) removeallcounters(0/0.1.CytoshapeChoosen)],newability[phaseaction[end once] flip(myOrigName) undocpy])) ueot )!])) ueot text=Choose a nonlegendary creature on the battlefield. Target creature becomes a copy of that creature until end of turn. mana={1}{G}{U} type=Instant @@ -23046,8 +23046,8 @@ toughness=2 [/card] [card] name=Danse Macabre -auto=name(Sacrifice a creature) target(creature[-token]|mybattlefield) sacrifice and!( transforms((,newability[phaseaction[endofturn once] removeallcounters(0/0.1.DanseEffect)],newability[counter(0/0.1.DanseEffect)],newability[@dierolled(this|mygraveyard) from(controller) once:if compare(lastrollresultplustoughnessplusend)~lessthan~15 then target(creature[counter{0/0.1.DanseEffect}]|graveyard) moveto(mybattlefield) else target(creature[counter{0/0.1.DanseEffect}]|graveyard) moveto(mybattlefield)],newability[name(Roll a d20) rolld20 20 winability donothing winabilityend rolld20end])) ueot )! -auto=ability$!name(Sacrifice creature) name(Sacrifice creature) notatarget(creature[-token]|mybattlefield) sacrifice and!( transforms((,newability[phaseaction[endofturn once] removeallcounters(0/0.1.DanseEffect)],newability[counter(0/0.1.DanseEffect)])) ueot )! !$ opponent +auto=name(Sacrifice a creature) target(creature[-token]|mybattlefield) sacrifice and!( transforms((,newability[phaseaction[end once] removeallcounters(0/0.1.DanseEffect)],newability[counter(0/0.1.DanseEffect)],newability[@dierolled(this|mygraveyard) from(controller) once:if compare(lastrollresultplustoughnessplusend)~lessthan~15 then target(creature[counter{0/0.1.DanseEffect}]|graveyard) moveto(mybattlefield) else target(creature[counter{0/0.1.DanseEffect}]|graveyard) moveto(mybattlefield)],newability[name(Roll a d20) rolld20 20 winability donothing winabilityend rolld20end])) ueot )! +auto=ability$!name(Sacrifice creature) name(Sacrifice creature) notatarget(creature[-token]|mybattlefield) sacrifice and!( transforms((,newability[phaseaction[end once] removeallcounters(0/0.1.DanseEffect)],newability[counter(0/0.1.DanseEffect)])) ueot )! !$ opponent text=Each player sacrifices a nontoken creature. Roll a d20 and add the toughness of the creature you sacrificed this way. -- 1-14 | Return a creature card put into a graveyard this way to the battlefield under your control. -- 15+ | Return up to two creature cards put into a graveyard this way to the battlefield under your control mana={3}{B}{B} type=Sorcery @@ -23441,8 +23441,8 @@ type=Enchantment [card] name=Dawn of a New Age auto=counter(0/0,type:creature:myBattlefield,Hope) -auto=@each my endofturn restriction{compare(hascnthope)~morethan~0}:name(Remove hope counter) counter(0/0,-1,Hope) && draw:1 controller && if compare(hascnthope)~equalto~0 then name(Sacrifice and gain life) name(Sacrifice and gain life) sacrifice and!( life:4 controller )! -auto=@each my endofturn restriction{compare(hascnthope)~equalto~0}:name(Sacrifice and gain life) sacrifice and!( life:4 controller )! +auto=@each my end restriction{compare(hascnthope)~morethan~0}:name(Remove hope counter) counter(0/0,-1,Hope) && draw:1 controller && if compare(hascnthope)~equalto~0 then name(Sacrifice and gain life) name(Sacrifice and gain life) sacrifice and!( life:4 controller )! +auto=@each my end restriction{compare(hascnthope)~equalto~0}:name(Sacrifice and gain life) sacrifice and!( life:4 controller )! text=Dawn of a New Age enters with a hope counter on it for each creature you control. -- At the beginning of your end step, remove a hope counter from Dawn of a New Age. If you do, draw a card. Then if Dawn of a New Age has no hope counters on it, sacrifice it and you gain 4 life. mana={1}{W} type=Enchantment @@ -23559,7 +23559,7 @@ toughness=* [card] name=Daxos of Meletis auto=cantbeblockedby(creature[power>=3]) -auto=@combatdamagefoeof(player) from(this):name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(exile) and!( if cantargetcard(*[-land]|*) then moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[life:manacost controller],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)])) ueot )! )! +auto=@combatdamagefoeof(player) from(this):name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(exile) and!( if cantargetcard(*[-land]|*) then moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[life:manacost controller],newability[phaseaction[end once checkex] moveTo(ownerexile)])) ueot )! )! auto=@combatdamageof(player) from(this):name(Exile top card) all(*[zpos=1]|mylibrary) moveto(myexile) and!( if cantargetcard(*[-land]|*) then transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[life:manacost controller])) ueot )! text=Daxos of Meletis can't be blocked by creatures with power 3 or greater. -- Whenever Daxos of Meletis deals combat damage to a player, exile the top card of that player's library. You gain life equal to that card's mana value. Until end of turn, you may cast that card and you may spend mana as though it were mana of any color to cast it. mana={1}{W}{U} @@ -23595,7 +23595,7 @@ toughness=* name=Day abilities=shroud,indestructible,doublefacedeath,nofizzle backside=Night -auto=@each endofturn:name(Check if day or night) moveto(opponentbattlefield) and!( if thisturn(*|opponentstack)~equalto~0 then if type(*[nonight]|battlefield)~equalto~0 then name(It becomes night next turn) name(It becomes night next turn) name(It becomes night next turn) phaseaction[untap once sourceinplay] flip(backside) )! +auto=@each end:name(Check if day or night) moveto(opponentbattlefield) and!( if thisturn(*|opponentstack)~equalto~0 then if type(*[nonight]|battlefield)~equalto~0 then name(It becomes night next turn) name(It becomes night next turn) name(It becomes night next turn) phaseaction[untap once sourceinplay] flip(backside) )! auto=lord(*[nightbound]|battlefield) flip(backside) text=(If it becomes day or night or if a daybound permanent enters, track day/night for the rest of the game.) -- As it becomes day, transform all nightbound permanents. -- If a player casts no spells during their own turn, it becomes night next turn. type=Emblem @@ -23675,8 +23675,8 @@ type=Instant [card] name=Dazzling Sphinx abilities=flying -auto=@combatdamagefoeof(player) from(this):name(Reveal cards) transforms((,newability[all(*[zpos=oppofindfirsttypenonpermanent]|opponentlibrary) moveto(myexile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveto(opponentreveal) and!( bottomoflibrary )!],newability[canplayfromexile],newability[zerocast],newability[all(*[zpos<=oppofindfirsttypenonpermanent]|mylibrary) moveto(myreveal) and!( bottomoflibrary )!])) oneshot )!])) oneshot -auto=@combatdamageof(player) from(this):name(Reveal cards) transforms((,newability[all(*[zpos=findfirsttypenonpermanent]|mylibrary) moveto(myexile) and!( transforms((,newability[phaseaction[endofturn once checkex] bottomoflibrary],newability[canplayfromexile],newability[zerocast],newability[all(*[zpos<=findfirsttypenonpermanent]|mylibrary) moveto(myreveal) and!( bottomoflibrary )!])) oneshot )!])) oneshot +auto=@combatdamagefoeof(player) from(this):name(Reveal cards) transforms((,newability[all(*[zpos=oppofindfirsttypenonpermanent]|opponentlibrary) moveto(myexile) and!( transforms((,newability[phaseaction[end once checkex] moveto(opponentreveal) and!( bottomoflibrary )!],newability[canplayfromexile],newability[zerocast],newability[all(*[zpos<=oppofindfirsttypenonpermanent]|mylibrary) moveto(myreveal) and!( bottomoflibrary )!])) oneshot )!])) oneshot +auto=@combatdamageof(player) from(this):name(Reveal cards) transforms((,newability[all(*[zpos=findfirsttypenonpermanent]|mylibrary) moveto(myexile) and!( transforms((,newability[phaseaction[end once checkex] bottomoflibrary],newability[canplayfromexile],newability[zerocast],newability[all(*[zpos<=findfirsttypenonpermanent]|mylibrary) moveto(myreveal) and!( bottomoflibrary )!])) oneshot )!])) oneshot text=Flying -- Whenever Dazzling Sphinx deals combat damage to a player, that player exiles cards from the top of their library until they exile an instant or sorcery card. You may cast that card without paying its mana cost. Then that player puts the exiled cards that weren't cast this way on the bottom of their library in a random order. mana={3}{U}{U} type=Creature @@ -24031,7 +24031,7 @@ toughness=1 [card] name=Death-Priest of Myrkul auto=lord(*[zombie;vampire;skeleton]|myBattlefield) 1/1 -auto=@each my endofturn restriction{morbid}:pay({1}) name(Pay 1 and create skeleton) token(Skeleton,Creature Skeleton,1/1,black) +auto=@each my end restriction{morbid}:pay({1}) name(Pay 1 and create skeleton) token(Skeleton,Creature Skeleton,1/1,black) text=Skeletons, Vampires, and Zombies you control get +1/+1. -- At the beginning of your end step, if a creature died this turn, you may pay {1}. If you do, create a 1/1 black Skeleton creature token. mana={2}{B}{B} type=Creature @@ -24411,7 +24411,7 @@ toughness=2 [card] name=Deep Goblin Skulltaker abilities=menace -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then counter(1/1) +auto=@each my end:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then counter(1/1) text=Menace -- At the beginning of your end step, if you descended this turn, put a +1/+1 counter on Deep Goblin Skulltaker. (You descended if a permanent card was put into your graveyard from anywhere.) mana={2}{B} type=Creature @@ -24943,7 +24943,7 @@ type=Instant [card] name=Demonic Lore auto=draw:3 controller -auto=@each my endofturn:life:-twicetype:*:myhand +auto=@each my end:life:-twicetype:*:myhand text=When Demonic Lore enters, draw three cards. -- At the beginning of your end step, you lose 2 life for each card in your hand. mana={2}{B} type=Enchantment @@ -25003,7 +25003,7 @@ type=Land [/card] [card] name=Denethor, Ruling Steward -auto=@each my endofturn restriction{myhasdeadcreature}:name(Create soldier) token(Human Soldier,Creature Human Soldier,1/1,white) +auto=@each my end restriction{myhasdeadcreature}:name(Create soldier) token(Human Soldier,Creature Human Soldier,1/1,white) auto={2}{S(other creature|mybattlefield)}:name(Opponent loses life) lifeleech:-1 opponent text=At the beginning of your end step, if a creature died under your control this turn, create a 1/1 white Human Soldier creature token. -- {2}, Sacrifice another creature: Each opponent loses 1 life and you gain 1 life. mana={1}{W}{B} @@ -25196,7 +25196,7 @@ toughness=3 [card] name=Dermotaxi auto=this(variable{hasevict}=0) name(Imprint card from graveyard) imprint notatarget(creature|graveyard) -auto={T(creature|myBattlefield)}{T(creature|myBattlefield)}:transforms((,newability[all(creature[evictname]|exile) copy and!( all(this) transforms((Vehicle Artifact,newability[phaseaction[endofturn once] flip(Dermotaxi) undocpy])) forever )!])) oneshot +auto={T(creature|myBattlefield)}{T(creature|myBattlefield)}:transforms((,newability[all(creature[evictname]|exile) copy and!( all(this) transforms((Vehicle Artifact,newability[phaseaction[end once] flip(Dermotaxi) undocpy])) forever )!])) oneshot text=Imprint - As Dermotaxi enters, exile a creature card from a graveyard. -- Tap two untapped creatures you control: Until end of turn, Dermotaxi becomes a copy of the exiled card, except it's a Vehicle artifact in addition to its other types. mana={2} type=Artifact @@ -26061,7 +26061,7 @@ toughness=2 [card] name=Dire Fleet Daredevil abilities=first strike -auto=name(Exile instant or sorcery) name(Exile instant or sorcery) target(*[instant;sorcery]|opponentgraveyard) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[gainedexiledeath],newability[anytypeofmana],newability[phaseaction[endofturn once] moveTo(ownerexile)])) ueot )! +auto=name(Exile instant or sorcery) name(Exile instant or sorcery) target(*[instant;sorcery]|opponentgraveyard) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[gainedexiledeath],newability[anytypeofmana],newability[phaseaction[end once] moveTo(ownerexile)])) ueot )! text=First strike -- When Dire Fleet Daredevil enters, exile target instant or sorcery card from an opponent's graveyard. You may cast it this turn, and you may spend mana as though it were mana of any type to cast that spell. If that spell would be put into a graveyard this turn, exile it instead. mana={1}{R} type=Creature @@ -26126,7 +26126,7 @@ toughness=4 [/card] [card] name=Dire Fleet Warmonger -auto=@each my endofturn:may sacrifice notatarget(other creature|myBattlefield) && transforms((,newability[2/2 ueot],newability[trample ueot])) ueot all(this) +auto=@each my end:may sacrifice notatarget(other creature|myBattlefield) && transforms((,newability[2/2 ueot],newability[trample ueot])) ueot all(this) text=At the beginning of combat on your turn, you may sacrifice another creature. If you do, Dire Fleet Warmonger gets +2/+2 and gains trample until end of turn. (It can deal excess combat damage to the player or planeswalker it's attacking.) mana={1}{B}{R} type=Creature @@ -26477,7 +26477,7 @@ toughness=2 [card] name=Disorder in the Court target=creature|battlefield -auto=moveto(exile) and!( transforms((,newability[@each endofturn:name(Return tapped) moveto(ownerbattlefield) and!( tap(noevent) )!])) ueot )! +auto=moveto(exile) and!( transforms((,newability[@each end:name(Return tapped) moveto(ownerbattlefield) and!( tap(noevent) )!])) ueot )! auto=_CLUE_ text=Exile X target creatures, then investigate X times. Return the exiled cards to the battlefield tapped under their owners' control at the beginning of the next end step. (To investigate, create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.") mana={X}{W}{U} @@ -26933,7 +26933,7 @@ toughness=1 [/card] [card] name=Dogged Pursuit -auto=@each my endofturn:life:-1 opponent && life:1 controller +auto=@each my end:life:-1 opponent && life:1 controller text=At the beginning of your end step, each opponent loses 1 life and you gain 1 life. mana={3}{B} type=Enchantment @@ -26978,7 +26978,7 @@ toughness=3 [/card] [card] name=Dominating Vampire -auto=name(Gain control) target(creature[manacost<=type:vampire:mybattlefield]) moveto(mybattlefield) and!( transforms((,newability[untap],haste,newability[phaseaction[endofturn once sourceinplay] moveto(ownerbattlefield)])) ueot )! +auto=name(Gain control) target(creature[manacost<=type:vampire:mybattlefield]) moveto(mybattlefield) and!( transforms((,newability[untap],haste,newability[phaseaction[end once sourceinplay] moveto(ownerbattlefield)])) ueot )! text=When Dominating Vampire enters, gain control of target creature with mana value less than or equal to the number of Vampires you control until end of turn. Untap that creature. It gains haste until end of turn. mana={1}{R}{R} type=Creature @@ -26989,7 +26989,7 @@ toughness=3 [card] name=Domineering Will target=player -auto=ability$!name(Gain control) name(Gain control) target(creature[-attacking]|opponentbattlefield) moveto(mybattlefield) and!( transforms((,newability[untap],newability[mustblock],newability[phaseaction[endofturn once sourceinplay] moveto(ownerbattlefield)])) ueot )! !$ targetedplayer +auto=ability$!name(Gain control) name(Gain control) target(creature[-attacking]|opponentbattlefield) moveto(mybattlefield) and!( transforms((,newability[untap],newability[mustblock],newability[phaseaction[end once sourceinplay] moveto(ownerbattlefield)])) ueot )! !$ targetedplayer text=Target player gains control of up to three target nonattacking creatures until end of turn. Untap those creatures. They block this turn if able. mana={3}{U} type=Instant @@ -27060,7 +27060,7 @@ name=Doomed Artisan auto=lord(sculpture|mybattlefield) cantattack auto=lord(sculpture|mybattlefield) cantpwattack auto=lord(sculpture|mybattlefield) cantblock -auto=@each my endofturn:token(Sculpture,Artifact Creature Sculpture,0/0) and!(transforms((,newability[type:sculpture:mybattlefield/type:sculpture:mybattlefield cdaactive])) forever)! +auto=@each my end:token(Sculpture,Artifact Creature Sculpture,0/0) and!(transforms((,newability[type:sculpture:mybattlefield/type:sculpture:mybattlefield cdaactive])) forever)! text=Sculptures you control can't attack or block. -- At the beginning of your end step, create a colorless Sculpture artifact creature token with "This creature's power and toughness are each equal to the number of Sculptures you control." mana={2}{W} type=Creature @@ -27450,7 +27450,7 @@ type=Instant name=Dragon Cultist auto=@damaged(*[creature;planeswalker]|opponentbattlefield) from(*|myzones) restriction{compare(thatmuch)~morethan~4}:name(A source dealt damage) all(creature[iscommander]|mybattlefield) counter(0/0.1.DamageDealt) notrg auto=@damaged(player) from(*|myzones) restriction{compare(thatmuch)~morethan~4}:name(A source dealt damage) all(creature[iscommander]|mybattlefield) counter(0/0.1.DamageDealt) notrg -auto=lord(creature[iscommander]|mybattlefield) transforms((,newability[@each my endofturn restriction{compare(hascntdamagedealt)~morethan~0}:name(Create Dragon) token(Dragon^Creature Dragon^4/4^red^flying)],newability[@each my endofturn restriction{compare(hascntdamagedealt)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.DamageDealt)])) +auto=lord(creature[iscommander]|mybattlefield) transforms((,newability[@each my end restriction{compare(hascntdamagedealt)~morethan~0}:name(Create Dragon) token(Dragon^Creature Dragon^4/4^red^flying)],newability[@each my end restriction{compare(hascntdamagedealt)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.DamageDealt)])) text=Commander creatures you own have "At the beginning of your end step, if a source you controlled dealt 5 or more damage this turn, create a 4/4 red Dragon creature token with flying." mana={4}{R} type=Legendary Enchantment @@ -27889,7 +27889,7 @@ toughness=2 [card] name=Draugr Necromancer auto=@movedTo(creature[-token]|graveyard) from(opponentbattlefield):transforms((,newability[all(creature[zpos=type:*:opponentgraveyard]|opponentgraveyard) moveto(opponentexile) and!( counter(0/0.1.Ice) )!])) forever -auto={0}:name(Cast card with Ice counter) name(Cast card with Ice counter) target(creature[counter{0/0.1.Ice}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.Ice)],newability[canplayfromexile],newability[this(variable{snowdiffmana}>0) anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.Ice)])) ueot )! +auto={0}:name(Cast card with Ice counter) name(Cast card with Ice counter) target(creature[counter{0/0.1.Ice}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.Ice)],newability[canplayfromexile],newability[this(variable{snowdiffmana}>0) anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.Ice)])) ueot )! text=If a nontoken creature an opponent controls would die, exile that card with an ice counter on it instead. -- You may cast spells from among cards in exile your opponents own with ice counters on them, and you may spend mana from snow sources as though it were mana of any color to cast those spells. mana={3}{B} type=Snow Creature @@ -28020,7 +28020,7 @@ toughness=1 [card] name=Dreadfeast Demon abilities=flying -auto=@each my endofturn restriction{type(creature[-demon]|mybattlefield)~morethan~0}:name(Sacrifice a creature) target(creature[-demon]|mybattlefield) sacrifice and!( all(this) clone )! +auto=@each my end restriction{type(creature[-demon]|mybattlefield)~morethan~0}:name(Sacrifice a creature) target(creature[-demon]|mybattlefield) sacrifice and!( all(this) clone )! text=Flying -- At the beginning of your end step, sacrifice a non-Demon creature. If you do, create a token that's a copy of Dreadfeast Demon. mana={5}{B}{B} type=Creature @@ -28326,7 +28326,7 @@ toughness=1 [card] name=Dreamshaper Shaman aicode=activate transforms((,newability[all(*[zpos=findfirsttypepermanent]|mylibrary) moveto(myreveal) and!( transforms((,newability[if cantargetcard(*[-land]|*) then moveto(mybattlefield) else bottomoflibrary],newability[all(*[zpos<=findfirsttypepermanent]|mylibrary) moveto(myreveal) and!( bottomoflibrary )!])) oneshot )!])) oneshot -auto=@each my endofturn restriction{type(*[-land]|mybattlefield)~morethan~0}:may name(Sacrifice nonland and pay) target(*[-land]|mybattlefield) sacrifice and!( name(Pay 2R) pay({2}{R}) name(Pay 2R) reveal:1 revealzone(mylibrary) revealuntil(*[-land;-instant;-sorcery]|mylibrary) optionone name(Choose nonland permanent) target(*[-land;-instant;-sorcery]|reveal) moveto(mylibrary) and!( becomes(tobedre) ueot )! optiononeend optiontwo name(Put on Bottom) all(*|reveal) bottomoflibrary optiontwoend afterrevealed all(tobedre|mylibrary) moveto(mybattlefield) afterrevealedend revealend )! +auto=@each my end restriction{type(*[-land]|mybattlefield)~morethan~0}:may name(Sacrifice nonland and pay) target(*[-land]|mybattlefield) sacrifice and!( name(Pay 2R) pay({2}{R}) name(Pay 2R) reveal:1 revealzone(mylibrary) revealuntil(*[-land;-instant;-sorcery]|mylibrary) optionone name(Choose nonland permanent) target(*[-land;-instant;-sorcery]|reveal) moveto(mylibrary) and!( becomes(tobedre) ueot )! optiononeend optiontwo name(Put on Bottom) all(*|reveal) bottomoflibrary optiontwoend afterrevealed all(tobedre|mylibrary) moveto(mybattlefield) afterrevealedend revealend )! text=At the beginning of your end step, you may pay {2}{R} and sacrifice a nonland permanent. If you do, reveal cards from the top of your library until you reveal a nonland permanent card. Put that card onto the battlefield and the rest on the bottom of your library in a random order. mana={5}{R} type=Enchantment Creature @@ -29957,7 +29957,7 @@ subtype=Cave [card] name=Echoing Equation abilities=doublefacedeath -auto=name(All creatures becomes copy) target(creature|myBattlefield) transforms((,newability[phaseaction[endofturn once] counter(0/0.-1.EchoingEffect)],newability[counter(0/0.1.EchoingEffect)],newability[all(other creature|myBattlefield) transforms((,newability[all(creature[counter{0/0.1.EchoingEffect}]|myBattlefield) copy options(nolegend) and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(myorigname) undocpy])) forever )!])) ueot])) oneshot +auto=name(All creatures becomes copy) target(creature|myBattlefield) transforms((,newability[phaseaction[end once] counter(0/0.-1.EchoingEffect)],newability[counter(0/0.1.EchoingEffect)],newability[all(other creature|myBattlefield) transforms((,newability[all(creature[counter{0/0.1.EchoingEffect}]|myBattlefield) copy options(nolegend) and!( all(this) transforms((,newability[phaseaction[end once] flip(myorigname) undocpy])) forever )!])) ueot])) oneshot text=Choose target creature you control. Each other creature you control becomes a copy of it until end of turn, except those creatures aren't legendary if the chosen creature is legendary. // {1}{G}{G} Augmenter Pugilist mana={2}{U}{U} type=Sorcery @@ -30238,7 +30238,7 @@ toughness=3 [card] name=Elanor Gardner auto=name(Create food) _FOOD_ -auto=@sacrificed(food|mybattlefield) turnlimited:name(Sacrificed food) transforms((,newability[@each my endofturn:name(Search basic land) name(Search basic land) target(land[basic]|mylibrary) moveto(mybattlefield) and!( transforms((,newability[tap(noevent)],newability[shuffle])) oneshot )!])) ueot +auto=@sacrificed(food|mybattlefield) turnlimited:name(Sacrificed food) transforms((,newability[@each my end:name(Search basic land) name(Search basic land) target(land[basic]|mylibrary) moveto(mybattlefield) and!( transforms((,newability[tap(noevent)],newability[shuffle])) oneshot )!])) ueot text=When Elanor Gardner enters, create a Food token. -- At the beginning of your end step, if you sacrificed a Food this turn, you may search your library for a basic land card, put that card onto the battlefield tapped, then shuffle. mana={3}{G} type=Legendary Creature @@ -30262,7 +30262,7 @@ toughness=2 name=Elder Brain abilities=menace auto=_ATTACKING_name(Exile all cards) all(*|opponenthand) moveto(exile) and!( transforms((,newability[counter(0/0.1.ElderExiled) notrg],newability[draw:1 controller])) forever )! -auto={0}:name(Cast from opponent exile) target(*[counter{0/0.1.ElderExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.ElderExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.ElderExiled)])) ueot )! +auto={0}:name(Cast from opponent exile) target(*[counter{0/0.1.ElderExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.ElderExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.ElderExiled)])) ueot )! text=Menace -- Whenever Elder Brain attacks a player, exile all cards from that player's hand, then they draw that many cards. You may play lands and cast spells from among the exiled cards for as long as they remain exiled. If you cast a spell this way, you may spend mana as though it were mana of any color to cast it. mana={5}{B}{B} type=Creature @@ -31699,7 +31699,7 @@ toughness=5 [card] name=Enigmatic Incarnation aicode=activate moveTo(myBattlefield) target(creature[manacost=storedmanacostplus1plusend]|mylibrary) -auto=@each my endofturn:may {S(enchantment|mybattlefield)}:name(search a creature) reveal:plibrarycount optionone name(choose card) target(creature[manacost=storedmanacostplus1plusend]|reveal) moveto(ownerlibrary) and!( becomes(tobecast) ueot )! optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownerlibrary) and!( all(*|reveal) moveto(ownerlibrary) and!(shuffle)! )! optiontwoend afterrevealed all(tobecast|mylibrary) moveto(ownerlibrary) and!(activate castcard(putinplay))! afterrevealedend revealend +auto=@each my end:may {S(enchantment|mybattlefield)}:name(search a creature) reveal:plibrarycount optionone name(choose card) target(creature[manacost=storedmanacostplus1plusend]|reveal) moveto(ownerlibrary) and!( becomes(tobecast) ueot )! optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownerlibrary) and!( all(*|reveal) moveto(ownerlibrary) and!(shuffle)! )! optiontwoend afterrevealed all(tobecast|mylibrary) moveto(ownerlibrary) and!(activate castcard(putinplay))! afterrevealedend revealend text=At the beginning of your end step, you may sacrifice another enchantment. If you do, search your library for a creature card with mana value equal to 1 plus the sacrificed enchantment's mana value, put that card onto the battlefield, then shuffle. mana={2}{G}{U} type=Enchantment @@ -31822,7 +31822,7 @@ type=Sorcery [/card] [card] name=Enterprising Scallywag -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then _TREASURE_ +auto=@each my end:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then _TREASURE_ text=At the beginning of your end step, if you descended this turn, create a Treasure token. (You descended if a permanent card was put into your graveyard from anywhere.) mana={1}{R} type=Creature @@ -35055,7 +35055,7 @@ type=Instant [/card] [card] name=Far Traveler -auto=lord(creature[iscommander]|mybattlefield) transforms((,newability[@each my endofturn:may name(Exile a creature) target(creature[tapped]|mybattlefield) moveto(myexile) and!( moveto(ownerbattlefield) )!])) +auto=lord(creature[iscommander]|mybattlefield) transforms((,newability[@each my end:may name(Exile a creature) target(creature[tapped]|mybattlefield) moveto(myexile) and!( moveto(ownerbattlefield) )!])) text=Commander creatures you own have "At the beginning of your end step, exile up to one target tapped creature you control, then return it to the battlefield under its owner's control." mana={2}{W} type=Legendary Enchantment @@ -35063,7 +35063,7 @@ subtype=Background [/card] [card] name=Faramir, Field Commander -auto=@each my endofturn restriction{myhasdeadcreature}:name(Draw a card) name(Draw a card) draw:1 controller +auto=@each my end restriction{myhasdeadcreature}:name(Draw a card) name(Draw a card) draw:1 controller auto=@bearerchosen(other creature|mybattlefield):name(Create a soldier) token(Human Soldier,Creature Human Soldier,1/1,white) text=At the beginning of your end step, if a creature died under your control this turn, draw a card. -- Whenever the Ring tempts you, if you chose a creature other than Faramir, Field Commander as your Ring-bearer, create a 1/1 white Human Soldier creature token. mana={3}{W} @@ -35074,7 +35074,7 @@ toughness=3 [/card] [card] name=Faramir, Prince of Ithilien -auto=@each opponent endofturn:if oppoattacked then name(Create soldier) name(Create soldier) token(Human Soldier,Creature Human Soldier,1/1,white)*3 else name(Draw a card) name(Draw a card) draw:1 controller +auto=@each opponent end:if oppoattacked then name(Create soldier) name(Create soldier) token(Human Soldier,Creature Human Soldier,1/1,white)*3 else name(Draw a card) name(Draw a card) draw:1 controller text=At the beginning of your end step, choose an opponent. At the beginning of that player's next end step, you draw a card if they didn't attack you that turn. Otherwise, create three 1/1 white Human Soldier creature tokens. mana={2}{W}{U} type=Legendary Creature @@ -35085,7 +35085,7 @@ toughness=3 [card] name=Faramir, Steward of Gondor auto=@movedTo(creature[legendary&manacost>=4]|mybattlefield):name(You become the monarch) ability$!_MONARCH_CONTROLLER_!$ controller -auto=@each my endofturn restriction{compare(pmonarch)~morethan~0}:name(Create humans) name(Create humans) token(Human Soldier,Creature Human Soldier,1/1,white)*2 +auto=@each my end restriction{compare(pmonarch)~morethan~0}:name(Create humans) name(Create humans) token(Human Soldier,Creature Human Soldier,1/1,white)*2 text=Whenever a legendary creature with mana value 4 or greater enters under your control, you become the monarch. -- At the beginning of your end step, if you're the monarch, create two 1/1 white Human Soldier creature tokens. mana={1}{W}{U} type=Legendary Creature @@ -35463,7 +35463,7 @@ toughness=3 [card] name=Fearsome Whelp abilities=flying -auto=@each my endofturn:name(All dragons cost 1 less) all(dragon|myhand) name(All dragons cost 1 less) transforms((,newability[counter(0/0.1.PerpetualDragonCostLess) notrg],newability[changecost(colorless:-1) forcedalive])) forever +auto=@each my end:name(All dragons cost 1 less) all(dragon|myhand) name(All dragons cost 1 less) transforms((,newability[counter(0/0.1.PerpetualDragonCostLess) notrg],newability[changecost(colorless:-1) forcedalive])) forever auto=emblem transforms((,newability[@movedto(dragon|mycastingzone):name(Cost less) all(trigger[to]) name(Cost less) transforms((,newability[if compare(hascntperpetualDragonCostLess)~morethan~0 then changecost(colorless:-hascntperpetualDragonCostLess) forcedalive])) forever])) forever dontremove text=Flying -- At the beginning of your end step, each Dragon card in your hand perpetually gains "This spell costs {1} less to cast." mana={1}{R} @@ -35490,8 +35490,8 @@ type=Sorcery [/card] [card] name=Feast of the Victorious Dead -auto=@each my endofturn restriction{compare(bothalldeadcreature)~morethan~0}:name(Gain life) life:bothalldeadcreature -auto=@each my endofturn restriction{compare(bothalldeadcreature)~morethan~0}:name(Put 1/1 counters) thisforeach(variable{bothalldeadcreature}>0) ability$!name(Put 1/1 counter) target(creature|myBattlefield) counter(1/1)!$ controller +auto=@each my end restriction{compare(bothalldeadcreature)~morethan~0}:name(Gain life) life:bothalldeadcreature +auto=@each my end restriction{compare(bothalldeadcreature)~morethan~0}:name(Put 1/1 counters) thisforeach(variable{bothalldeadcreature}>0) ability$!name(Put 1/1 counter) target(creature|myBattlefield) counter(1/1)!$ controller text=At the beginning of your end step, if one or more creatures died this turn, you gain that much life and distribute that many +1/+1 counters among creatures you control. mana={W}{B} type=Enchantment @@ -35549,9 +35549,9 @@ type=Artifact name=Feather, the Redeemed abilities=flying auto=@targeted(creature|mybattlefield) from(sorcery|myzones):transforms((,newability[all(sorcery|mystack) moveto(exile)])) ueot -auto=@targeted(creature|mybattlefield) from(sorcery|myzones):name(Return sorcery from exile) transforms((,newability[name(Return sorcery from exile) phaseaction[endofturn] target(sorcery[fresh]|myexile) moveto(ownerHand)])) ueot +auto=@targeted(creature|mybattlefield) from(sorcery|myzones):name(Return sorcery from exile) transforms((,newability[name(Return sorcery from exile) phaseaction[end] target(sorcery[fresh]|myexile) moveto(ownerHand)])) ueot auto=@targeted(creature|mybattlefield) from(instant|myzones):transforms((,newability[all(instant|mystack) moveto(exile)])) ueot -auto=@targeted(creature|mybattlefield) from(instant|myzones):name(Return instant from exile) transforms((,newability[name(Return instant from exile) phaseaction[endofturn] target(instant[fresh]|myexile) moveto(ownerHand)])) ueot +auto=@targeted(creature|mybattlefield) from(instant|myzones):name(Return instant from exile) transforms((,newability[name(Return instant from exile) phaseaction[end] target(instant[fresh]|myexile) moveto(ownerHand)])) ueot text=Flying -- Whenever you cast an instant or sorcery spell that targets a creature you control, exile that card instead of putting it into your graveyard as it resolves. If you do, return it to your hand at the beginning of the next end step. mana={R}{W}{W} type=Legendary Creature @@ -36007,7 +36007,7 @@ toughness=4 [card] name=Feywild Caretaker auto=_INITIATIVE_CONTROLLER_ -auto=@each my endofturn restriction{compare(pinitiative)~morethan~0}:name(Create Faerie) token(Faerie,Creature Faerie Dragon,1/1,blue,flying) +auto=@each my end restriction{compare(pinitiative)~morethan~0}:name(Create Faerie) token(Faerie,Creature Faerie Dragon,1/1,blue,flying) text=When Feywild Caretaker enters, you take the initiative. -- At the beginning of your end step, if you have the initiative, create a 1/1 blue Faerie Dragon creature token with flying. mana={4}{U} type=Creature @@ -36105,7 +36105,7 @@ abilities=flying auto=@combatdamagefoeof(player) from(this):ability$!name(Exile a card) name(Exile a card) notatarget(*|myhand) moveto(myexile) and!( counter(0/0,1,FiendExiled) )! !$ opponent auto=@combatdamageof(player) from(this):name(Exile a card) target(*|myhand) moveto(myexile) and!( counter(0/0,1,FiendExiled) )! auto=lord(*[counter{0/0.1.FiendExiled}]|myexile) transforms((,newability[canplayfromexile])) -auto={0}:name(Cast card from opponent's exile) name(Cast card from opponent's exile) target(*[counter{0/0.1.FiendExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.FiendExiled)],newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.FiendExiled)])) ueot )! +auto={0}:name(Cast card from opponent's exile) name(Cast card from opponent's exile) target(*[counter{0/0.1.FiendExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.FiendExiled)],newability[canplayfromexile],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.FiendExiled)])) ueot )! auto={S(human|mybattlefield)}:regenerate text=Flying -- Whenever Fiend of the Shadows deals combat damage to a player, that player exiles a card from their hand. You may play that card for as long as it remains exiled. -- Sacrifice a Human: Regenerate Fiend of the Shadows. mana={3}{B}{B} @@ -36767,7 +36767,7 @@ name=Fires of Mount Doom auto=name(Damage creature) name(Damage creature) target(creature|opponentBattlefield) transforms((,newability[damage:2],newability[name(Destroy all equipments) all(myeqp) destroy])) oneshot auto={2}{R}:name(Exile top card) all(*[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile ueot],newability[counter(0/0.1.FiresExiled) notrg])) ueot )! auto=@movedto(*[counter{0/0.1.FiresExiled}]|mystack) from(myexile):name(Deals 2 damage) damage:2 opponent -auto=@each endofturn:name(Effect ends) all(*[counter{0/0.1.FiresExiled}]|myexile) transforms((,newability[counter(0/0.-hascntfiresexiled.FiresExiled) notrg])) oneshot +auto=@each end:name(Effect ends) all(*[counter{0/0.1.FiresExiled}]|myexile) transforms((,newability[counter(0/0.-hascntfiresexiled.FiresExiled) notrg])) oneshot text=When Fires of Mount Doom enters, it deals 2 damage to target creature an opponent controls. Destroy all Equipment attached to that creature. -- {2}{R}: Exile the top card of your library. You may play that card this turn. When you play a card this way, Fires of Mount Doom deals 2 damage to each player. mana={2}{R} type=Legendary Enchantment @@ -37042,7 +37042,7 @@ toughness=2 name=Flame Blitz abilities=cycling autohand=__CYCLING__({2}) -auto=@each my endofturn:damage:5 all(planeswalker) +auto=@each my end:damage:5 all(planeswalker) text=At the beginning of your end step, Flame Blitz deals 5 damage to each planeswalker. -- Cycling {2} ({2} , Discard this card: Draw a card.) mana={R} type=Enchantment @@ -37415,7 +37415,7 @@ toughness=4 [card] name=Fleeting Spirit auto={W}{E(*|mygraveyard)}{E(*|mygraveyard)}{E(*|mygraveyard)}:name(Gains first strike) transforms((,first strike)) ueot -auto={D(*|myhand)}:name(Exile and return) moveto(myexile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveto(ownerbattlefield)])) ueot )! +auto={D(*|myhand)}:name(Exile and return) moveto(myexile) and!( transforms((,newability[phaseaction[end once checkex] moveto(ownerbattlefield)])) ueot )! text={W}, Exile three cards from your graveyard: Fleeting Spirit gains first strike until end of turn. -- Discard a card: Exile Fleeting Spirit. Return it to the battlefield under its owner's control at the beginning of the next end step. mana={1}{W} type=Creature @@ -37789,7 +37789,7 @@ type=Artifact name=Foe-Razer Regent abilities=flying auto=may target(creature|opponentbattlefield) dynamicability -auto=@lord(creature|mybattlefield) dynamicability target(creature|opponentBattlefield):all(trigger[to]) endofturn:counter(1/1,2) +auto=@lord(creature|mybattlefield) dynamicability target(creature|opponentBattlefield):all(trigger[to]) end:counter(1/1,2) text=Flying -- When Foe-Razer Regent enters, you may have it fight target creature you don't control. -- Whenever a creature you control fights, put two +1/+1 counters on it at the beginning of the next end step. mana={5}{G}{G} type=Creature @@ -38052,7 +38052,7 @@ auto={T}{C(0/0,1,Omen)}:add{B} auto={T}{C(0/0,1,Omen)}:add{G} auto={T}{C(0/0,1,Omen)}:add{U} auto={T}{C(0/0,1,Omen)}:add{W} -auto=@each my endofturn restriction{compare(hascntomen)~morethan~2}:name(Transform) flip(backside) and!( untap )! +auto=@each my end restriction{compare(hascntomen)~morethan~2}:name(Transform) flip(backside) and!( untap )! text={T}: Add one mana of any color. Put an omen counter on Foreboding Statue. -- At the beginning of your end step, if there are three or more omen counters on Foreboding Statue, uptap it, then transform it. // Forsaken Thresher mana={3} type=Artifact Creature @@ -38556,7 +38556,7 @@ type=Sorcery [card] name=Fraying Sanity target=player -auto=@each endofturn:name(Mill cards) deplete:type:*[fresh]:targetedpersonsgraveyard targetedplayer +auto=@each end:name(Mill cards) deplete:type:*[fresh]:targetedpersonsgraveyard targetedplayer text=Enchant player -- At the beginning of each end step, enchanted player puts the top X cards of their library into their graveyard, where X is the number of cards put into that graveyard from anywhere this turn. mana={2}{U} type=Enchantment @@ -38879,7 +38879,7 @@ type=Sorcery [/card] [card] name=From the Rubble -auto=chooseatype transforms((,newability[@each my endofturn:target(creature[chosentype]|mygraveyard) moveTo(battlefield) _FINALITY_COUNTER_ ])) chooseend +auto=chooseatype transforms((,newability[@each my end:target(creature[chosentype]|mygraveyard) moveTo(battlefield) _FINALITY_COUNTER_ ])) chooseend text=As From the Rubble enters, choose a creature type. -- At the beginning of your end step, return target creature card of the chosen type from your graveyard to the battlefield with a finality counter on it. (If a creature with a finality counter on it would die, exile it instead.) mana={4}{W}{W} type=Enchantment @@ -39062,7 +39062,7 @@ name=Fruitcake Elemental abilities=indestructible auto={3}:name(Opponent gains control) moveTo(opponentBattlefield) target(Fruitcake Elemental|battlefield) auto={3}:name(You gain control) moveTo(myBattlefield) target(Fruitcake Elemental|battlefield) -auto=@each endofturn restriction{myturnonly}:damage:7 controller +auto=@each end restriction{myturnonly}:damage:7 controller text=Fruitcake Elemental is indestructible. -- At the end of your turn, Fruitcake Elemental deals 7 damage to you. -- {3}: Target player gains control of Fruitcake Elemental. mana={1}{G}{G} type=Creature @@ -39201,7 +39201,7 @@ type=Instant [/card] [card] name=Furious Rise -auto=@each my endofturn restriction{type(creature[power>=4]|myBattlefield)~morethan~0}:name(Exile top card) all(*[zpos=1]|mylibrary) moveto(exile) and!( transforms((,newability[canplayfromexile])) uent )! +auto=@each my end restriction{type(creature[power>=4]|myBattlefield)~morethan~0}:name(Exile top card) all(*[zpos=1]|mylibrary) moveto(exile) and!( transforms((,newability[canplayfromexile])) uent )! text=At the beginning of your end step, if you control a creature with power 4 or greater, exile the top card of your library. You may play that card until you exile another card with Furious Rise. mana={2}{R} type=Enchantment @@ -39209,7 +39209,7 @@ type=Enchantment [card] name=Furious Spinesplitter abilities=trample -auto=@each my endofturn:if compare(oplifelost)~morethan~0 then counter(1/1) +auto=@each my end:if compare(oplifelost)~morethan~0 then counter(1/1) text=Trample -- At the beginning of your end step, put a +1/+1 counter on Furious Spinesplitter for each opponent who was dealt damage this turn. mana={2}{RG}{RG} type=Creature @@ -39420,7 +39420,7 @@ name=Gadrak, the Crown-Scourge abilities=flying auto=aslongas(artifact|myBattlefield) cantattack <4 auto=aslongas(artifact|myBattlefield) cantpwattack <4 -auto=@each my endofturn:_TREASURE_*bothalldeadcreature +auto=@each my end:_TREASURE_*bothalldeadcreature text=Flying -- Gadrak, the Crown-Scourge can't attack unless you control four or more artifacts. -- At the beginning of your end step, create a Treasure token for each nontoken creature that died this turn. (It's an artifact with " {T}, Sacrifice this artifact: Add one mana of any color.") mana={2}{R} type=Legendary Creature @@ -40066,7 +40066,7 @@ toughness=5 [/card] [card] name=Garrulous Sycophant -auto=@each my endofturn restriction{compare(pmonarch)~morethan~0}:life:-1 opponent && life:1 controller +auto=@each my end restriction{compare(pmonarch)~morethan~0}:life:-1 opponent && life:1 controller text=At the beginning of your end step, if you're the monarch, each opponent loses 1 life and you gain 1 life. mana={2}{B} type=Creature @@ -40584,7 +40584,7 @@ toughness=3 [/card] [card] name=Geology Enthusiast -auto=@each my endofturn:name(Create powerstone) token(Powerstone) and!( tap(noevent) )! +auto=@each my end:name(Create powerstone) token(Powerstone) and!( tap(noevent) )! auto={6}:name(Draw and put counter) transforms((,newability[draw:1 controller],newability[counter(1/1)])) oneshot text=At the beginning of your end step, create a tapped Powerstone token. (It's an artifact with "{T}: Add {C}. This mana can't be spent to cast a nonartifact spell.") -- {6}: Draw a card and put a +1/+1 counter on Geology Enthusiast. mana={3}{U}{U} @@ -41015,7 +41015,7 @@ target=creature auto=teach(creature) 1/1 auto=teach(creature) deathtouch auto=teach(creature) mustattack -auto=@movedto(mytgt|graveyard) from(battlefield):name(Return to battlefield) all(this) name(Return to battlefield) transforms((,newability[phaseaction[endofturn once] moveto(mybattlefield)])) +auto=@movedto(mytgt|graveyard) from(battlefield):name(Return to battlefield) all(this) name(Return to battlefield) transforms((,newability[phaseaction[end once] moveto(mybattlefield)])) text=Enchant creature -- Enchanted creature gets +1/+1, has deathtouch, and is goaded. -- When enchanted creature dies, return Ghoulish Impetus to the battlefield at the beginning of the next end step. mana={2}{B} type=Enchantment @@ -41418,7 +41418,7 @@ toughness=3 [/card] [card] name=Gilraen, Dunedain Protector -auto={2}{T}:name(Exile other creature) target(other creature|myBattlefield) moveto(myexile) and!( transforms((,newability[choice name(Return to battlefield) moveto(ownerbattlefield)],newability[choice name(Don't return now) transforms((,newability[@each endofturn:name(Return on battlefield) moveto(ownerbattlefield) and!( transforms((,newability[counter(0/0.1.Lifelink)],newability[this(counter{0/0.1.Lifelink}>0) lifelink],newability[counter(0/0.1.Vigilance)],newability[this(counter{0/0.1.Vigilance}>0) vigilance])) forever )! ])) forever])) forever )! +auto={2}{T}:name(Exile other creature) target(other creature|myBattlefield) moveto(myexile) and!( transforms((,newability[choice name(Return to battlefield) moveto(ownerbattlefield)],newability[choice name(Don't return now) transforms((,newability[@each end:name(Return on battlefield) moveto(ownerbattlefield) and!( transforms((,newability[counter(0/0.1.Lifelink)],newability[this(counter{0/0.1.Lifelink}>0) lifelink],newability[counter(0/0.1.Vigilance)],newability[this(counter{0/0.1.Vigilance}>0) vigilance])) forever )! ])) forever])) forever )! text={2}, {T}: Exile another target creature you control. You may return that card to the battlefield under its owner's control. If you don't, at the beginning of the next end step, return that card to the battlefield under its owner's control with a vigilance counter and a lifelink counter on it. mana={2}{W} type=Legendary Creature @@ -42491,7 +42491,7 @@ toughness=3 [card] name=Gluntch, the Bestower abilities=flying -auto=@each my endofturn:name(Choose options) transforms((,newability[choice name(Players put counters and opponent draws) draw:1 opponent && target(creature|mybattlefield) counter(1/1.2)],newability[choice name(Players put counters and opponent creates treasure) _TREASURE_*2 opponent && target(creature|mybattlefield) counter(1/1.2)],newability[choice name(Players draws and opponent creates treasure) _TREASURE_*2 opponent && draw:1 controller],newability[choice name(Players draws and opponent put counters) draw:1 controller && ability$!name(Put 1/1 counters) target(creature|mybattlefield) counter(1/1.2)!$ opponent],newability[choice name(Players creates treasure and opponent draws) _TREASURE_*2 controller && draw:1 opponent],newability[choice name(Players creates treasure and opponent put counters) _TREASURE_*2 controller && ability$!name(Put 1/1 counters) target(creature|mybattlefield) counter(1/1.2)!$ opponent])) oneshot +auto=@each my end:name(Choose options) transforms((,newability[choice name(Players put counters and opponent draws) draw:1 opponent && target(creature|mybattlefield) counter(1/1.2)],newability[choice name(Players put counters and opponent creates treasure) _TREASURE_*2 opponent && target(creature|mybattlefield) counter(1/1.2)],newability[choice name(Players draws and opponent creates treasure) _TREASURE_*2 opponent && draw:1 controller],newability[choice name(Players draws and opponent put counters) draw:1 controller && ability$!name(Put 1/1 counters) target(creature|mybattlefield) counter(1/1.2)!$ opponent],newability[choice name(Players creates treasure and opponent draws) _TREASURE_*2 controller && draw:1 opponent],newability[choice name(Players creates treasure and opponent put counters) _TREASURE_*2 controller && ability$!name(Put 1/1 counters) target(creature|mybattlefield) counter(1/1.2)!$ opponent])) oneshot text=Flying -- At the beginning of your end step, choose a player. They put two +1/+1 counters on a creature they control. Choose a second player to draw a card. Then choose a third player to create two Treasure tokens. mana={1}{G}{W} type=Legendary Creature @@ -42550,7 +42550,7 @@ name=Glyph of Destruction target=*[wall;blocking]|mybattlefield auto=10/0 ueot auto=prevent:999 ueot -auto=transforms((,newability[phaseaction[endofturn once] destroy])) ueot +auto=transforms((,newability[phaseaction[end once] destroy])) ueot text=Target blocking Wall you control gets +10/+0 until end of combat. Prevent all damage that would be dealt to it this turn. Destroy it at the beginning of the next end step. mana={R} type=Instant @@ -42750,7 +42750,7 @@ type=Sorcery [card] name=Go-Shintai of Ancient Wars abilities=first strike -auto=@each my endofturn:may name(Pay 1 and deal damage) pay({1}) name(Pay 1 and deal damage) thisforeach(variable{type:shrine:mybattlefield}>0) ability$!name(Deal 1 damage) name(Deal 1 damage) damage:1 target(player,planeswalker)!$ controller +auto=@each my end:may name(Pay 1 and deal damage) pay({1}) name(Pay 1 and deal damage) thisforeach(variable{type:shrine:mybattlefield}>0) ability$!name(Deal 1 damage) name(Deal 1 damage) damage:1 target(player,planeswalker)!$ controller text=First strike -- At the beginning of your end step, you may pay {1}. When you do, Go-Shintai of Ancient Wars deals X damage to target player or planeswalker, where X is the number of Shrines you control. mana={2}{R} type=Legendary Enchantment Creature @@ -42761,7 +42761,7 @@ toughness=2 [card] name=Go-Shintai of Boundless Vigor abilities=trample -auto=@each my endofturn:may name(Pay 1 and put counters) pay({1}) name(Pay 1 and put counters) target(shrine|myBattlefield) counter(1/1,type:shrine:myBattlefield) +auto=@each my end:may name(Pay 1 and put counters) pay({1}) name(Pay 1 and put counters) target(shrine|myBattlefield) counter(1/1,type:shrine:myBattlefield) text=Trample -- At the beginning of your end step, you may pay {1}. When you do, put a +1/+1 counter on target Shrine for each Shrine you control. mana={1}{G} type=Legendary Enchantment Creature @@ -42772,7 +42772,7 @@ toughness=1 [card] name=Go-Shintai of Hidden Cruelty abilities=deathtouch -auto=@each my endofturn:may name(Pay 1 and destroy) pay({1}) name(Pay 1 and destroy) target(creature[toughness<=type:shrine|myBattlefield]|battlefield) destroy +auto=@each my end:may name(Pay 1 and destroy) pay({1}) name(Pay 1 and destroy) target(creature[toughness<=type:shrine|myBattlefield]|battlefield) destroy text=Deathtouch -- At the beginning of your end step, you may pay {1}. When you do, destroy target creature with toughness X or less, where X is the number of Shrines you control. mana={3}{B} type=Legendary Enchantment Creature @@ -42795,7 +42795,7 @@ toughness=4 [card] name=Go-Shintai of Lost Wisdom abilities=flying -auto=@each my endofturn:may name(Pay 1 and player mills cards) pay({1}) name(Pay 1 and player mills cards) transforms((,newability[choice name(Opponent mills cards) deplete:type:shrine:mybattlefield opponent],newability[choice name(You mill cards) deplete:type:shrine:mybattlefield controller])) ueot +auto=@each my end:may name(Pay 1 and player mills cards) pay({1}) name(Pay 1 and player mills cards) transforms((,newability[choice name(Opponent mills cards) deplete:type:shrine:mybattlefield opponent],newability[choice name(You mill cards) deplete:type:shrine:mybattlefield controller])) ueot text=Flying -- At the beginning of your end step, you may pay {1}. When you do, target player mills X cards, where X is the number of Shrines you control. (To mill a card, a player puts the top card of their library into their graveyard.) mana={1}{U} type=Legendary Enchantment Creature @@ -42806,7 +42806,7 @@ toughness=4 [card] name=Go-Shintai of Shared Purpose abilities=vigilance -auto=@each my endofturn:pay[[{1}]] && create(spirit:creature spirit:1/1)*type:shrine:myBattlefield +auto=@each my end:pay[[{1}]] && create(spirit:creature spirit:1/1)*type:shrine:myBattlefield text=Vigilance -- At the beginning of your end step, you may pay {1}. If you do, create a 1/1 colorless Spirit creature token for each Shrine you control. mana={3}{W} type=Legendary Enchantment Creature @@ -43371,7 +43371,7 @@ type=Artifact [card] name=God-Pharaoh's Statue auto=lord(*|opponentcastingzone) altercost(colorless,+2) -auto=@each my endofturn:life:-1 opponent +auto=@each my end:life:-1 opponent text=Spells your opponents cast cost {2} more to cast. -- At the beginning of your end step, each opponent loses 1 life. mana={6} type=Legendary Artifact @@ -43489,7 +43489,7 @@ name=Golden Guardian abilities=defender auto={2}:transforms((,newability[name(Fights another creature you control) name(Fights another creature you control) target(other creature|myBattlefield) dynamicability],newability[counter(0/0.1.GoldenFilp)])) ueot restriction{type(other creature|mybattlefield)~morethan~0} auto=@movedto(creature[counter{0/0.1.GoldenFilp}]|mygraveyard) from(battlefield):name(Return Golden Guardian to the battlefield transformed) name(Return Golden Guardian to the battlefield transformed) all(trigger[to]) name(Return Golden Guardian to the battlefield transformed) transforms((,newability[counter(0/0.1.GoldenFilp)])) forever -auto=@each endofturn:this(counter{0/0.1.GoldenFilp}>=1) removeallcounters(0/0,1,GoldenFilp) +auto=@each end:this(counter{0/0.1.GoldenFilp}>=1) removeallcounters(0/0,1,GoldenFilp) autograveyard=this(counter{0/0.1.GoldenFilp}>=1) flip(Gold-Forge Garrison) forcetype(land) text=Defender -- {2}: Golden Guardian fights another target creature you control. When Golden Guardian dies this turn, return it to the battlefield transformed under your control. mana={4} @@ -43757,7 +43757,7 @@ type=Instant [card] name=Gollum, Obsessed Stalker abilities=skulk -auto=@combatdamagefoeof(player) from(this):name(Dealt combat damage) emblem transforms((,newability[@each my endofturn restriction{compare(lifegain)~morethan~0}:name(Opponent loses life) life:-lifegain opponent])) ueot +auto=@combatdamagefoeof(player) from(this):name(Dealt combat damage) emblem transforms((,newability[@each my end restriction{compare(lifegain)~morethan~0}:name(Opponent loses life) life:-lifegain opponent])) ueot text=Skulk (This creature can't be blocked by creatures with greater power.) -- At the beginning of your end step, each opponent dealt combat damage this game by a creature named Gollum, Obsessed Stalker loses life equal to the amount of life you gained this turn. mana={1}{B} type=Legendary Creature @@ -43837,7 +43837,7 @@ name=Gonti, Lord of Luxury abilities=deathtouch aicode=activate target(*[zpos<=4]|opponentlibrary) moveto(opponentexile) and!( transforms((,newability[counter(0/0.1.GontiExiled)],newability[all(*[zpos<=3]|opponentlibrary) moveto(myreveal) and!( bottomoflibrary )!])) oneshot )! auto=name(look) reveal:4 revealzone(opponentlibrary) optionone name(Exile a card) target(*|reveal) moveto(opponentexile) and!( counter(0/0.1.GontiExiled) )! optiononeend optiontwo name(put on bottom) all(*|reveal) bottomoflibrary optiontwoend revealend -auto={0}:name(Cast card with Gonti) name(Cast card with Gonti) target(*[-land;counter{0/0.1.GontiExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.GontiExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.GontiExiled)])) ueot )! +auto={0}:name(Cast card with Gonti) name(Cast card with Gonti) target(*[-land;counter{0/0.1.GontiExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.GontiExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.GontiExiled)])) ueot )! text=Deathtouch -- When Gonti, Lord of Luxury enters, look at the top four cards of target opponent's library, exile one of them face down, then put the rest on the bottom of that library in a random order. You may look at and cast that card for as long as it remains exiled, and you may spend mana as though it were mana of any type to cast that spell. mana={2}{B}{B} type=Legendary Creature @@ -43859,9 +43859,9 @@ toughness=2 name=Gor Muldrak, Amphinologist auto=lord(*|mybattlefield) transforms((,newability[protection from(*[salamander])])) auto=preventalldamage to(controller) from(*[salamander]) -auto=@each my endofturn restriction{type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield)}:name(Create salamander) name(Create salamander) token(Salamander Warrior,Creature Warrior Salamander,4/3,blue) -auto=@each my endofturn restriction{type(creature|opponentbattlefield)~lessthan~type(creature|mybattlefield)}:name(Create salamander) name(Create salamander) token(Salamander Warrior,Creature Warrior Salamander,4/3,blue) opponent -auto=@each my endofturn restriction{type(creature|opponentbattlefield)~equalto~type(creature|mybattlefield)}:name(Create salamander) name(Create salamander) token(Salamander Warrior,Creature Warrior Salamander,4/3,blue) && token(Salamander Warrior,Creature Warrior Salamander,4/3,blue) opponent +auto=@each my end restriction{type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield)}:name(Create salamander) name(Create salamander) token(Salamander Warrior,Creature Warrior Salamander,4/3,blue) +auto=@each my end restriction{type(creature|opponentbattlefield)~lessthan~type(creature|mybattlefield)}:name(Create salamander) name(Create salamander) token(Salamander Warrior,Creature Warrior Salamander,4/3,blue) opponent +auto=@each my end restriction{type(creature|opponentbattlefield)~equalto~type(creature|mybattlefield)}:name(Create salamander) name(Create salamander) token(Salamander Warrior,Creature Warrior Salamander,4/3,blue) && token(Salamander Warrior,Creature Warrior Salamander,4/3,blue) opponent text=You and permanents you control have protection from Salamanders. -- At the beginning of your end step, each player who controls the fewest creatures creates a 4/3 blue Salamander Warrior creature token. mana={1}{G}{U} type=Legendary Creature @@ -44924,7 +44924,7 @@ toughness=2 [/card] [card] name=Griffin Aerie -auto=@each my endofturn restriction{compare(lifegain)~morethan~2}:token(Griffin Gri) controller +auto=@each my end restriction{compare(lifegain)~morethan~2}:token(Griffin Gri) controller text=At the beginning of your end step, if you gained 3 or more life this turn, create a 2/2 white Griffin creature token with flying. mana={1}{W} type=Enchantment @@ -45169,8 +45169,8 @@ name=Grishnakh, Brash Instigator other={2}{R} otherrestriction=type(army|mybattlefield)~equalto~0 restriction=type(army|mybattlefield)~morethan~0 -auto=ifnot paid(alternative) then name(Put 1/1 counters) name(Put 1/1 counters) target(army|myBattlefield) transforms((Orc,newability[counter(1/1.2)],newability[name(Steal creature) target(creature[-legendary&power<=p]|opponentbattlefield) moveto(mybattlefield) and!( transforms((,newability[phaseaction[my endofturn once sourceinplay] moveto(ownerbattlefield)],newability[untap],haste)) ueot )!])) forever -auto=if paid(alternative) then name(Steal creature) name(Steal creature) name(Steal creature) target(creature[-legendary&power<=2]|opponentbattlefield) moveto(mybattlefield) and!( transforms((,newability[phaseaction[my endofturn once sourceinplay] moveto(ownerbattlefield)],newability[untap],haste)) ueot )! +auto=ifnot paid(alternative) then name(Put 1/1 counters) name(Put 1/1 counters) target(army|myBattlefield) transforms((Orc,newability[counter(1/1.2)],newability[name(Steal creature) target(creature[-legendary&power<=p]|opponentbattlefield) moveto(mybattlefield) and!( transforms((,newability[phaseaction[my end once sourceinplay] moveto(ownerbattlefield)],newability[untap],haste)) ueot )!])) forever +auto=if paid(alternative) then name(Steal creature) name(Steal creature) name(Steal creature) target(creature[-legendary&power<=2]|opponentbattlefield) moveto(mybattlefield) and!( transforms((,newability[phaseaction[my end once sourceinplay] moveto(ownerbattlefield)],newability[untap],haste)) ueot )! auto=if paid(alternative) then name(Amass Orcs 1) name(Amass Orcs 1) name(Amass Orcs 1) token(Orc Army^Creature Orc Army^0/0^black) and!( counter(1/1.2) )! text=When Grishnakh, Brash Instigator enters, amass Orcs 2. When you do, until end of turn, gain control of target nonlegendary creature an opponent controls with power less than or equal to the amassed Army's power. Untap that creature. It gains haste until end of turn. mana={2}{R} @@ -45201,8 +45201,8 @@ toughness=3 [card] name=Grismold, the Dreadsower abilities=trample -auto=@each my endofturn:token(Plant,Creature Plant,1/1,green) -auto=@each my endofturn:token(Plant,Creature Plant,1/1,green) opponent +auto=@each my end:token(Plant,Creature Plant,1/1,green) +auto=@each my end:token(Plant,Creature Plant,1/1,green) opponent auto=@movedTo(graveyard) from(creature[token]|battlefield):counter(1/1) text=Trample -- At the beginning of your end step, each player creates a 1/1 green Plant creature token. -- Whenever a creature token dies, put a +1/+1 counter on Grismold, the Dreadsower. mana={1}{B}{G} @@ -45332,7 +45332,7 @@ type=Sorcery [card] name=Growing Rites of Itlimoc auto=reveal:4 optionone name(Get a creature card) target(<1>creature|reveal) moveto(ownerHand) optiononeend optiontwo name(put on bottom) target(<4>*|reveal) bottomoflibrary optiontwoend revealend -auto=@each my endofturn restriction{type(creature|mybattlefield)~morethan~3}:flip(Itlimoc, Cradle of the Sun) +auto=@each my end restriction{type(creature|mybattlefield)~morethan~3}:flip(Itlimoc, Cradle of the Sun) text=When Growing Rites of Itlimoc enters, look at the top four cards of your library. You may reveal a creature card from among them and put it into your hand. Put the rest on the bottom of your library in any order. -- At the beginning of your end step, if you control four or more creatures, transform Growing Rites of Itlimoc. mana={2}{G} type=Legendary Enchantment @@ -45608,7 +45608,7 @@ toughness=2 [card] name=Guardian of Ghirapur abilities=flying -auto=may target(other creature,artifact|myBattlefield) transforms((,newability[moveto(exile)],newability[phaseactionmulti[endofturn once] moveto(ownerbattlefield)])) +auto=may target(other creature,artifact|myBattlefield) transforms((,newability[moveto(exile)],newability[phaseactionmulti[end once] moveto(ownerbattlefield)])) text=Flying -- When Guardian of Ghirapur enters, exile up to one other target creature or artifact you control. Return it to the battlefield under its owner's control at the beginning of the next end step. mana={2}{W} type=Creature @@ -46001,7 +46001,7 @@ toughness=4 name=Gwaihir, Greatest of the Eagles abilities=flying auto=_ATTACKING_name(Creature gains flying) target(creature[attacking]|battlefield) transforms((,flying)) ueot -auto=@each endofturn restriction{compare(lifegain)~morethan~2}:name(Create bird) name(Create bird) token(Bird,Creature Bird,3/3,white,flying) and!( transforms((,newability[_ATTACKING_name(Creature gains flying) target(creature[attacking]|battlefield) transforms((,flying)) ueot])) forever )! +auto=@each end restriction{compare(lifegain)~morethan~2}:name(Create bird) name(Create bird) token(Bird,Creature Bird,3/3,white,flying) and!( transforms((,newability[_ATTACKING_name(Creature gains flying) target(creature[attacking]|battlefield) transforms((,flying)) ueot])) forever )! text=Flying -- Whenever Gwaihir attacks, target attacking creature gains flying until end of turn. -- At the beginning of each end step, if you gained 3 or more life this turn, create a 3/3 white Bird creature token with flying and "Whenever this creature attacks, target attacking creature gains flying until end of turn." mana={4}{W} type=Legendary Creature @@ -46288,7 +46288,7 @@ abilities=partner partner=Pako, Arcane Retriever auto=_PARTNER_ auto=lord(*[-creature;counter{0/0.1.Fetch}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana])) -auto={0}:name(Cast opponent card) name(Cast opponent card) target(*[-creature;counter{0/0.1.Fetch}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.Fetch)],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.Fetch)])) ueot )! +auto={0}:name(Cast opponent card) name(Cast opponent card) target(*[-creature;counter{0/0.1.Fetch}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.Fetch)],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.Fetch)])) ueot )! text=Partner with Pako, Arcane Retriever (When this creature enters, target player may put Pako into their hand from their library, then shuffle.) -- You may play noncreature cards from exile with fetch counters on them if you exiled them, and you may spend mana as though it were mana of any color to cast those spells. mana={2}{U} type=Legendary Creature @@ -46781,7 +46781,7 @@ toughness=2 [card] name=Haphazard Bombardment auto=target(<4>*[-enchantment]|opponentbattlefield) counter(0/0,1,Aim) -auto=@each my endofturn:if type(*[counter{0/0.1.Aim}]|opponentbattlefield)~morethan~1 then ability$!name(Destroy creature) destroy notatarget(*[counter{0/0.1.Aim}]|mybattlefield)!$ opponent +auto=@each my end:if type(*[counter{0/0.1.Aim}]|opponentbattlefield)~morethan~1 then ability$!name(Destroy creature) destroy notatarget(*[counter{0/0.1.Aim}]|mybattlefield)!$ opponent text=When Haphazard Bombardment enters, choose four nonenchantment permanents you don't control and put an aim counter on each of them. -- At the beginning of your end step, if two or more permanents you don't control have an aim counter on them, destroy one of those permanents at random. mana={5}{R} type=Enchantment @@ -47979,7 +47979,7 @@ type=Instant [card] name=Hellkite Courser abilities=flying -auto=may target(*[iscommander]|mycommandzone) moveto(mybattlefield) and!( transforms((,haste,newability[phaseactionmulti[endofturn once] moveto(ownercommandzone)])) ueot )! +auto=may target(*[iscommander]|mycommandzone) moveto(mybattlefield) and!( transforms((,haste,newability[phaseactionmulti[end once] moveto(ownercommandzone)])) ueot )! text=Flying -- When Hellkite Courser enters, you may put a commander you own from the command zone onto the battlefield. It gains haste. Return it to the command zone at the beginning of the next end step. mana={4}{R}{R} type=Creature @@ -49610,11 +49610,11 @@ auto=@each secondmain restriction{compare(mygreenpoolcount)~morethan~0}:thisfore auto=@each secondmain restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{C} && removemana({R}) auto=@each secondmain restriction{compare(myblackpoolcount)~morethan~0}:thisforeach(variable{myblackpoolcount}) add{C} && removemana({B}) auto=@each secondmain restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{C} && removemana({W}) -auto=@each endofturn restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{C} && removemana({U}) -auto=@each endofturn restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{C} && removemana({G}) -auto=@each endofturn restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{C} && removemana({R}) -auto=@each endofturn restriction{compare(myblackpoolcount)~morethan~0}:thisforeach(variable{myblackpoolcount}) add{C} && removemana({B}) -auto=@each endofturn restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{C} && removemana({W}) +auto=@each end restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{C} && removemana({U}) +auto=@each end restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{C} && removemana({G}) +auto=@each end restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{C} && removemana({R}) +auto=@each end restriction{compare(myblackpoolcount)~morethan~0}:thisforeach(variable{myblackpoolcount}) add{C} && removemana({B}) +auto=@each end restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{C} && removemana({W}) auto=@each cleanup restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{C} && removemana({U}) auto=@each cleanup restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{C} && removemana({G}) auto=@each cleanup restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{C} && removemana({R}) @@ -49634,8 +49634,8 @@ type=Legendary Artifact [/card] [card] name=Horn of Plenty -auto=@movedTo(*|mystack):name(pay to draw) pay({1}) phaseaction[endofturn once] draw:1 -auto=@movedTo(*|opponentstack):ability$!name(pay to draw) pay[[{1}]] name(pay 1 mana) phaseaction[endofturn once] draw:1!$ opponent +auto=@movedTo(*|mystack):name(pay to draw) pay({1}) phaseaction[end once] draw:1 +auto=@movedTo(*|opponentstack):ability$!name(pay to draw) pay[[{1}]] name(pay 1 mana) phaseaction[end once] draw:1!$ opponent text=Whenever a player casts a spell, they may pay {1}. If that player does, they draw a card at the beginning of the next end step. mana={6} type=Artifact @@ -49741,7 +49741,7 @@ auto=if type(*[creature;artifact]|opponentbattlefield)~morethan~0 then name(Exil auto=this(variable{hasevict}>0) transforms((,newability[@movedto(this|nonbattlezone) from(battlefield):name(Put back exiled card) target(*[evictname]|exile) moveTo(ownerBattlefield)])) auto=this(variable{hasevict}>0) {0}:name(Cast opponent exiled card) name(Cast opponent exiled card) target(*[evictname]|opponentexile) moveto(myexile) and!( transforms((,newability[canplayfromexile forever],newability[anytypeofmana forever],newability[counter(0/0.1.HostageExiled)])) ueot )! auto=@counteradded(0/0.1.HostageExiled) from(creature|myexile):name(Effect ends) transforms((,newability[@movedto(this|nonbattlezone) from(battlefield):name(Put back exiled card) target(*[counter{0/0.1.HostageExiled}]|myexile) moveTo(ownerBattlefield)])) ueot -auto=@each endofturn:if type(*[counter{0/0.1.HostageExiled}]|myexile)~morethan~0 then name(Return card to owner exile) name(Return card to owner exile) target(*[counter{0/0.1.HostageExiled}]|myexile) imprint +auto=@each end:if type(*[counter{0/0.1.HostageExiled}]|myexile)~morethan~0 then name(Return card to owner exile) name(Return card to owner exile) target(*[counter{0/0.1.HostageExiled}]|myexile) imprint text=When Hostage Taker enters, exile another target creature or artifact until Hostage Taker leaves the battlefield. You may cast that card for as long as it remains exiled, and you may spend mana as though it were mana of any type to cast that spell. mana={2}{U}{B} type=Creature @@ -50343,7 +50343,7 @@ toughness=3 name=Hungry Lynx abilities=deathtouch auto=lord(cat|myBattlefield) protection from(rat) -auto=@each my endofturn:create(rat:rat creature:1/1:black:deathtouch) opponent +auto=@each my end:create(rat:rat creature:1/1:black:deathtouch) opponent auto=@movedTo(rat|graveyard) from(battlefield):counter(1/1) all(cat|myBattlefield) text=Cats you control have protection from Rats. (They can't be blocked, targeted, or dealt damage by Rats.) -- At the beginning of your end step, target opponent creates a 1/1 black Rat creature token with deathtouch. -- Whenever a Rat dies, put a +1/+1 counter on each Cat you control. mana={1}{G} @@ -50512,7 +50512,7 @@ type=Instant [card] name=Hurkyl, Master Wizard aicode=activate transforms((,newability[if thisturn(instant[-creature]|mystack)~morethan~0 then if type(instant[zpos<=5]|mylibrary)~morethan~0 then ability$!name(Put instant in hand) name(Put instant in hand) name(Put instant in hand) target(instant[zpos<=5]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(sorcery[-creature]|mystack)~morethan~0 then if type(sorcery[zpos<=5]|mylibrary)~morethan~0 then ability$!name(Put sorcery in hand) name(Put sorcery in hand) name(Put sorcery in hand) target(sorcery[zpos<=5]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(artifact[-creature]|mystack)~morethan~0 then if type(artifact[zpos<=5]|mylibrary)~morethan~0 then ability$!name(Put artifact in hand) name(Put artifact in hand) name(Put instant in hand) target(artifact[zpos<=5]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(enchantment[-creature]|mystack)~morethan~0 then if type(enchantment[zpos<=5]|mylibrary)~morethan~0 then ability$!name(Put enchantment in hand) name(Put enchantment in hand) name(Put enchantment in hand) target(enchantment[zpos<=5]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(planeswalker[-creature]|mystack)~morethan~0 then if type(planeswalker[zpos<=5]|mylibrary)~morethan~0 then ability$!name(Put planeswalker in hand) name(Put planeswalker in hand) name(Put planeswalker in hand) target(planeswalker[zpos<=5]|mylibrary) moveto(ownerHand)!$ controller])) oneshot -auto=@each my endofturn restriction{thisturn(*[-creature]|mystack)~morethan~0}:name(Look top 5) reveal:5 optionone name(Choose noncreature cards) target(*[-land&-creature]|reveal) moveto(mylibrary) and!( becomes(tobecast) ueot )! optiononeend optiontwo name(Put on bottom) target(*|reveal) bottomoflibrary and!( all(*|reveal) bottomoflibrary )! optiontwoend afterrevealed all(this) transforms((,newability[if thisturn(instant[-creature]|mystack)~morethan~0 then if type(instant[tobecast]|mylibrary)~morethan~0 then ability$!name(Put instant in hand) name(Put instant in hand) name(Put instant in hand) target(instant[tobecast]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(sorcery[-creature]|mystack)~morethan~0 then if type(sorcery[tobecast]|mylibrary)~morethan~0 then ability$!name(Put sorcery in hand) name(Put sorcery in hand) name(Put sorcery in hand) target(sorcery[tobecast]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(artifact[-creature]|mystack)~morethan~0 then if type(artifact[tobecast]|mylibrary)~morethan~0 then ability$!name(Put artifact in hand) name(Put artifact in hand) name(Put instant in hand) target(artifact[tobecast]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(enchantment[-creature]|mystack)~morethan~0 then if type(enchantment[tobecast]|mylibrary)~morethan~0 then ability$!name(Put enchantment in hand) name(Put enchantment in hand) name(Put enchantment in hand) target(enchantment[tobecast]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(planeswalker[-creature]|mystack)~morethan~0 then if type(planeswalker[tobecast]|mylibrary)~morethan~0 then ability$!name(Put planeswalker in hand) name(Put planeswalker in hand) name(Put planeswalker in hand) target(planeswalker[tobecast]|mylibrary) moveto(ownerHand)!$ controller])) oneshot afterrevealedend revealend +auto=@each my end restriction{thisturn(*[-creature]|mystack)~morethan~0}:name(Look top 5) reveal:5 optionone name(Choose noncreature cards) target(*[-land&-creature]|reveal) moveto(mylibrary) and!( becomes(tobecast) ueot )! optiononeend optiontwo name(Put on bottom) target(*|reveal) bottomoflibrary and!( all(*|reveal) bottomoflibrary )! optiontwoend afterrevealed all(this) transforms((,newability[if thisturn(instant[-creature]|mystack)~morethan~0 then if type(instant[tobecast]|mylibrary)~morethan~0 then ability$!name(Put instant in hand) name(Put instant in hand) name(Put instant in hand) target(instant[tobecast]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(sorcery[-creature]|mystack)~morethan~0 then if type(sorcery[tobecast]|mylibrary)~morethan~0 then ability$!name(Put sorcery in hand) name(Put sorcery in hand) name(Put sorcery in hand) target(sorcery[tobecast]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(artifact[-creature]|mystack)~morethan~0 then if type(artifact[tobecast]|mylibrary)~morethan~0 then ability$!name(Put artifact in hand) name(Put artifact in hand) name(Put instant in hand) target(artifact[tobecast]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(enchantment[-creature]|mystack)~morethan~0 then if type(enchantment[tobecast]|mylibrary)~morethan~0 then ability$!name(Put enchantment in hand) name(Put enchantment in hand) name(Put enchantment in hand) target(enchantment[tobecast]|mylibrary) moveto(ownerHand)!$ controller],newability[if thisturn(planeswalker[-creature]|mystack)~morethan~0 then if type(planeswalker[tobecast]|mylibrary)~morethan~0 then ability$!name(Put planeswalker in hand) name(Put planeswalker in hand) name(Put planeswalker in hand) target(planeswalker[tobecast]|mylibrary) moveto(ownerHand)!$ controller])) oneshot afterrevealedend revealend text=At the beginning of your end step, if you've cast a noncreature spell this turn, reveal the top five cards of your library. For each card type among noncreature spells you've cast this turn, you may put a card of that type from among the revealed cards into your hand. Put the rest on the bottom of your library in a random order. mana={1}{U}{U} type=Legendary Creature @@ -50523,8 +50523,8 @@ toughness=4 [card] name=Hurl Through Hell target=creature -auto=if compare(controllerturn)~morethan~0 then name(Exile creature) name(Exile creature) moveto(myexile) and!( transforms((,newability[canplayfromexile uent],newability[anytypeofmana uent],newability[phaseaction[my endofturn next once checkex] moveTo(ownerexile)])) forever )! -auto=if compare(controllerturn)~equalto~0 then name(Exile creature) name(Exile creature) moveto(myexile) and!( transforms((,newability[canplayfromexile uent],newability[anytypeofmana uent],newability[phaseaction[my endofturn once checkex] moveTo(ownerexile)])) forever )! +auto=if compare(controllerturn)~morethan~0 then name(Exile creature) name(Exile creature) moveto(myexile) and!( transforms((,newability[canplayfromexile uent],newability[anytypeofmana uent],newability[phaseaction[my end next once checkex] moveTo(ownerexile)])) forever )! +auto=if compare(controllerturn)~equalto~0 then name(Exile creature) name(Exile creature) moveto(myexile) and!( transforms((,newability[canplayfromexile uent],newability[anytypeofmana uent],newability[phaseaction[my end once checkex] moveTo(ownerexile)])) forever )! text=Exile target creature. Until the end of your next turn, you may cast that card and you may spend mana as though it were mana of any color to cast that spell. mana={2}{B}{R} type=Instant @@ -50648,7 +50648,7 @@ restriction=never autocommandzone=maxcast(*[instant;sorcery])0 autocommandzone=this(counter{0/0.1.HymnEffect}=0) lord(creature|mycastingzone) altercost(colorless, -1) autocommandzone=@movedto(creature|mystack):counter(0/0,1,HymnEffect) -autocommandzone=@each endofturn restriction{compare(hascnthymneffect)~morethan~0}:removeallcounters(0/0.1.HymnEffect) +autocommandzone=@each end restriction{compare(hascnthymneffect)~morethan~0}:removeallcounters(0/0.1.HymnEffect) text=(Start the game with this conspiracy face up in the command zone.) -- The first creature spell you cast each turn costs {1} less to cast. -- You can't cast instant or sorcery spells. type=Conspiracy [/card] @@ -51062,7 +51062,7 @@ toughness=7 [card] name=Ilharg, the Raze-Boar abilities=trample -auto=_ATTACKING_target(creature|myhand) transforms((,newability[phaseaction[endofturn once sourceinplay] moveTo(hand)],newability[readytofight])) forever +auto=_ATTACKING_target(creature|myhand) transforms((,newability[phaseaction[end once sourceinplay] moveTo(hand)],newability[readytofight])) forever auto=_DIES_may name(Move back to hand) target(Ilharg^ the Raze-Boar[fresh]|graveyard) placefromthetop(3) auto=@movedto(this|exile) from(myBattlefield):may name(Move back to hand) target(Ilharg^ the Raze-Boar[fresh]|exile) placefromthetop(3) text=Trample -- Whenever Ilharg, the Raze-Boar attacks, you may put a creature card from your hand onto the battlefield tapped and attacking. Return that creature to your hand at the beginning of the next end step. -- When Ilharg, the Raze-Boar dies or is put into exile from the battlefield, you may put it into its owner's library third from the top. @@ -51463,8 +51463,8 @@ type=Artifact name=Imoen, Mystic Trickster abilities=backgroundpartner auto=_WARD2_ -auto=@each my endofturn restriction{compare(pdungeoncompleted)~morethan~0}:name(Draw 1 card) draw:1 controller -auto=@each my endofturn restriction{compare(pinitiative)~morethan~0}:name(Draw 1 card) draw:1 controller +auto=@each my end restriction{compare(pdungeoncompleted)~morethan~0}:name(Draw 1 card) draw:1 controller +auto=@each my end restriction{compare(pinitiative)~morethan~0}:name(Draw 1 card) draw:1 controller text=Ward {2} (Whenever this creature becomes the target of a spell or ability an opponent controls, counter it unless that player pays {2}.) -- At the beginning of your end step, if you have the initiative, draw a card. Draw another card if you've completed a dungeon. -- Choose a Background (You can have a Background as a second commander.) mana={2}{U} type=Legendary Creature @@ -52092,7 +52092,7 @@ toughness=3 [card] name=Indulging Patrician abilities=flying,lifelink -auto=@each endofturn restriction{compare(lifegain)~morethan~2}:life:-3 opponent +auto=@each end restriction{compare(lifegain)~morethan~2}:life:-3 opponent text=Flying -- Lifelink (Damage dealt by this creature also causes you to gain that much life.) -- At the beginning of your end step, if you gained 3 or more life this turn, each opponent loses 3 life. mana={1}{W}{B} type=Creature @@ -52292,8 +52292,8 @@ toughness=6 [card] name=Inferno Hellion abilities=trample -auto=_ATTACKING_phaseaction[endofturn sourceinplay] moveTo(ownerlibrary) and!(shuffle)! -auto=@combat(blocking) source(this):phaseaction[endofturn sourceinplay] moveTo(ownerlibrary) and!(shuffle)! +auto=_ATTACKING_phaseaction[end sourceinplay] moveTo(ownerlibrary) and!(shuffle)! +auto=@combat(blocking) source(this):phaseaction[end sourceinplay] moveTo(ownerlibrary) and!(shuffle)! text=Trample (This creature can deal excess combat damage to the player or planeswalker it's attacking.) -- At the beginning of each end step, if Inferno Hellion attacked or blocked this turn, its owner shuffles it into their library. mana={3}{R} type=Creature @@ -52448,7 +52448,7 @@ aicode=activate transforms((,newability[all(*[zpos<=3]|mylibrary) transforms((,n auto=_SCRY3_ auto=@movedto(creature|graveyard) from(battlefield):counter(0/0,1,IngaEffect) auto=_DIES_this(counter{0/0.1.IngaEffect}>=3) draw:3 controller -auto=@each endofturn:this(counter{0/0.1.IngaEffect}>=1) removeallcounters(0/0,1,IngaEffect) +auto=@each end:this(counter{0/0.1.IngaEffect}>=1) removeallcounters(0/0,1,IngaEffect) text=When Inga Rune-Eyes enters, scry 3. -- When Inga Rune-Eyes dies, draw three cards if three or more creatures died this turn. mana={3}{U} type=Legendary Creature @@ -52990,7 +52990,7 @@ toughness=2 [card] name=Instill Furor target=creature -auto=teach(creature) transforms((,newability[@each my endofturn:while(restriction{didntattack}) sacrifice])) forever +auto=teach(creature) transforms((,newability[@each my end:while(restriction{didntattack}) sacrifice])) forever text=Enchant creature -- Enchanted creature has "At the beginning of your end step, sacrifice this creature unless it attacked this turn." mana={1}{R} type=Enchantment @@ -53015,7 +53015,7 @@ type=Artifact [card] name=Insubordination target=creature -auto=teach(creature) transforms((,newability[@each my endofturn:while(restriction{didntattack}) damage:2 controller])) forever +auto=teach(creature) transforms((,newability[@each my end:while(restriction{didntattack}) damage:2 controller])) forever text=Enchant creature -- At the beginning of the end step of enchanted creature's controller, Insubordination deals 2 damage to that player unless that creature attacked this turn. mana={B}{B} type=Enchantment @@ -53023,7 +53023,7 @@ subtype=Aura [/card] [card] name=Insufferable Balladeer -auto=name(Vicious Mockery) target(creature|opponentBattlefield) transforms((,newability[cantblock ueot],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto=name(Vicious Mockery) target(creature|opponentBattlefield) transforms((,newability[cantblock ueot],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever text=Vicious Mockery - When Insufferable Balladeer enters, target creature an opponent controls can't block this turn. Goad it. (Until your next turn, that creature attacks each combat if able and attacks a player other than you if able.) mana={1}{R} type=Creature @@ -53056,7 +53056,7 @@ type=Instant [card] name=Intellect Devourer auto=ability$!name(Exile a card) name(Exile a card) target(*|myhand) moveto(exile) and!( counter(0/0.1.IntellectExiled) )! !$ opponent -auto={0}:name(Cast from opponent exile) target(*[counter{0/0.1.IntellectExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.IntellectExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.IntellectExiled)])) ueot )! +auto={0}:name(Cast from opponent exile) target(*[counter{0/0.1.IntellectExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.IntellectExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.IntellectExiled)])) ueot )! auto=_DIES_name(Return exiled card) all(*[counter{0/0.1.IntellectExiled}]|opponentexile) moveto(ownerhand) text=Devour Intellect - When Intellect Devourer enters, each opponent exiles a card from their hand until Intellect Devourer leaves the battlefield. -- Body Thief - You may play lands and cast spells from among cards exiled with Intellect Devourer. If you cast a spell this way, you may spend mana as though it were mana of any color to cast it. mana={3}{B} @@ -54098,7 +54098,7 @@ toughness=2 [/card] [card] name=Iridescent Hornbeetle -auto=@counteradded(1/1) from(creature|myBattlefield) restriction{myTurnOnly}:all(this) transforms((,newability[phaseaction[endofturn sourceinplay once] _INSECTTOKEN_])) ueot +auto=@counteradded(1/1) from(creature|myBattlefield) restriction{myTurnOnly}:all(this) transforms((,newability[phaseaction[end sourceinplay once] _INSECTTOKEN_])) ueot text=At the beginning of your end step, create a 1/1 green Insect creature token for each +1/+1 counter you've put on creatures under your control this turn. mana={4}{G} type=Creature @@ -54505,8 +54505,8 @@ toughness=2 [card] name=Ixhel, Scion of Atraxa abilities=flying,vigilance,poisontwotoxic -auto=@each my endofturn restriction{compare(opponentpoisoncount)~morethan~2}:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(exile) and!( becomes(tobescion) forever )! -auto={0}:name(Can play exiled card) target(tobescion|opponentexile) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[endofturn once checkex] becomes(tobescion) forever])) ueot )! +auto=@each my end restriction{compare(opponentpoisoncount)~morethan~2}:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(exile) and!( becomes(tobescion) forever )! +auto={0}:name(Can play exiled card) target(tobescion|opponentexile) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[end once checkex] becomes(tobescion) forever])) ueot )! text=Flying, vigilance, toxic 2 -- Corrupted - At the beginning of your end step, each opponent who has three or more poison counters exiles the top card of their library face down. You may look at and play those cards for as long as they remain exiled, and you may spend mana as though it were mana of any color to cast those spells. mana={1}{W}{B}{G} type=Legendary Creature @@ -54730,7 +54730,7 @@ toughness=2 [/card] [card] name=Jadar, Ghoulcaller of Nephalia -auto=@each my endofturn restriction{type(creature[decayed]|mybattlefield)~equalto~0}:name(Create a zombie) token(Zombie Dec) +auto=@each my end restriction{type(creature[decayed]|mybattlefield)~equalto~0}:name(Create a zombie) token(Zombie Dec) text=At the beginning of your end step, if you control no creatures with decayed, create a 2/2 black Zombie creature token with decayed. (It can't block. When it attacks, sacrifice it at end of combat.) mana={1}{B} type=Legendary Creature @@ -55083,7 +55083,7 @@ restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=life:-1 controller && token(Human,Creature Human,1/1,white) auto=@movedto(other human[-token]|graveyard) from(mybattlefield):name(Lose 1 life and create human) life:-1 controller && token(Human,Creature Human,1/1,white) -auto=@each my endofturn restriction{compare(lifetotal)~equalto~13}:may name(Transform Jerren) pay({4}{B}{B}) name(Transform Jerren) flip(backside) +auto=@each my end restriction{compare(lifetotal)~equalto~13}:may name(Transform Jerren) pay({4}{B}{B}) name(Transform Jerren) flip(backside) auto={2}:name(Human gains lifelink) target(creature[human]|mybattlefield) transforms((,lifelink)) ueot text=Whenever Jerren, Corrupted Bishop enters or another nontoken Human you control dies, you lose 1 life and create a 1/1 white Human creature token -- {2}: Target Human you control gains lifelink until end of turn. -- At the beginning of your end step, if you have exactly 13 life, you may pay {4}{B}{B}. If you do, transform Jerren. // Ormendahl, the Corrupter mana={2}{B} @@ -55574,7 +55574,7 @@ auto=@dierolled(this) result(19) from(controller):if type(creature[counter{0/0.1 auto=@dierolled(this) result(19) from(controller):if type(creature[counter{0/0.1.JourneyExiled}]|myexile)~equalto~3 then name(Create wolf) name(Create wolf) name(Create wolf) token(Wolf,Creature Wolf,2/2,green) and!( counter(1/1,3) )! auto=@dierolled(this) result(19) from(controller):if type(creature[counter{0/0.1.JourneyExiled}]|myexile)~equalto~4 then name(Create wolf) name(Create wolf) name(Create wolf) token(Wolf,Creature Wolf,2/2,green) and!( counter(1/1,4) )! auto=@dierolled(this) result(20) from(controller):name(Sacrifice and put in play) name(Sacrifice and put in play) sacrifice and!( transforms((,newability[name(Put permanents in play) all(*[-instant;-sorcery;counter{0/0.1.JourneyExiled}]|myexile) moveto(mybattlefield)],newability[name(Effect ends) all(sorcery[counter{0/0.1.JourneyExiled}]|myexile) removeallcounters(0/0.1.JourneyExiled)],newability[name(Effect ends) all(instant[counter{0/0.1.JourneyExiled}]|myexile) removeallcounters(0/0.1.JourneyExiled)])) oneshot )! -auto=@each my endofturn:name(Effect ends) all(*[counter{0/0.1.JourneyExiled}]|myexile) removeallcounters(0/0.1.JourneyExiled) +auto=@each my end:name(Effect ends) all(*[counter{0/0.1.JourneyExiled}]|myexile) removeallcounters(0/0.1.JourneyExiled) text=At the beginning of your upkeep, exile the top four cards of your library, then roll a d20. -- 1-9 | You may put a land card from among those cards onto the battlefield. -- 10-19 | Create a 2/2 green Wolf creature token, then put a +1/+1 counter on it for each creature card among those cards. -- 20 | Put all permanent cards exiled with Journey to the Lost City onto the battlefield, then sacrifice it. mana={3}{G} type=Enchantment @@ -55712,7 +55712,7 @@ abilities=flying auto=transforms((Creature Summon Imp,setpower=0,settoughness=0)) forever auto=all(this) rolld6 6 winability counter(1/1,lastrollresult) winabilityend loseability counter(1/1,lastrollresult) loseabilityend rolld6end auto=@each my upkeep:all(this) rolld6 6 winability counter(1/1,lastrollresult) winabilityend loseability counter(1/1,lastrollresult) loseabilityend rolld6end -auto=@each my endofturn:all(this) rolld6 6 winability counter(1/1,-lastrollresult) winabilityend loseability counter(1/1,-lastrollresult) loseabilityend rolld6end +auto=@each my end:all(this) rolld6 6 winability counter(1/1,-lastrollresult) winabilityend loseability counter(1/1,-lastrollresult) loseabilityend rolld6end text=Flying -- When you play Jumbo Imp, roll a six-sided die. Jumbo Imp comes into play with a number of +1/+1 counters on it equal to the die roll. -- During your upkeep, roll a six-sided die and put on Jumbo Imp a number of +1/+1 counters equal to the die roll. -- At the end of your turn, roll a six-sided die and remove from Jumbo Imp a number of +1/+1 counters equal to the die roll. mana={2}{B} type=Creature @@ -55968,7 +55968,7 @@ toughness=2 [card] name=Kagha, Shadow Archdruid auto=_ATTACKING_name(Gains deathtouch) transforms((,deathtouch,newability[deplete:2 controller])) ueot -auto=@movedto(*|mygraveyard) from(mylibrary):name(Milled card) all(trigger[to]) transforms((,newability[counter(0/0.1.KaghaMilled)],newability[@each my endofturn:name(Effect ends) removeallcounters(0/0.1.KaghaMilled)])) ueot +auto=@movedto(*|mygraveyard) from(mylibrary):name(Milled card) all(trigger[to]) transforms((,newability[counter(0/0.1.KaghaMilled)],newability[@each my end:name(Effect ends) removeallcounters(0/0.1.KaghaMilled)])) ueot auto={0}:name(Playble from graveyard) target(*[counter{0/0.1.KaghaMilled}]|mygraveyard) transforms((,newability[canplayfromgraveyard],newability[name(Effect ends) all(*[counter{0/0.1.KaghaMilled}]|mygraveyard) removeallcounters(0/0.1.KaghaMilled)])) ueot limit:1 myturnonly text=Whenever Kagha, Shadow Archdruid attacks, it gains deathtouch until end of turn. Mill two cards. (Put the top two cards of your library into your graveyard.) -- Once during each of your turns, you may play a land or cast a permanent spell from among cards in your graveyard that were put there from your library this turn. mana={2}{B}{G} @@ -56016,8 +56016,8 @@ toughness=2 [/card] [card] name=Kaima, the Fractured Calm -auto=@each my endofturn:name(Goad opponent creatures) all(creature[enchanted]|opponentBattlefield) _GOAD_ -auto=@each my endofturn:name(Put 1/1 counter) foreach(creature[enchanted]|opponentBattlefield) counter(1/1) +auto=@each my end:name(Goad opponent creatures) all(creature[enchanted]|opponentBattlefield) _GOAD_ +auto=@each my end:name(Put 1/1 counter) foreach(creature[enchanted]|opponentBattlefield) counter(1/1) text=At the beginning of your end step, goad each creature your opponents control that's enchanted by an Aura you control. Put a +1/+1 counter on Kaima, the Fractured Calm for each creature goaded this way. (Until your next turn, the goaded creatures attack each combat if able and attack a player other than you if able.) mana={2}{R}{G} type=Legendary Creature @@ -56062,7 +56062,7 @@ toughness=2 [card] name=Kalamax, the Stormsire auto=@movedto(instant|mystack) sourcetap restriction{thisturn(instant|mystack)~lessthan~2}:castcard(copied noevent) -auto=@copied target(instant|Stak):all(trigger[this]) counter(1/1) +auto=@copied target(instant|stack):all(trigger[this]) counter(1/1) text=Whenever you cast your first instant spell each turn, if Kalamax, the Stormsire is tapped, copy that spell. You may choose new targets for the copy. -- Whenever you copy an instant spell, put a +1/+1 counter on Kalamax. mana={1}{G}{U}{R} type=Legendary Creature @@ -56092,8 +56092,8 @@ auto={T}:name(Choose snow permanent) name(Choose snow permanent) target(*[snow]| auto=@movedto(*[snow]|mybattlefield) from(mygraveyard):this(counter{0/0.1.KaldEffect}>0) all(trigger[to]) tap(noevent) && ability$!counter(0/0,-1,KaldEffect) all(mysource)!$ controller auto=@movedto(*[snow]|mystack) from(mygraveyard):this(counter{0/0.1.KaldEffect}>0) counter(0/0,1,KaldEffect2) && ability$!counter(0/0,-1,KaldEffect) all(mysource)!$ controller auto=@movedto(*[snow]|mybattlefield):this(counter{0/0.1.KaldEffect2}>0) all(trigger[to]) tap(noevent) && ability$!counter(0/0,-1,KaldEffect2) all(mysource)!$ controller -auto=@each endofturn:this(counter{0/0.1.KaldEffect}>0) counter(0/0,-1,KaldEffect) -auto=@each endofturn:this(counter{0/0.1.KaldEffect2}>0) counter(0/0,-1,KaldEffect2) +auto=@each end:this(counter{0/0.1.KaldEffect}>0) counter(0/0,-1,KaldEffect) +auto=@each end:this(counter{0/0.1.KaldEffect2}>0) counter(0/0,-1,KaldEffect2) text={T}: You may play target snow permanent card from your graveyard this turn. If you do, it enters tapped. // {2}{G} Jorn, God of Winter mana={1}{U}{B} type=Legendary Snow Artifact @@ -56273,7 +56273,7 @@ toughness=4 name=Kami of Transience abilities=trample auto=@movedTo(enchantment|mystack):name(Put 1/1 counter) counter(1/1) -autograveyard=@each endofturn restriction{thisturn(enchantment|graveyard)~morethan~0}:may name(Return to hand) name(Return to hand) moveto(ownerHand) +autograveyard=@each end restriction{thisturn(enchantment|graveyard)~morethan~0}:may name(Return to hand) name(Return to hand) moveto(ownerHand) text=Trample -- Whenever you cast an enchantment spell, put a +1/+1 counter on Kami of Transience. -- At the beginning of each end step, if an enchantment was put into your graveyard from the battlefield this turn, you may return Kami of Transience from your graveyard to your hand. mana={1}{G} type=Creature @@ -56379,7 +56379,7 @@ type=Instant [/card] [card] name=Karazikar, the Eye Tyrant -auto=@each my blockers:name(Tap opponent creature) target(creature|opponentbattlefield) transforms((,newability[tap(noevent)],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto=@each my blockers:name(Tap opponent creature) target(creature|opponentbattlefield) transforms((,newability[tap(noevent)],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever text=Whenever you attack a player, tap target creature that player controls and goad it. (Until your next turn, that creature attacks each combat if able and attacks a player other than you if able.) -- Whenever an opponent attacks another one of your opponents, you and the attacking player each draw a card and lose 1 life. mana={3}{B}{R} type=Legendary Creature @@ -56880,8 +56880,8 @@ toughness=4 [/card] [card] name=Keeper of the Accord -auto=@each opponent endofturn restriction{type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield)}:_SOLDIERTOKEN_ -auto=@each opponent endofturn restriction{type(land|opponentbattlefield)~morethan~type(land|mybattlefield)}:may name(search basic plains) reveal:plibrarycount optionone name(choose basic plains) target(plains[basic]|reveal) moveTo(myBattlefield) and!(tap(noevent))! optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownerlibrary) and!( all(*|reveal) moveto(ownerlibrary) and!(shuffle)! )! optiontwoend afterrevealed all(tobecast|mylibrary) moveto(ownerlibrary) and!(moveTo(myBattlefield) and!(tap(noevent))!)! afterrevealedend revealend +auto=@each opponent end restriction{type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield)}:_SOLDIERTOKEN_ +auto=@each opponent end restriction{type(land|opponentbattlefield)~morethan~type(land|mybattlefield)}:may name(search basic plains) reveal:plibrarycount optionone name(choose basic plains) target(plains[basic]|reveal) moveTo(myBattlefield) and!(tap(noevent))! optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownerlibrary) and!( all(*|reveal) moveto(ownerlibrary) and!(shuffle)! )! optiontwoend afterrevealed all(tobecast|mylibrary) moveto(ownerlibrary) and!(moveTo(myBattlefield) and!(tap(noevent))!)! afterrevealedend revealend text=At the beginning of each opponent's end step, if that player controls more creatures than you, create a 1/1 white Soldier creature token. -- At the beginning of each opponent's end step, if that player controls more lands than you, you may search your library for a basic Plains card, put it onto the battlefield tapped, then shuffle. mana={3}{W} type=Creature @@ -57232,7 +57232,7 @@ toughness=4 [card] name=Kethek, Crucible Goliath aicode=activate transforms((,newability[target(creature[-legendary;manacost<=manacostminus1minusend]|mylibrary) moveto(myBattlefield) and!( shuffle )! ])) oneshot -auto=@each my endofturn:may name(Sacrifice another creature) target(creature|myBattlefield) sacrifice and!( transforms((,newability[name(Reveal top cards) reveal:1 revealzone(mylibrary) revealuntil(creature[-legendary;manacost<=manacostminus1minusend]|mylibrary) optionone target(creature[-legendary;manacost<=manacostminus1minusend]|reveal) moveto(MyBattlefield) optiononeend optiontwo choice name(Put on Bottom) all(*|reveal) bottomoflibrary optiontwoend afterrevealed afterrevealedend])) ueot )! +auto=@each my end:may name(Sacrifice another creature) target(creature|myBattlefield) sacrifice and!( transforms((,newability[name(Reveal top cards) reveal:1 revealzone(mylibrary) revealuntil(creature[-legendary;manacost<=manacostminus1minusend]|mylibrary) optionone target(creature[-legendary;manacost<=manacostminus1minusend]|reveal) moveto(MyBattlefield) optiononeend optiontwo choice name(Put on Bottom) all(*|reveal) bottomoflibrary optiontwoend afterrevealed afterrevealedend])) ueot )! text=At the beginning of your end step, you may sacrifice another creature. If you do, reveal cards from the top of your library until you reveal a nonlegendary creature card with lesser mana value, put it onto the battlefield, then put the rest on the bottom of your library in a random order. mana={2}{B}{R} type=Legendary Creature @@ -57608,8 +57608,8 @@ auto=@each my firstmain:counter(0/0,1,Lore) auto=transforms((,newability[all(player) deplete:4],newability[may name(Exile creature or planeswalker) target(*[creature;planeswalker]|opponentgraveyard) moveto(myexile) and!( counter(0/0.1.KingOppExiled) )!],newability[ability$!name(Exile creature or planeswalker) may name(Exile creature or planeswalker) target(*[creature;planeswalker]|mygraveyard) moveto(exile) and!( counter(0/0.1.KingExiled) )! !$ controller])) oneshot auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) all(*[counter{0/0.1.KingOppExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana])) ueot auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) all(*[counter{0/0.1.KingExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana])) ueot -auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) all(*[counter{0/0.1.KingOppExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveto(ownerexile)])) ueot -auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) all(*[counter{0/0.1.KingExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] counter(0/0.-1.KingExiled)])) ueot +auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) all(*[counter{0/0.1.KingOppExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveto(ownerexile)])) ueot +auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) all(*[counter{0/0.1.KingExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] counter(0/0.-1.KingExiled)])) ueot auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) sacrifice(this) text=(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.) -- I - Each player mills four cards. Then you may exile a creature or planeswalker card from each graveyard. -- II, III - Until end of turn, you may cast spells from among cards exiled with King Narfi's Betrayal, and you may spend mana as though it were mana of any color to cast those spells. mana={1}{U}{B} @@ -57887,7 +57887,7 @@ toughness=2 [/card] [card] name=Kitsune Mystic -auto=this(auras >= 2) phaseaction[endofturn once] flip(Autumn-Tail, Kitsune Sage) limit:1 +auto=this(auras >= 2) phaseaction[end once] flip(Autumn-Tail, Kitsune Sage) limit:1 text=At the beginning of the end step, if Kitsune Mystic is enchanted by two or more Auras, flip it. mana={3}{W} type=Creature @@ -58081,7 +58081,7 @@ toughness=3 [card] name=Knight of the Ebon Legion auto={2}{B}:deathtouch && 3/3 -auto=@each my endofturn foelost(4):1/1 +auto=@each my end foelost(4):1/1 text={2}{B}: Knight of the Ebon Legion gets +3/+3 and gains deathtouch until end of turn. -- At the beginning of your end step, if a player lost 4 or more life this turn, put a +1/+1 counter on Knight of the Ebon Legion. (Damage causes loss of life.) mana={B} type=Creature @@ -58500,7 +58500,7 @@ toughness=4 [card] name=Kotose, the Silent Spider auto=name(Exile nonland card) target(*[-basic]|opponentgraveyard) moveto(opponentexile) and!( transforms((,newability[becomes(tobekot) forever],newability[all(*[share!name!]|mygraveyard) moveto(myexile) and!( becomes(tobekot) forever )!],newability[all(*[share!name!]|mylibrary) moveto(myexile) and!( becomes(tobekot) forever )!],newability[all(*[share!name!]|myhand) moveto(myexile) and!( becomes(tobekot) forever )!])) forever )! -auto=aslongas(tobekot|opponentexile) {0}:name(Can play exiled card) name(Can play exiled card) target(tobekot|opponentexile) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveto(opponentexile)],newability[all(tobekot|opponentexile) losesatype(tobekot)])) ueot )! +auto=aslongas(tobekot|opponentexile) {0}:name(Can play exiled card) name(Can play exiled card) target(tobekot|opponentexile) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveto(opponentexile)],newability[all(tobekot|opponentexile) losesatype(tobekot)])) ueot )! text=When Kotose, the Silent Spider enters, exile target card other than a basic land card from an opponent's graveyard. Search that player's graveyard, hand, and library for any number of cards with the same name as that card and exile them. Then that player shuffles. For as long as you control Kotose, you may play one of the exiled cards, and you may spend mana as though it were mana of any color to cast it. mana={3}{U}{B} type=Legendary Creature @@ -58872,11 +58872,11 @@ auto=@each secondmain restriction{compare(mygreenpoolcount)~morethan~0}:thisfore auto=@each secondmain restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{C} && removemana({R}) auto=@each secondmain restriction{compare(myblackpoolcount)~morethan~0}:thisforeach(variable{myblackpoolcount}) add{C} && removemana({B}) auto=@each secondmain restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{C} && removemana({W}) -auto=@each endofturn restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{C} && removemana({U}) -auto=@each endofturn restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{C} && removemana({G}) -auto=@each endofturn restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{C} && removemana({R}) -auto=@each endofturn restriction{compare(myblackpoolcount)~morethan~0}:thisforeach(variable{myblackpoolcount}) add{C} && removemana({B}) -auto=@each endofturn restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{C} && removemana({W}) +auto=@each end restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{C} && removemana({U}) +auto=@each end restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{C} && removemana({G}) +auto=@each end restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{C} && removemana({R}) +auto=@each end restriction{compare(myblackpoolcount)~morethan~0}:thisforeach(variable{myblackpoolcount}) add{C} && removemana({B}) +auto=@each end restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{C} && removemana({W}) auto=@each cleanup restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{C} && removemana({U}) auto=@each cleanup restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{C} && removemana({G}) auto=@each cleanup restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{C} && removemana({R}) @@ -59150,7 +59150,7 @@ toughness=1 [/card] [card] name=Laboratory Drudge -auto=@movedto(*|mystack) from(mygraveyard) turnlimited:phaseaction[endofturn once] draw:1 controller +auto=@movedto(*|mystack) from(mygraveyard) turnlimited:phaseaction[end once] draw:1 controller text=At the beginning of each end step, draw a card if you've cast a spell from a graveyard or activated an ability of a card in a graveyard this turn. mana={3}{U} type=Creature @@ -59203,7 +59203,7 @@ type=Sorcery [card] name=Lady of Laughter abilities=flying -auto=@each my endofturn:if type(*[-land;fresh]|myBattlefield)~morethan~1 then draw:1 +auto=@each my end:if type(*[-land;fresh]|myBattlefield)~morethan~1 then draw:1 text=Flying -- Celebration - At the beginning of your end step, if two or more nonland permanents entered the battlefield under your control this turn, draw a card. mana={3}{W}{W} type=Creature @@ -59538,7 +59538,7 @@ type=Sorcery [card] name=Lathiel, the Bounteous Dawn abilities=lifelink -auto=@each endofturn restriction{compare(lifegain)~morethan~0}:thisforeach(variable{lifegain}) ability$!name(Choose a creature) counter(1/1) target(other creature[-Lathiel])!$ controller +auto=@each end restriction{compare(lifegain)~morethan~0}:thisforeach(variable{lifegain}) ability$!name(Choose a creature) counter(1/1) target(other creature[-Lathiel])!$ controller text=Lifelink -- At the beginning of each end step, if you gained life this turn, distribute up to that many +1/+1 counters among any number of other target creatures. mana={2}{G}{W} type=Legendary Creature @@ -60431,7 +60431,7 @@ auto=@each opponent draw:ability$!name(Pay 0) pay[[{0}]] name(Pay 0) destroy not auto=@each opponent combatbegins:ability$!name(Pay 0) pay[[{0}]] name(Pay 0) destroy notatarget(Lethal Vapors|opponentBattlefield) && turns:-1 controller?donothing!$ opponent auto=@each opponent blockers:ability$!name(Pay 0) pay[[{0}]] name(Pay 0) destroy notatarget(Lethal Vapors|opponentBattlefield) && turns:-1 controller?donothing!$ opponent auto=@each opponent firstmain:ability$!name(Pay 0) pay[[{0}]] name(Pay 0) destroy notatarget(Lethal Vapors|opponentBattlefield) && turns:-1 controller?donothing!$ opponent -auto=@each opponent endofturn:ability$!name(Pay 0) pay[[{0}]] name(Pay 0) destroy notatarget(Lethal Vapors|opponentBattlefield) && turns:-1 controller?donothing!$ opponent +auto=@each opponent end:ability$!name(Pay 0) pay[[{0}]] name(Pay 0) destroy notatarget(Lethal Vapors|opponentBattlefield) && turns:-1 controller?donothing!$ opponent text=Whenever a creature enters, destroy it. -- {0}: Destroy Lethal Vapors. You skip your next turn. Any player may activate this ability. mana={2}{B}{B} type=Enchantment @@ -60730,7 +60730,7 @@ toughness=4 [card] name=Liesa, Forgotten Archangel abilities=flying,lifelink -auto=@movedTo(other creature[-token]|graveyard) from(mybattlefield):name(Return to owner hand later) all(trigger[to]) name(Return to owner hand later) transforms((,newability[phaseaction[endofturn once] moveTo(ownerhand)])) ueot +auto=@movedTo(other creature[-token]|graveyard) from(mybattlefield):name(Return to owner hand later) all(trigger[to]) name(Return to owner hand later) transforms((,newability[phaseaction[end once] moveTo(ownerhand)])) ueot auto=lord(creature|opponentbattlefield) exiledeath text=Flying, lifelink -- Whenever another nontoken creature you control dies, return that card to its owner's hand at the beginning of the next end step. -- If a creature an opponent controls would die, exile it instead. type=Legendary Creature @@ -60926,7 +60926,7 @@ toughness=1 [card] name=Lightning Phoenix abilities=flying,haste,cantblock -autograveyard=@each my endofturn restriction{compare(oplifelost)~morethan~2}:pay({R}) moveto(mybattlefield) +autograveyard=@each my end restriction{compare(oplifelost)~morethan~2}:pay({R}) moveto(mybattlefield) text=Flying, haste -- Lightning Phoenix can't block. -- At the beginning of your end step, if an opponent was dealt 3 or more damage this turn, you may pay {R}. If you do, return Lightning Phoenix from your graveyard to the battlefield. mana={2}{R} type=Creature @@ -61033,7 +61033,7 @@ toughness=5 [/card] [card] name=Lightshield Array -auto=@combat(attacking) source(creature|mybattlefield):name(Put 1/1 counter) name(Put 1/1 counter) all(trigger[to]) transforms((,newability[phaseaction[endofturn once sourceinplay] counter(1/1)])) ueot +auto=@combat(attacking) source(creature|mybattlefield):name(Put 1/1 counter) name(Put 1/1 counter) all(trigger[to]) transforms((,newability[phaseaction[end once sourceinplay] counter(1/1)])) ueot auto={S}:name(Sacrifice) name(Sacrifice) all(creature|myBattlefield) transforms((,hexproof,indestructible)) ueot text=At the beginning of your end step, put a +1/+1 counter on each creature that attacked this turn. -- Sacrifice Lightshield Array: Creatures you control gain hexproof and indestructible until end of turn. type=Enchantment @@ -61080,7 +61080,7 @@ type=Sorcery [card] name=Liliana's Devotee auto=lord(zombie|myBattlefield) 1/0 -auto=@each my endofturn restriction{morbid}:pay({1}{B}) _ZOMBIETOKEN_ +auto=@each my end restriction{morbid}:pay({1}{B}) _ZOMBIETOKEN_ text=Zombies you control get +1/+0. -- At the beginning of your end step, if a creature died this turn, you may pay {1}{B}. If you do, create a 2/2 black Zombie creature token. mana={2}{B} type=Creature @@ -61115,7 +61115,7 @@ type=Sorcery [/card] [card] name=Liliana's Scrounger -auto=@each endofturn restriction{morbid}:may counter(0/0,1,loyalty) target(planeswalker[liliana]|myBattlefield) +auto=@each end restriction{morbid}:may counter(0/0,1,loyalty) target(planeswalker[liliana]|myBattlefield) text=At the beginning of each end step, if a creature died this turn, you may put a loyalty counter on a Liliana planeswalker you control. mana={2}{B} type=Creature @@ -61347,7 +61347,7 @@ toughness=4 [card] name=Lita, Mechanical Engineer abilities=vigilance -auto=@each my endofturn:name(Untap other artifact creatures) all(other creature[artifact]|mybattlefield) untap +auto=@each my end:name(Untap other artifact creatures) all(other creature[artifact]|mybattlefield) untap auto={3}{W}{T}:name(Create zeppelin) token(Zeppelin) text=Vigilance -- At the beginning of your end step, untap each other artifact creature you control. -- {3}{W}, {T}: Create a 5/5 colorless Vehicle artifact token named Zeppelin with flying and crew 3. (It has "Tap any number of creatures you control with total power 3 or more: This Vehicle becomes an artifact creature until end of turn.") mana={2}{W} @@ -61490,8 +61490,8 @@ type=Instant [card] name=Living Inferno auto={T}:name(Choose creatures to target and then click on living inferno) name(Choose creatures to target and then click on living inferno) transforms((LivingEffect,newability[thisforeach(variable{power}>=1) ability$!name(Deal 1 damage) name(Deal 1 damage) target(creature|battlefield) counter(0/0.1.InfernoTgt) notrg!$ controller],newability[{0}:name(Damage targeted creatures) all(creature[counter{0/0.1.InfernoTgt}]|battlefield) transforms((,newability[damage:hascntinfernotgt],newability[damage:power target(Living Inferno[LivingEffect]|battlefield)])) oneshot limit:1])) ueot -auto=@each endofturn:name(Effect ends) losesatype(LivingEffect) -auto=@each endofturn:name(Effect ends) all(creature[counter{0/0.1.InfernoTgt}]|battlefield) transforms((,newability[counter(0/0.-hascntinfernotgt.InfernoTgt) notrg])) oneshot +auto=@each end:name(Effect ends) losesatype(LivingEffect) +auto=@each end:name(Effect ends) all(creature[counter{0/0.1.InfernoTgt}]|battlefield) transforms((,newability[counter(0/0.-hascntinfernotgt.InfernoTgt) notrg])) oneshot text={T}: Living Inferno deals damage equal to its power divided as you choose among any number of target creatures. Each of those creatures deals damage equal to its power to Living Inferno. mana={6}{R}{R} type=Creature @@ -62991,7 +62991,7 @@ type=Land [card] name=Lynde, Cheerful Tormentor abilities=deathtouch -auto=@movedto(curse|mygraveyard) from(battlefield):name(Return in play later) all(trigger[to]) name(Return in play later) transforms((,newability[phaseaction[endofturn once] moveto(mybattlefield)])) ueot +auto=@movedto(curse|mygraveyard) from(battlefield):name(Return in play later) all(trigger[to]) name(Return in play later) transforms((,newability[phaseaction[end once] moveto(mybattlefield)])) ueot auto=@each my upkeep:may name(Attach curse to opponent) target(curse|battlefield) moveto(myreveal) and!( moveto(mybattlefield) )! text=Deathtouch -- Whenever a Curse is put into your graveyard from the battlefield, return it to the battlefield at the beginning of the next end step. -- At the beginning of your upkeep, you may attach a Curse attached to you to one of your opponents. If you do, draw two cards. mana={1}{U}{B}{R} @@ -63077,7 +63077,7 @@ type=Instant [/card] [card] name=Mad Dog -auto=@each my endofturn restriction{didntattack}:if cantargetcard(*[-fresh]|*) then name(Sacrifice) name(Sacrifice) sacrifice +auto=@each my end restriction{didntattack}:if cantargetcard(*[-fresh]|*) then name(Sacrifice) name(Sacrifice) sacrifice text=At the beginning of your end step, if Mad Dog didn't attack or come under your control this turn, sacrifice it. mana={1}{R} type=Creature @@ -63188,7 +63188,7 @@ toughness=1 [card] name=Maeve, Insidious Singer auto={2}{U}:name(Goad opponent creature) target(creature|opponentBattlefield) _GOAD_ -auto={2}{U}:name(Goad your creature) target(creature|myBattlefield) transforms((,newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)],newability[@combat(attacking) source(this):draw:1])) forever +auto={2}{U}:name(Goad your creature) target(creature|myBattlefield) transforms((,newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)],newability[@combat(attacking) source(this):draw:1])) forever text={2}{U}: Goad target creature. Whenever that creature attacks one of your opponents this turn, you draw a card. (A goaded creature attacks each combat if able and attacks a player other than you if able, until your next turn.) mana={2}{U}{U} type=Legendary Creature @@ -63303,7 +63303,7 @@ toughness=3 [card] name=Magmatic Core auto=cumulativeupcost[{1}] sacrifice -auto=@each my endofturn:thisforeach(counter{0/0.1.Age}) ability$!name(Choose creature) choice name(Damage to a creature) damage:1 target(creature)!$ controller +auto=@each my end:thisforeach(counter{0/0.1.Age}) ability$!name(Choose creature) choice name(Damage to a creature) damage:1 target(creature)!$ controller 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.) -- At the beginning of your end step, Magmatic Core deals X damage divided as you choose among any number of target creatures, where X is the number of age counters on it. mana={2}{R}{R} type=Enchantment @@ -63320,7 +63320,7 @@ type=Instant name=Magmatic Sprinter abilities=haste auto=target(*[artifact;creature]|myBattlefield) counter(0/0,2,Oil) -auto=@each my endofturn:name(Choose one) transforms((,newability[if compare(hascntoil)~morethan~1 then choice name(Remove 2 oil counters) name(Remove 2 oil counters) counter(0/0.-2.Oil)],newability[choice name(Return to hand) moveto(ownerhand)])) ueot +auto=@each my end:name(Choose one) transforms((,newability[if compare(hascntoil)~morethan~1 then choice name(Remove 2 oil counters) name(Remove 2 oil counters) counter(0/0.-2.Oil)],newability[choice name(Return to hand) moveto(ownerhand)])) ueot text=Haste -- When Magmatic Sprinter enters, put two oil counters on target artifact or creature you control. -- At the beginning of your end step, return Magmatic Sprinter to its owner's hand unless you remove two oil counters from it. mana={2}{R} type=Creature @@ -63444,7 +63444,7 @@ toughness=1 [/card] [card] name=Mahadi, Emporium Master -auto=@each my endofturn:name(Create treasures) _TREASURE_*bothalldeadcreature +auto=@each my end:name(Create treasures) _TREASURE_*bothalldeadcreature text=At the beginning of your end step, create a Treasure token for each creature that died this turn. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.") mana={1}{B}{R} type=Legendary Creature @@ -63699,7 +63699,7 @@ toughness=1 [/card] [card] name=Malcator, Purity Overseer -auto=@each my endofturn restriction{thisturn(artifact|mybattlefield)~morethan~2}:name(Create golem) token(Phyrexian Golem,Artifact Creature Phyrexian Golem,3/3) +auto=@each my end restriction{thisturn(artifact|mybattlefield)~morethan~2}:name(Create golem) token(Phyrexian Golem,Artifact Creature Phyrexian Golem,3/3) auto=name(Create golem) token(Phyrexian Golem,Artifact Creature Phyrexian Golem,3/3) text=When Malcator, Purity Overseer enters, create a 3/3 colorless Phyrexian Golem artifact creature token. -- At the beginning of your end step, if three or more artifacts entered the battlefield under your control this turn, create a 3/3 colorless Phyrexian Golem artifact creature token. mana={1}{W}{U} @@ -64186,7 +64186,7 @@ toughness=1 [/card] [card] name=Marauding Looter -auto=@each my endofturn:if raid then may _LOOT_ +auto=@each my end:if raid then may _LOOT_ text=Raid - At the beginning of your end step, if you attacked with a creature this turn, you may draw a card. If you do, discard a card. mana={2}{U}{R} type=Creature @@ -64496,7 +64496,7 @@ toughness=6 [card] name=Markov Purifier abilities=lifelink -auto=@each my endofturn restriction{compare(lifegain)~morethan~0}:may name(Pay 2 and draw) pay({2}) name(Pay 2 and draw) draw:1 controller +auto=@each my end restriction{compare(lifegain)~morethan~0}:may name(Pay 2 and draw) pay({2}) name(Pay 2 and draw) draw:1 controller text=Lifelink -- At the beginning of your end step, if you gained life this turn, you may pay {2}. If you do, draw a card. mana={1}{W}{B} type=Creature @@ -64933,7 +64933,7 @@ type=Instant [card] name=Masterful Replication auto=choice name(Create 2 golem) token(Golem,Artifact Creature Golem,3/3)*2 -auto=if type(artifact|mybattlefield)~morethan~0 then choice name(All artifacts becomes copy) name(All artifacts becomes copy) target(artifact|myBattlefield) transforms((tobecop,newability[phaseaction[endofturn once] losesatype(tobecop)],newability[all(other artifact|myBattlefield) transforms((,newability[all(artifact[tobecop]|myBattlefield) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(myorigname) undocpy])) forever )!])) ueot])) oneshot +auto=if type(artifact|mybattlefield)~morethan~0 then choice name(All artifacts becomes copy) name(All artifacts becomes copy) target(artifact|myBattlefield) transforms((tobecop,newability[phaseaction[end once] losesatype(tobecop)],newability[all(other artifact|myBattlefield) transforms((,newability[all(artifact[tobecop]|myBattlefield) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(myorigname) undocpy])) forever )!])) ueot])) oneshot text=Choose one -- Create two 3/3 colorless Golem artifact creature tokens. -- Choose target artifact you control. Each other artifact you control becomes a copy of that artifact until end of turn. mana={5}{U} type=Instant @@ -64957,7 +64957,7 @@ subtype=Equipment [card] name=Mathas, Fiend Seeker abilities=menace -auto=@each my endofturn:name(Put bounty counter) target(creature|opponentBattlefield) transforms((,newability[counter(0/0.1.Bounty)],newability[@movedto(this|graveyard) from(mybattlefield) restriction{compare(hascntbounty)~morethan~0}:name(Opponent draw a card) draw:1 opponent],newability[@movedto(this|graveyard) from(mybattlefield) restriction{compare(hascntbounty)~morethan~0}:name(Opponent gain 2 life) life:2 opponent])) forever +auto=@each my end:name(Put bounty counter) target(creature|opponentBattlefield) transforms((,newability[counter(0/0.1.Bounty)],newability[@movedto(this|graveyard) from(mybattlefield) restriction{compare(hascntbounty)~morethan~0}:name(Opponent draw a card) draw:1 opponent],newability[@movedto(this|graveyard) from(mybattlefield) restriction{compare(hascntbounty)~morethan~0}:name(Opponent gain 2 life) life:2 opponent])) forever text=Menace -- At the beginning of your end step, put a bounty counter on target creature an opponent controls. For as long as that creature has a bounty counter on it, it has "When this creature dies, each opponent draws a card and gains 2 life." mana={R}{W}{B} type=Legendary Creature @@ -65207,7 +65207,7 @@ toughness=1 name=Medomai the Ageless abilities=flying auto=this(counter{0/0.1.ExtraTurn}>0) transforms((,cantattack,cantpwattack)) -auto=@combatdamaged(player) from(this):name(Take an extra turn) transforms((,newability[phaseaction[endofturn next once sourceinplay] counter(0/0.-1.ExtraTurn)],newability[counter(0/0.1.ExtraTurn)],newability[turns:+1 controller])) oneshot +auto=@combatdamaged(player) from(this):name(Take an extra turn) transforms((,newability[phaseaction[end next once sourceinplay] counter(0/0.-1.ExtraTurn)],newability[counter(0/0.1.ExtraTurn)],newability[turns:+1 controller])) oneshot text=Flying -- Whenever Medomai the Ageless deals combat damage to a player, take an extra turn after this one. -- Medomai the Ageless can't attack during extra turns. mana={4}{W}{U} type=Legendary Creature @@ -65582,7 +65582,7 @@ subtype=Lesson [card] name=Meren of Clan Nel Toth auto=@movedTo(other creature|graveyard) from(myBattlefield):alterexperience:1 controller -auto=@each my endofturn restriction{type(creature|mygraveyard)~morethan~0}:name(Choose a creature) target(creature|mygraveyard) transforms((,newability[if compare(manacost)~morethan~compare(pexperience) then moveto(ownerHand) else moveto(mybattlefield)])) oneshot +auto=@each my end restriction{type(creature|mygraveyard)~morethan~0}:name(Choose a creature) target(creature|mygraveyard) transforms((,newability[if compare(manacost)~morethan~compare(pexperience) then moveto(ownerHand) else moveto(mybattlefield)])) oneshot text=Whenever another creature you control dies, you get an experience counter. -- At the beginning of your end step, choose target creature card in your graveyard. If that card's mana value is less than or equal to the number of experience counters you have, return it to the battlefield. Otherwise, put it into your hand. mana={2}{B}{G} type=Legendary Creature @@ -66392,7 +66392,7 @@ type=Enchantment [card] name=Mindlink Mech abilities=flying -auto={0}:name(Copy and crew 1 [1 creature]) target(creature[-legendary&-tapped]|mybattlefield) tap && copy and!( transforms((Artifact Vechicle Creature,setpower=4,settoughness=3,flying,newability[phaseaction[endofturn once sourceinplay] flip(myorigname) undocpy])) ueot )! restriction{compare(crewtotalpower)~morethan~0} limit:1 +auto={0}:name(Copy and crew 1 [1 creature]) target(creature[-legendary&-tapped]|mybattlefield) tap && copy and!( transforms((Artifact Vechicle Creature,setpower=4,settoughness=3,flying,newability[phaseaction[end once sourceinplay] flip(myorigname) undocpy])) ueot )! restriction{compare(crewtotalpower)~morethan~0} limit:1 auto={crew(other creature[power>=1]|myBattlefield)}:name(crew 1 [1 creature]) transforms((Artifact Vechicle Creature,setpower=4,settoughness=3,flying)) ueot restriction{type(other creature[-tapped;power>=1]|mybattlefield)~morethan~0,compare(crewtotalpower)~morethan~0} text=Flying -- Whenever Mindlink Mech becomes crewed for the first time each turn, until end of turn, Mindlink Mech becomes a copy of target nonlegendary creature that crewed it this turn, except it's 4/3, it's a Vehicle artifact in addition to its other types, and it has flying. -- Crew 1 mana={2}{U} @@ -66636,8 +66636,8 @@ auto=@targeted(this) from(*|opponentzones) restriction{compare(hascntexperience) auto=@targeted(this) from(*|opponentzones) restriction{compare(hascntexperience)~equalto~18}:choice name(This spell costs 18 more) name(This spell costs 18 more) target(*|opponentzones) transforms((,newability[pay[[18]] name(pay 18 mana) donothing?fizzle])) oneshot auto=@targeted(this) from(*|opponentzones) restriction{compare(hascntexperience)~equalto~19}:choice name(This spell costs 19 more) name(This spell costs 19 more) target(*|opponentzones) transforms((,newability[pay[[19]] name(pay 19 mana) donothing?fizzle])) oneshot auto=@targeted(this) from(*|opponentzones) restriction{compare(hascntexperience)~morethan~19}:choice name(This spell costs 20 more) name(This spell costs 20 more) target(*|opponentzones) transforms((,newability[pay[[20]] name(pay 20 mana) donothing?fizzle])) oneshot -auto=@each my endofturn restriction{revolt}:name(Put experience counter) counter(0/0,1,Experience) -auto=@each my endofturn restriction{revolt}:alterexperience:1 controller +auto=@each my end restriction{revolt}:name(Put experience counter) counter(0/0,1,Experience) +auto=@each my end restriction{revolt}:alterexperience:1 controller auto=lord(creature|mybattlefield) pexperience/0 nonstatic text=Ward {X}, where X is the number of experience counters you have. -- At the beginning of your end step, if a permanent you controlled left the battlefield this turn, you get an experience counter. -- Creatures you control get +1/+0 for each experience counter you have. mana={2}{W}{B} @@ -66676,7 +66676,7 @@ subtype=Desert [/card] [card] name=Mirage Mirror -auto={2}:target(*[artifact;creature;enchantment;land]|battlefield) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(Mirage Mirror) undocpy])) forever )! +auto={2}:target(*[artifact;creature;enchantment;land]|battlefield) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(Mirage Mirror) undocpy])) forever )! text={2}: Mirage Mirror becomes a copy of target artifact, creature, enchantment, or land until end of turn. mana={3} type=Artifact @@ -66898,7 +66898,7 @@ type=Artifact [/card] [card] name=Mirror of the Forebears -auto=chooseatype transforms((,newability[{1}:name(Becomes copy) target(creature[chosentype]|myBattlefield) copy and!( all(this) transforms((Artifact,newability[phaseaction[endofturn once] flip(Mirror of the Forebears) undocpy])) forever )!])) forever chooseend +auto=chooseatype transforms((,newability[{1}:name(Becomes copy) target(creature[chosentype]|myBattlefield) copy and!( all(this) transforms((Artifact,newability[phaseaction[end once] flip(Mirror of the Forebears) undocpy])) forever )!])) forever chooseend text=As Mirror of the Forebears enters, choose a creature type. -- {1}: Until end of turn, Mirror of the Forebears becomes a copy of target creature you control of the chosen type, except it's an artifact in addition to its other types. mana={2} type=Artifact @@ -68002,7 +68002,7 @@ auto=counter(0/0,1,Level) auto=if thisturn(*|mystack)~equalto~1 then counter(0/0,1,MonkEffect) auto=@movedto(*|mystack):counter(0/0,1,MonkEffect) auto=this(variable{hascntmonkeffect}=1) lord(*|mycastingzone) altercost(colorless, -1) -auto=@each endofturn restriction{compare(hascntmonkeffect)~morethan~0}:removeallcounters(0/0,1,MonkEffect) +auto=@each end restriction{compare(hascntmonkeffect)~morethan~0}:removeallcounters(0/0,1,MonkEffect) auto=this(variable{hascntlevel}=1) {W}{U}:name(Level 2) counter(0/0,1,Level) asSorcery auto=@counteradded(0/0.1.Level) from(this) restriction{compare(hascntlevel)~equalto~2}:may name(Return non-land permanent) target(*[-land]|battlefield) moveto(ownerhand) auto=this(variable{hascntlevel}=2) {1}{W}{U}:name(Level 3) counter(0/0,1,Level) asSorcery @@ -68977,8 +68977,8 @@ toughness=3 [/card] [card] name=Muse Vortex -aicode=activate transforms((,newability[target(*[instant;sorcery;zpos<=fullpaid;manacost<=fullpaid]|mylibrary) moveto(exile) and!( transforms((,newability[zerocast],newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(ownerHand)],newability[all(*[zpos<=fullpaid]|mylibrary) moveto(myreveal) and!( bottomoflibrary )!])) )!])) oneshot -auto=if type(*[instant;sorcery;zpos<=fullpaid;manacost<=fullpaid]|mylibrary)~morethan~0 then name(Reveal cards) name(Reveal cards) reveal:x revealzone(mylibrary) optionone name(Choose instant or sorcery) target(*[instant;sorcery;manacost<=fullpaid]|reveal) moveto(myexile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveto(ownerHand)],newability[canplayfromexile],newability[zerocast])) ueot )! optiononeend optiontwo name(Put back) target(*|reveal) bottomoflibrary and!(all(*|reveal) bottomoflibrary )! optiontwoend revealend +aicode=activate transforms((,newability[target(*[instant;sorcery;zpos<=fullpaid;manacost<=fullpaid]|mylibrary) moveto(exile) and!( transforms((,newability[zerocast],newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(ownerHand)],newability[all(*[zpos<=fullpaid]|mylibrary) moveto(myreveal) and!( bottomoflibrary )!])) )!])) oneshot +auto=if type(*[instant;sorcery;zpos<=fullpaid;manacost<=fullpaid]|mylibrary)~morethan~0 then name(Reveal cards) name(Reveal cards) reveal:x revealzone(mylibrary) optionone name(Choose instant or sorcery) target(*[instant;sorcery;manacost<=fullpaid]|reveal) moveto(myexile) and!( transforms((,newability[phaseaction[end once checkex] moveto(ownerHand)],newability[canplayfromexile],newability[zerocast])) ueot )! optiononeend optiontwo name(Put back) target(*|reveal) bottomoflibrary and!(all(*|reveal) bottomoflibrary )! optiontwoend revealend auto=if type(*[instant;sorcery;zpos<=fullpaid;manacost<=fullpaid]|mylibrary)~equalto~0 then name(Reveal cards) name(Reveal cards) all(*[zpos<=fullpaid]|mylibrary) bottomoflibrary text=Exile the top X cards of your library. You may cast an instant or sorcery spell with mana value X or less from among them without paying its mana cost. Then put the exiled instant and sorcery cards that weren't cast this way into your hand and the rest on the bottom of your library in a random order. mana={X}{U}{U} @@ -69010,7 +69010,7 @@ toughness=2 [card] name=Muster the Departed auto=_SPIRITTOKEN_ -auto=@each my endofturn restriction{morbid}:_POPULATE_ +auto=@each my end restriction{morbid}:_POPULATE_ text=When Muster the Departed enters, create a 1/1 white Spirit creature token with flying. -- Morbid - At the beginning of your end step, if a creature died this turn, populate. (Create a token that's a copy of a creature token you control.) mana={2}{W} type=Enchantment @@ -69371,7 +69371,7 @@ abilities=foretell target=creature[-legendary] autohand=_FORETELL_ autoexile={U} restriction{compare(canforetellcast)~morethan~0}:name(Cast with foretell) name(Cast with foretell) activate castcard(alternative) -auto=name(Choose non-legendary creature) transforms((,newability[@each endofturn:this(counter{0/0.1.MysticEffect}>=1) counter(0/0.-1.MysticEffect)],newability[counter(0/0.1.MysticEffect)],newability[@movedto(*[creature;planeswalker]|battlefield):all(trigger[to]) transforms((,newability[name(Copy mystic reflection target) name(Copy mystic reflection target) copy target(creature[counter{0/0.1.MysticEffect}])])) forever])) ueot +auto=name(Choose non-legendary creature) transforms((,newability[@each end:this(counter{0/0.1.MysticEffect}>=1) counter(0/0.-1.MysticEffect)],newability[counter(0/0.1.MysticEffect)],newability[@movedto(*[creature;planeswalker]|battlefield):all(trigger[to]) transforms((,newability[name(Copy mystic reflection target) name(Copy mystic reflection target) copy target(creature[counter{0/0.1.MysticEffect}])])) forever])) ueot text=Choose target nonlegendary creature. The next time one or more creatures or planeswalkers enter the battlefield this turn, they enter as copies of the chosen creature instead. -- Foretell {U} (During your turn, you may pay {2} and exile this card from your hand face down. Cast it on a later turn for its foretell cost.) mana={1}{U} type=Instant @@ -69591,8 +69591,8 @@ type=Sorcery [card] name=Nahiri's Resolve auto=lord(creature|myBattlefield) transforms((,newability[1/0],haste)) -auto=@each my endofturn:may name(Exile creatures) target(creature[-token]|mybattlefield) moveto(exile) and!( transforms((,newability[phaseaction[my upkeep once checkex] moveto(ownerbattlefield)])) forever )! -auto=@each my endofturn:may name(Exile artifacts) target(artifact[-token]|mybattlefield) moveto(exile) and!( transforms((,newability[phaseaction[my upkeep once checkex] moveto(ownerbattlefield)])) forever )! +auto=@each my end:may name(Exile creatures) target(creature[-token]|mybattlefield) moveto(exile) and!( transforms((,newability[phaseaction[my upkeep once checkex] moveto(ownerbattlefield)])) forever )! +auto=@each my end:may name(Exile artifacts) target(artifact[-token]|mybattlefield) moveto(exile) and!( transforms((,newability[phaseaction[my upkeep once checkex] moveto(ownerbattlefield)])) forever )! text=Creatures you control get +1/+0 and have haste. -- At the beginning of your end step, exile any number of nontoken artifacts and/or creatures you control. Return those cards to the battlefield under their owner's control at the beginning of your next upkeep. mana={3}{R}{W} type=Enchantment @@ -69802,8 +69802,8 @@ toughness=3 [/card] [card] name=Nascent Metamorph -aicode=activate transforms((,newability[all(*[zpos=oppofindfirsttypecreature]|opponentLibrary) copy and!( all(this) transforms((,newability[shuffle opponent],newability[phaseaction[endofturn once] flip(Nascent Metamorph) undocpy])) forever )!])) forever -auto=@combat(attacking,blocking) source(this):name(Reveal top cards) reveal:1 revealzone(opponentLibrary) revealuntil(creature|opponentLibrary) optionone name(Copy creature) target(creature|reveal) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(Nascent Metamorph) undocpy])) forever )! optiononeend optiontwo name(Put back) all(*|reveal) moveto(ownerlibrary) and!( shuffle )! optiontwoend afterrevealedend revealend +aicode=activate transforms((,newability[all(*[zpos=oppofindfirsttypecreature]|opponentLibrary) copy and!( all(this) transforms((,newability[shuffle opponent],newability[phaseaction[end once] flip(Nascent Metamorph) undocpy])) forever )!])) forever +auto=@combat(attacking,blocking) source(this):name(Reveal top cards) reveal:1 revealzone(opponentLibrary) revealuntil(creature|opponentLibrary) optionone name(Copy creature) target(creature|reveal) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(Nascent Metamorph) undocpy])) forever )! optiononeend optiontwo name(Put back) all(*|reveal) moveto(ownerlibrary) and!( shuffle )! optiontwoend afterrevealedend revealend text=Whenever Nascent Metamorph attacks or blocks, target opponent reveals cards from the top of their library until they reveal a creature card. Nascent Metamorph becomes a copy of that card until end of turn. Then that player puts all cards revealed this way on the bottom of their library in a random order. mana={1}{U} type=Creature @@ -69815,7 +69815,7 @@ toughness=1 name=Nashi, Moon Sage's Scion autohand={3}{B}{N}:ninjutsu auto=@combatdamaged(player) from(this):name(Exile top cards) all(*[zpos=1]|myLibrary) moveto(myexile) and!( transforms((,newability[this(cantargetcard(*[land]|*) canplayfromexile],newability[this(cantargetcard(*[-land]|*) {0}:name(Pay life and cast) name(Pay life and cast) activate castcard(normal) and!( life:-manacost controller )!])) ueot )! -auto=@combatdamaged(player) from(this):name(Exile top cards) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( transforms((,newability[this(cantargetcard(*[land]|*) canplayfromexile],newability[this(cantargetcard(*[-land]|*) {0}:name(Pay life and cast) name(Pay life and cast) activate castcard(normal) and!( life:-manacost controller )!],newability[phaseaction[endofturn once checkex] moveto(ownerexile)])) ueot )! +auto=@combatdamaged(player) from(this):name(Exile top cards) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( transforms((,newability[this(cantargetcard(*[land]|*) canplayfromexile],newability[this(cantargetcard(*[-land]|*) {0}:name(Pay life and cast) name(Pay life and cast) activate castcard(normal) and!( life:-manacost controller )!],newability[phaseaction[end once checkex] moveto(ownerexile)])) ueot )! text=Ninjutsu {3}{B} ({3}{B}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.) -- Whenever Nashi, Moon Sage's Scion deals combat damage to a player, exile the top card of each player's library. Until end of turn, you may play one of those cards. If you cast a spell this way, pay life equal to its mana value rather than paying its mana cost. mana={1}{B}{B} type=Legendary Creature @@ -69837,7 +69837,7 @@ toughness=4 [/card] [card] name=Nassari, Dean of Expression -auto=@each my upkeep:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( if cantargetcard(*[land]|*) then moveto(ownerexile) else transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)])) ueot )! +auto=@each my upkeep:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( if cantargetcard(*[land]|*) then moveto(ownerexile) else transforms((,newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)])) ueot )! auto=@movedto(*|mystack) from(myexile):counter(1/1) text=At the beginning of your upkeep, exile the top card of each opponent's library. Until end of turn, you may cast spells from among those exiled cards, and you may spend mana as though it were mana of any color to cast those spells. -- Whenever you cast a spell from exile, put a +1/+1 counter on Nassari, Dean of Expression. // {2}{U} Uvilda, Dean of Perfection mana={3}{R}{R} @@ -69975,7 +69975,7 @@ type=Artifact [/card] [card] name=Navigator's Ruin -auto=@each my endofturn restriction{raid}:deplete:4 opponent +auto=@each my end restriction{raid}:deplete:4 opponent text=Raid - At the beginning of your end step, if you attacked with a creature this turn, target opponent mills four cards. mana={2}{U} type=Enchantment @@ -70364,7 +70364,7 @@ toughness=4 name=Neheb, the Eternal auto=_BLOCKED_life:-3 opponent auto=@each my secondmain:counter(0/0,oplifelost,redmana) && transforms((,newability[thisforeach(counter{0/0.1.redmana}) add{R}])) ueot -auto=@each endofturn:removeallcounters(0/0,1,redmana) +auto=@each end:removeallcounters(0/0,1,redmana) text=Afflict 3 (Whenever this creature becomes blocked, defending player loses 3 life.) -- At the beginning of your postcombat main phase, add {R} for each 1 life your opponents have lost this turn. mana={3}{R}{R} type=Legendary Creature @@ -70995,7 +70995,7 @@ toughness=4 name=Night abilities=shroud,indestructible,doublefacedeath,nofizzle backside=Day -auto=@each endofturn:name(Check if day or night) moveto(opponentbattlefield) and!( if thisturn(*|opponentstack)~morethan~1 then name(It becomes day next turn) name(It becomes day next turn) phaseaction[untap once sourceinplay] flip(backside) )! +auto=@each end:name(Check if day or night) moveto(opponentbattlefield) and!( if thisturn(*|opponentstack)~morethan~1 then name(It becomes day next turn) name(It becomes day next turn) phaseaction[untap once sourceinplay] flip(backside) )! auto=lord(*[daybound]|battlefield) flip(backside) text=As it becomes night, transform all daybound permanents. -- Permanents enter the battlefield nightbound. -- If a player casts at least two spells during their own turn, it becomes day next turn. type=Emblem @@ -71116,7 +71116,7 @@ name=Nightpack Ambusher abilities=flash auto=lord(other wolf|myBattlefield) 1/1 auto=lord(other werewolf|myBattlefield) 1/1 -auto=@each my endofturn restriction{thisturn(*|mystack)~lessthan~1}:_WOLFTOKEN_ +auto=@each my end restriction{thisturn(*|mystack)~lessthan~1}:_WOLFTOKEN_ text=Flash -- Other Wolves and Werewolves you control get +1/+1. -- At the beginning of your end step, if you didn't cast a spell this turn, create a 2/2 green Wolf creature token. mana={2}{G}{G} type=Creature @@ -72648,7 +72648,7 @@ type=Instant [card] name=Oceanus Dragon abilities=flying -auto=target(creature|opponentBattlefield) transforms((,newability[tap],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto=target(creature|opponentBattlefield) transforms((,newability[tap],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever text=Flying -- When Oceanus Dragon enters, tap target creature an opponent controls. Goad it. (Until your next turn, that creature attacks each combat if able and attacks a player other than you if able.) mana={4}{U}{U} type=Creature @@ -72661,8 +72661,8 @@ name=Ocelot Pride abilities=first strike,lifelink auto=_ASCEND_ auto=@movedTo(*|myBattlefield) restriction{type(City's Blessing|mybattlefield)~equalto~0}:_ASCEND_ -auto=@each my endofturn restriction{compare(lifegain)~morethan~0}:_CITY'S_BLESSING_all(*[token;fresh]|mybattlefield) clone -auto=@each my endofturn restriction{compare(lifegain)~morethan~0}:create(cat:creature cat:1/1:white) +auto=@each my end restriction{compare(lifegain)~morethan~0}:_CITY'S_BLESSING_all(*[token;fresh]|mybattlefield) clone +auto=@each my end restriction{compare(lifegain)~morethan~0}:create(cat:creature cat:1/1:white) text=First strike, lifelink -- Ascend (If you control ten or more permanents, you get the city's blessing for the rest of the game.) -- At the beginning of your end step, if you gained life this turn, create a 1/1 white Cat creature token. Then if you have the city's blessing, for each token you control that entered the battlefield this turn, create a token that's a copy of it. mana={W} type=Creature @@ -72684,25 +72684,25 @@ toughness=1 name=Ochre Jelly abilities=trample auto=if cantargetcard(*[token]|*) then counter(1/1) else counter(1/1,x) -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~2}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly)])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~3}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly)])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~4}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~5}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~6}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.2) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~7}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.2) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~8}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.3) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~9}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.3) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~10}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.4) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~11}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.4) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~12}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.5) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~13}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.5) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~14}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.6) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~15}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.6) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~16}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.7) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~17}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.7) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~18}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.8) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~19}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.8) )! ])) ueot!$ controller -auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~morethan~19}:ability$!name(Create copy) emblem transforms((,newability[@each endofturn:token(Ochre Jelly) and!( counter(1/1.9) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~2}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly)])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~3}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly)])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~4}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~5}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~6}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.2) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~7}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.2) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~8}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.3) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~9}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.3) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~10}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.4) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~11}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.4) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~12}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.5) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~13}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.5) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~14}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.6) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~15}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.6) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~16}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.7) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~17}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.7) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~18}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.8) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~equalto~19}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.8) )! ])) ueot!$ controller +auto=@movedTo(this|graveyard) from(battlefield) restriction{compare(hascnt11)~morethan~19}:ability$!name(Create copy) emblem transforms((,newability[@each end:token(Ochre Jelly) and!( counter(1/1.9) )! ])) ueot!$ controller text=Trample -- Ochre Jelly enters with X +1/+1 counters on it. -- Split - When Ochre Jelly dies, if it had two or more +1/+1 counters on it, create a token that's a copy of it at the beginning of the next end step. That token enters with half that many +1/+1 counters on it, rounded down. mana={X}{G} type=Creature @@ -73182,7 +73182,7 @@ toughness=4 [card] name=Old Flitterfang abilities=flying -auto=@each endofturn restriction{morbid}:_FOOD_ +auto=@each end restriction{morbid}:_FOOD_ auto={2}{B}{S(other *[creature;artifact]|mybattlefield)}:2/2 ueot text=Flying -- At the beginning of each end step, if a creature died this turn, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- {2}{B}, Sacrifice another creature or artifact: Old Flitterfang gets +2/+2 until end of turn. mana={4}{B} @@ -73587,11 +73587,11 @@ auto=@each secondmain restriction{compare(mygreenpoolcount)~morethan~0}:thisfore auto=@each secondmain restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{B} && removemana({R}) auto=@each secondmain restriction{compare(mycolorlesspoolcount)~morethan~0}:thisforeach(variable{mycolorlesspoolcount}) add{B} && removemana({C}) auto=@each secondmain restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{B} && removemana({W}) -auto=@each endofturn restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{B} && removemana({U}) -auto=@each endofturn restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{B} && removemana({G}) -auto=@each endofturn restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{B} && removemana({R}) -auto=@each endofturn restriction{compare(mycolorlesspoolcount)~morethan~0}:thisforeach(variable{mycolorlesspoolcount}) add{B} && removemana({C}) -auto=@each endofturn restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{B} && removemana({W}) +auto=@each end restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{B} && removemana({U}) +auto=@each end restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{B} && removemana({G}) +auto=@each end restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{B} && removemana({R}) +auto=@each end restriction{compare(mycolorlesspoolcount)~morethan~0}:thisforeach(variable{mycolorlesspoolcount}) add{B} && removemana({C}) +auto=@each end restriction{compare(mywhitepoolcount)~morethan~0}:thisforeach(variable{mywhitepoolcount}) add{B} && removemana({W}) auto=@each cleanup restriction{compare(mybluepoolcount)~morethan~0}:thisforeach(variable{mybluepoolcount}) add{B} && removemana({U}) auto=@each cleanup restriction{compare(mygreenpoolcount)~morethan~0}:thisforeach(variable{mygreenpoolcount}) add{B} && removemana({G}) auto=@each cleanup restriction{compare(myredpoolcount)~morethan~0}:thisforeach(variable{myredpoolcount})add{B} && removemana({R}) @@ -73928,7 +73928,7 @@ auto=aslongas(*[iscommander&blue]|myzones) {1}{T}:name(Add blue mana) name(Add b auto=aslongas(*[iscommander&black]|myzones) {1}{T}:name(Add black mana) name(Add black mana) transforms((,newability[add{B}],newability[if type(*[iscommander]|myrestrictedcastingzone)~morethan~0 then counter(0/0.1.OpalEffect)])) oneshot auto=@movedto(*[iscommander]|mybattlefield) restriction{compare(hascntopaleffect)~morethan~0}:name(Put 1/1 counter) all(trigger[to]) name(Put 1/1 counter) transforms((,newability[counter(1/1.numofcommandcast)])) oneshot auto=@movedto(*[iscommander]|mybattlefield) restriction{compare(hascntopaleffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.OpalEffect) -auto=@each endofturn restriction{compare(hascntopaleffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.OpalEffect) +auto=@each end restriction{compare(hascntopaleffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.OpalEffect) text={T}: Add {C}. -- {1}, {T}: Add one mana of any color in your commander's color identity. If you spend this mana to cast your commander, it enters with a number of additional +1/+1 counters on it equal to the number of times it's been cast from the command zone this game. type=Land [/card] @@ -74611,7 +74611,7 @@ abilities=changeling auto=@targeted(other *|mybattlefield) from(*[instant;sorcery]|mycastingzone):name(Create copy of targeted permanent) all(trigger[to]) clone auto=@targeted(*|myhand) from(*|opponentzones):all(trigger[to]) counter(0/0,1,OrvarEffect) auto=@discarded(*[counter{0/0.1.OrvarEffect}]|myhand):name(Create copy of permanent) target(*|battlefield) clone -auto=@each endofturn:all(*[counter{0/0.1.OrvarEffect}]|myhand) removeallcounters(0/0,1,OrvarEffect) +auto=@each end:all(*[counter{0/0.1.OrvarEffect}]|myhand) removeallcounters(0/0,1,OrvarEffect) text=Changeling -- Whenever you cast an instant or sorcery spell, if it targets one or more other permanents you control, create a token that's a copy of one of those permanents. -- When a spell or ability an opponent controls causes you to discard this card, create a token that's a copy of target permanent. mana={3}{U} type=Legendary Creature @@ -75188,7 +75188,7 @@ toughness=3 [/card] [card] name=Owlbear Shepherd -auto=@each my endofturn restriction{compare(powertotalinplay)~morethan~7}:draw:1 +auto=@each my end restriction{compare(powertotalinplay)~morethan~7}:draw:1 text=At the beginning of your end step, if creatures you control have total power 8 or greater, draw a card. mana={2}{G} type=Creature @@ -75288,7 +75288,7 @@ toughness=2 name=Pack's Betrayal target=creature aicode=activate transforms((,newability[all(*[zpos<=2]|mylibrary) transforms((,newability[may name(Put on bottom of library) moveto(myreveal) and!( bottomoflibrary )!])) oneshot])) oneshot -auto=moveto(mybattlefield) and!( transforms((,haste,newability[untap],newability[phaseaction[endofturn once sourceinplay] moveto(ownerbattlefield)])) ueot )! +auto=moveto(mybattlefield) and!( transforms((,haste,newability[untap],newability[phaseaction[end once sourceinplay] moveto(ownerbattlefield)])) ueot )! auto=if type(*[wolf;werewolf]|mybattlefield)~morethan~0 then name(Scry 2) name(Scry 2) _SCRY2_ text=Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn. If you control a Wolf or Werewolf, scry 2. (Look at the top two cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.) mana={2}{R} @@ -75539,10 +75539,10 @@ toughness=3 [/card] [card] name=Palantir of Orthanc -auto=@each my endofturn restriction{compare(ishuman)~equalto~0}:name(Player draws or mills) name(Player draws or mills) all(*[zpos=1]|opponentlibrary) name(Player draws or mills) transforms((,newability[choice name(Opponent draws a card) draw:1 opponent],newability[choice name(Opponent mills cards) all(Palantir of Orthanc[legendary]|opponentbattlefield) transforms((,newability[all(*[zpos<=hascntinfluence]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[damage:manacost opponent])) ueot )!])) ueot])) ueot -auto=@each my endofturn restriction{compare(ishuman)~morethan~0}:name(Player draws or mills) name(Player draws or mills) ability$!name(Player draws or mills) if compare(genrand2)~equalto~0 then draw:1 controller else all(*[zpos<=storedhascntinfluence]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[damage:manacost opponent])) ueot )!!$ controller -auto=@each my endofturn restriction{compare(ishuman)~morethan~0}:name(Scry 2) _SCRY2_ -auto=@each my endofturn:name(Put influence counter) counter(0/0,1,Influence) +auto=@each my end restriction{compare(ishuman)~equalto~0}:name(Player draws or mills) name(Player draws or mills) all(*[zpos=1]|opponentlibrary) name(Player draws or mills) transforms((,newability[choice name(Opponent draws a card) draw:1 opponent],newability[choice name(Opponent mills cards) all(Palantir of Orthanc[legendary]|opponentbattlefield) transforms((,newability[all(*[zpos<=hascntinfluence]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[damage:manacost opponent])) ueot )!])) ueot])) ueot +auto=@each my end restriction{compare(ishuman)~morethan~0}:name(Player draws or mills) name(Player draws or mills) ability$!name(Player draws or mills) if compare(genrand2)~equalto~0 then draw:1 controller else all(*[zpos<=storedhascntinfluence]|mylibrary) moveto(mygraveyard) and!( transforms((,newability[damage:manacost opponent])) ueot )!!$ controller +auto=@each my end restriction{compare(ishuman)~morethan~0}:name(Scry 2) _SCRY2_ +auto=@each my end:name(Put influence counter) counter(0/0,1,Influence) text=At the beginning of your end step, put an influence counter on Palantir of Orthanc and scry 2. Then target opponent may have you draw a card. If that player doesn't, you mill X cards, where X is the number of influence counters on Palantir of Orthanc, and that player loses life equal to the total mana value of those cards. mana={3} type=Legendary Artifact @@ -75593,7 +75593,7 @@ backside=Cackling Culprit restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=@movedTo(creature|graveyard) from(mybattlefield):name(Gain 1 life) life:1 controller -auto=@each my endofturn restriction{compare(lifegain)~morethan~2}:name(Transform) flip(backside) +auto=@each my end restriction{compare(lifegain)~morethan~2}:name(Transform) flip(backside) text=Whenever Panicked Bystander or another creature you control dies, you gain 1 life. -- At the beginning of your end step, if you gained 3 or more life this turn, transform Panicked Bystander. // Cackling Culprit mana={1}{W} type=Creature @@ -75923,7 +75923,7 @@ toughness=2 [card] name=Passageway Seer auto=_INITIATIVE_CONTROLLER_ -auto=@each my endofturn restriction{compare(pinitiative)~morethan~0}:name(Put 1/1 counter) all(this) counter(1/1) +auto=@each my end restriction{compare(pinitiative)~morethan~0}:name(Put 1/1 counter) all(this) counter(1/1) abilities=lifelink text=Lifelink -- When Passageway Seer enters, you take the initiative. -- At the beginning of your end step, if you have the initiative, put a +1/+1 counter on Passageway Seer. mana={3}{B} @@ -75994,7 +75994,7 @@ auto=aslongas(*[iscommander&blue]|myzones) {T}:name(Add blue mana) name(Add blue auto=aslongas(*[iscommander&black]|myzones) {T}:name(Add black mana) name(Add black mana) transforms((,newability[add{B}],newability[if type(creature|myrestrictedcastingzone)~morethan~0 then counter(0/0.1.PathEffect)])) oneshot auto=@movedto(creature|mybattlefield) restriction{compare(hascntpatheffect)~morethan~0}:name(Scry if share type) all(trigger[to]) name(Scry if share type) transforms((,newability[if type(*[iscommander&share!types!]|myzones)~morethan~0 then _SCRY1_])) oneshot auto=@movedto(creature|mybattlefield) restriction{compare(hascntpatheffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.PathEffect) -auto=@each endofturn restriction{compare(hascntpatheffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.PathEffect) +auto=@each end restriction{compare(hascntpatheffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.PathEffect) text=Path of Ancestry enters tapped. -- {T}: Add one mana of any color in your commander's color identity. When that mana is spent to cast a creature spell that shares a creature type with your commander, scry 1. type=Land [/card] @@ -77767,7 +77767,7 @@ toughness=4 [/card] [card] name=Plague Reaver -auto=@each my endofturn:sacrifice all(other creature|mybattlefield) +auto=@each my end:sacrifice all(other creature|mybattlefield) auto={D(*|myhand)}{D(*|myhand)}:sacrifice and!(phaseaction[opponent upkeep once] name(choose Plague Reaver) moveto(opponentbattlefield) target(Plague Reaver[fresh]|mygraveyard))! text=At the beginning of your end step, sacrifice each other creature you control. -- Discard two cards, Sacrifice Plague Reaver: Choose target opponent. Return Plague Reaver to the battlefield under that player's control at the beginning of their next upkeep. mana={2}{B} @@ -77919,7 +77919,7 @@ type=Enchantment [/card] [card] name=Planeswalker's Mischief -auto={3}{U}:name(Opponent reveals card) moverandom(*) from(opponenthand) to(myhand) and!( transforms((,newability[if cantargetcard(*[instant;sorcery]|*) then choice name(Put to exile) name(Put to exile) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[zerocast],newability[phaseaction[endofturn once checkex] moveto(ownerhand)])) ueot)!],newability[if cantargetcard(*[-instant;-sorcery]|*) then choice name(Put back) name(Put back) moveto(ownerhand)])) oneshot )! asSorcery +auto={3}{U}:name(Opponent reveals card) moverandom(*) from(opponenthand) to(myhand) and!( transforms((,newability[if cantargetcard(*[instant;sorcery]|*) then choice name(Put to exile) name(Put to exile) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[zerocast],newability[phaseaction[end once checkex] moveto(ownerhand)])) ueot)!],newability[if cantargetcard(*[-instant;-sorcery]|*) then choice name(Put back) name(Put back) moveto(ownerhand)])) oneshot )! asSorcery text={3}{U}: Target opponent reveals a card at random from their hand. If it's an instant or sorcery card, exile it. You may cast it without paying its mana cost for as long as it remains exiled. (If it has X in its mana cost, X is 0.) At the beginning of the next end step, if you haven't cast it, return it to its owner's hand. Activate this ability only any time you could cast a sorcery. mana={2}{U} type=Enchantment @@ -78033,7 +78033,7 @@ toughness=2 [/card] [card] name=Platoon Dispenser -auto=@each my endofturn:if type(other creature|mybattlefield)~morethan~1 then draw:1 +auto=@each my end:if type(other creature|mybattlefield)~morethan~1 then draw:1 auto={3}{W}:create(soldier:artifact creature soldier:1/1) autograveyard={2}{W}{W}:_UNEARTH_ text=At the beginning of your end step, if you control two or more other creatures, draw a card. -- {3}{W}: Create a 1/1 colorless Soldier artifact creature token. -- Unearth {2}{W}{W} @@ -78348,7 +78348,7 @@ auto={C(0/0,-7,PolukranosEffect)}:name(Deal 7 damages to your creature) name(Dea auto={C(0/0,-8,PolukranosEffect)}:name(Deal 8 damages to your creature) name(Deal 8 damages to your creature) target(creature|myBattlefield) transforms((,newability[damage:8],newability[dynamicability target(*[counter{0/0.1.PolukranosEffect}]|myBattlefield)])) oneshot auto={C(0/0,-9,PolukranosEffect)}:name(Deal 9 damages to your creature) name(Deal 9 damages to your creature) target(creature|myBattlefield) transforms((,newability[damage:9],newability[dynamicability target(*[counter{0/0.1.PolukranosEffect}]|myBattlefield)])) oneshot auto={C(0/0,-10,PolukranosEffect)}:name(Deal 10 damages to your creature) name(Deal 10 damages to your creature) target(creature|myBattlefield) transforms((,newability[damage:10],newability[dynamicability target(*[counter{0/0.1.PolukranosEffect}]|myBattlefield)])) oneshot -auto=@each endofturn:removeallcounters(0/0,1,PolukranosEffect) +auto=@each end:removeallcounters(0/0,1,PolukranosEffect) text={X}{X}{G}: Monstrosity X. (If this creature isn't monstrous, put X +1/+1 counters on it and it becomes monstrous.) -- When Polukranos, World Eater becomes monstrous, it deals X damage divided as you choose among any number of target creatures your opponents control. Each of those creatures deals damage equal to its power to Polukranos. mana={2}{G}{G} type=Legendary Creature @@ -78384,8 +78384,8 @@ type=Instant name=Polymorphous Rush abilities=hasnokicker,hasstrive kicker=multi{1}{U} name(Strive) -autostack=name(Choose a creature to copy) target(creature) transforms((,newability[phaseaction[endofturn once] counter(0/0.-1.RushEffect)],newability[counter(0/0.1.RushEffect)])) oneshot -auto=name(Creatures become copy) name(Creatures become copy) target(creature) transforms((,newability[all(creature[counter{0/0.1.RushEffect}]|battlefield) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(myorigname) undocpy])) ueot )!])) ueot +autostack=name(Choose a creature to copy) target(creature) transforms((,newability[phaseaction[end once] counter(0/0.-1.RushEffect)],newability[counter(0/0.1.RushEffect)])) oneshot +auto=name(Creatures become copy) name(Creatures become copy) target(creature) transforms((,newability[all(creature[counter{0/0.1.RushEffect}]|battlefield) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(myorigname) undocpy])) ueot )!])) ueot text=Strive - Polymorphous Rush costs {1}{U} more to cast for each target beyond the first. -- Choose a creature on the battlefield. Any number of target creatures you control each become a copy of that creature until end of turn. mana={2}{U} type=Instant @@ -78709,7 +78709,7 @@ type=Instant [card] name=Power of Persuasion target=creature|opponentbattlefield -auto=name(Roll a d20) rolld20 20 winability transforms((,newability[moveTo(opponentbattlefield)],newability[phaseaction[my endofturn once next sourceinplay] moveTo(ownerbattlefield)])) forever winabilityend loseability if compare(srclastrollresult)~lessthan~10 then moveto(ownerhand) else bottomoflibrary loseabilityend rolld20end +auto=name(Roll a d20) rolld20 20 winability transforms((,newability[moveTo(opponentbattlefield)],newability[phaseaction[my end once next sourceinplay] moveTo(ownerbattlefield)])) forever winabilityend loseability if compare(srclastrollresult)~lessthan~10 then moveto(ownerhand) else bottomoflibrary loseabilityend rolld20end text=Choose target creature an opponent controls, then roll a d20. -- 1-9 | Return it to its owner's hand. -- 10-19 | Its owner puts it on the top of bottom of their library. -- 20 | Gain control of it until the end of your next turn. mana={2}{U} type=Sorcery @@ -79158,7 +79158,7 @@ toughness=2 [/card] [card] name=Priest of the Blessed Graf -auto=@each my endofturn restriction{compare(type:land:opponentbattlefield)~morethan~compare(type:land:mybattlefield)}:name(Create spirit) _SPIRITTOKEN_ +auto=@each my end restriction{compare(type:land:opponentbattlefield)~morethan~compare(type:land:mybattlefield)}:name(Create spirit) _SPIRITTOKEN_ text=At the beginning of your end step, create X 1/1 white Spirit creature tokens with flying, where X is the number of opponents who control more lands than you. mana={2}{W} type=Creature @@ -79717,7 +79717,7 @@ type=Sorcery [card] name=Promise of Tomorrow auto=@movedTo(creature|graveyard) from(mybattlefield):all(trigger[to]) moveTo(exile) -auto=@each my endofturn restriction{type(creature|myBattlefield)~lessthan~1}:sacrifice all(this) && moveTo(myBattlefield) all(creature|myExile) +auto=@each my end restriction{type(creature|myBattlefield)~lessthan~1}:sacrifice all(this) && moveTo(myBattlefield) all(creature|myExile) text=Whenever a creature you control dies, exile it. -- At the beginning of each end step, if you control no creatures, sacrifice Promise of Tomorrow and return all cards exiled with it to the battlefield under your control. mana={2}{W} type=Enchantment @@ -80193,7 +80193,7 @@ toughness=3 [card] name=Psychic Theft target=player -auto=if type(*[instant;sorcery]|targetedpersonshand)~morethan~0 then name(Exile a card) name(Exile a card) target(*[instant;sorcery]|targetedpersonshand) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveto(ownerhand)])) ueot )! +auto=if type(*[instant;sorcery]|targetedpersonshand)~morethan~0 then name(Exile a card) name(Exile a card) target(*[instant;sorcery]|targetedpersonshand) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveto(ownerhand)])) ueot )! auto=if type(*[instant;sorcery]|targetedpersonshand)~equalto~0 then name(Reveal hand) name(Reveal hand) target(*|targetedpersonshand) moveto(myreveal) and!( moveto(ownerHand) )! text=Target player reveals their hand. You choose an instant or sorcery card from it and exile that card. You may cast that card for as long as it remains exiled. At the beginning of the next end step, if you haven't cast the card, return it to its owner's hand. mana={1}{U} @@ -80330,7 +80330,7 @@ type=Sorcery [card] name=Puppet Raiser abilities=menace -auto=@each my endofturn:may name(Exile a creature) target(creature|mygraveyard) moveto(myexile) and!( transforms((,newability[name(Seek a creature) moverandom(creature[manacost=manacostplus1plusend]) from(mylibrary) to(myhand) and!( counter(0/0.1.PerpetualMenace) notrg )! ])) forever )! +auto=@each my end:may name(Exile a creature) target(creature|mygraveyard) moveto(myexile) and!( transforms((,newability[name(Seek a creature) moverandom(creature[manacost=manacostplus1plusend]) from(mylibrary) to(myhand) and!( counter(0/0.1.PerpetualMenace) notrg )! ])) forever )! auto=emblem transforms((,newability[lord(creature[counter{0/0.1.PerpetualMenace}]|battlefield) menace])) forever dontremove text=At the beginning of your end step, exile up to one target creature card from your graveyard. If you do, seek a creature card with mana value equal to that mana value of that card plus one. That card perpetually gains menace. mana={3}{B} @@ -80605,7 +80605,7 @@ auto=@damaged(creature|myBattlefield) from(*[instant;sorcery]|myzones):all(trigg auto=@damaged(creature|opponentBattlefield) from(*[instant;sorcery]|*):all(trigger[to]) damage:2 auto=@damageof(player) from(*[instant;sorcery]|myzones):damage:2 opponent auto=@damagefoeof(player) from(*[instant;sorcery]|*):damage:2 opponent -auto=@each endofturn:name(Discard hand) all(*|myhand) reject +auto=@each end:name(Discard hand) all(*|myhand) reject text=If an instant or sorcery source you control would deal damage to a creature or player, it deals that much damage plus 2 to that creature or player instead. -- At the beginning of each end step, discard your hand. mana={2}{R} type=Enchantment @@ -81088,8 +81088,8 @@ toughness=4 [card] name=Quintorius, Loremaster abilities=vigilance -auto=@each my endofturn restriction{type(*[-creature;-land]|mygraveyard)~morethan~0}:name(Exile a card) target(*[-creature;-land]|mygraveyard) moveto(myexile) and!( counter(0/0.1.QuintoriusExiled) notrg )! -auto=@each my endofturn restriction{type(*[-creature;-land]|mygraveyard)~morethan~0}:name(Create spirit) token(Spirit,Creature Spirit,3/2,red,white) +auto=@each my end restriction{type(*[-creature;-land]|mygraveyard)~morethan~0}:name(Exile a card) target(*[-creature;-land]|mygraveyard) moveto(myexile) and!( counter(0/0.1.QuintoriusExiled) notrg )! +auto=@each my end restriction{type(*[-creature;-land]|mygraveyard)~morethan~0}:name(Create spirit) token(Spirit,Creature Spirit,3/2,red,white) auto={1}{R}{W}{T}{S(spirit|myBattlefield)}:name(Choose exiled card) target(*[counter{0/0.1.QuintoriusExiled}]|myexile) transforms((,newability[zerocast],newability[canplayfromexile],newability[bottomlibrarydeath])) ueot text=Vigilance -- At the beginning of your end step, exile target noncreature, nonland card from your graveyard. Create a 3/2 red and white Spirit creature token. -- {1}{R}{W}, {T}, Sacrifice a Spirit: Choose target card exiled with Quintorius. You may cast that card this turn without paying its mana cost. If that spell would be put into a graveyard, put it on the bottom of its owner's library instead. mana={3}{R}{W} @@ -81405,9 +81405,9 @@ toughness=1 [card] name=Ragavan, Nimble Pilferer other={1}{R} name(Dash) -auto=if paid(alternative) then transforms((,haste,newability[phaseaction[endofturn once sourceinplay] moveto(ownerhand)])) forever +auto=if paid(alternative) then transforms((,haste,newability[phaseaction[end once sourceinplay] moveto(ownerhand)])) forever auto=@combatdamaged(player) from(this):_TREASURE_ -auto=@combatdamagefoeof(player) from(this):name(Exile top card) name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( if cantargetcard(*[-land]|*) then transforms((,newability[canplayfromexile],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)])) ueot )! +auto=@combatdamagefoeof(player) from(this):name(Exile top card) name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(myexile) and!( if cantargetcard(*[-land]|*) then transforms((,newability[canplayfromexile],newability[phaseaction[end once checkex] moveTo(ownerexile)])) ueot )! auto=@combatdamageof(player) from(this):name(Exile top card) name(Exile top card) all(*[zpos=1]|mylibrary) moveto(myexile) and!( if cantargetcard(*[-land]|*) then transforms((,newability[this(cantargetcard(*[-land]|*)) canplayfromexile])) ueot )! text=Whenever Ragavan, Nimble Pilferer deals combat damage to a player, create a Treasure token and exile the top card of that player's library. Until end of turn, you may cast that card. -- Dash {1}{R} (You may cast this spell for its dash cost. If you do, it gains haste, and it's returned from the battlefield to its owner's hand at the beginning of the next end step.) mana={R} @@ -81450,7 +81450,7 @@ name=Ragged Recluse backside=Odious Witch restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) -auto=@each my endofturn restriction{type(*[discarded]|mygraveyard)~morethan~0}:name(Transform) flip(backside) +auto=@each my end restriction{type(*[discarded]|mygraveyard)~morethan~0}:name(Transform) flip(backside) text=At the beginning of your end step, if you discarded a card this turn, transform Ragged Recluse. // Odious Witch mana={1}{B} type=Creature @@ -81514,9 +81514,9 @@ name=Rahilda, Feral Outlaw abilities=double strike,nightbound backside=Rahilda, Wanted Cutthroat auto=if type(*[day;night]|battlefield)~equalto~0 then if type(*[nonight]|battlefield)~equalto~0 then name(It becomes night) name(It becomes night) name(It becomes night) activate castcard(noevent named!:Night:!) -auto=@combatdamagefoeof(player) from(this):name(Exile random card) moverandom(*[-land]) from(opponentlibrary) to(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RahildaExiled)])) ueot )! +auto=@combatdamagefoeof(player) from(this):name(Exile random card) moverandom(*[-land]) from(opponentlibrary) to(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RahildaExiled)])) ueot )! auto=@combatdamageof(player) from(this):name(Exile random card) moverandom(*[-land]) from(mylibrary) to(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana])) ueot )! -auto=@combat(attacking) source(*[wolf;werewolf]|mybattlefield) turnlimited:name(Can cast exiled card) all(*[counter{0/0.1.RahildaExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RahildaExiled)])) ueot )! +auto=@combat(attacking) source(*[wolf;werewolf]|mybattlefield) turnlimited:name(Can cast exiled card) all(*[counter{0/0.1.RahildaExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RahildaExiled)])) ueot )! auto=@combat(attacking) source(*[wolf;werewolf]|mybattlefield) turnlimited:name(Can cast exiled card) all(*[counter{0/0.1.RahildaExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana])) ueot text=Double strike -- When Rahilda, Feral Outlaw deals combat damage to a player, exile a nonland card from their library at random. During any turn you attacked with a Wolf or Werewolf, you may cast that card and you may spend mana as though it were mana of any color to cast that spell. -- Nightbound // Rahilda, Wanted Cutthroat color=red @@ -81532,9 +81532,9 @@ backside=Rahilda, Feral Outlaw restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=if type(*[day;night]|battlefield)~equalto~0 then name(It becomes day) activate castcard(noevent named!:Day:!) -auto=@combatdamagefoeof(player) from(this):name(Exile random card) moverandom(*[-land]) from(opponentlibrary) to(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RahildaExiled)])) ueot )! +auto=@combatdamagefoeof(player) from(this):name(Exile random card) moverandom(*[-land]) from(opponentlibrary) to(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RahildaExiled)])) ueot )! auto=@combatdamageof(player) from(this):name(Exile random card) moverandom(*[-land]) from(mylibrary) to(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana])) ueot )! -auto=@combat(attacking) source(*[wolf;werewolf]|mybattlefield) turnlimited:name(Can cast exiled card) all(*[counter{0/0.1.RahildaExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RahildaExiled)])) ueot )! +auto=@combat(attacking) source(*[wolf;werewolf]|mybattlefield) turnlimited:name(Can cast exiled card) all(*[counter{0/0.1.RahildaExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.RahildaExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RahildaExiled)])) ueot )! auto=@combat(attacking) source(*[wolf;werewolf]|mybattlefield) turnlimited:name(Can cast exiled card) all(*[counter{0/0.1.RahildaExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana])) ueot text=First strike -- When Rahilda, Wanted Cutthroat deals combat damage to a player, exile a nonland card from their library at random. During any turn you attacked with a Wolf or Werewolf, you may cast that card and you may spend mana as though it were mana of any color to cast that spell. -- Daybound // Rahilda, Feral Outlaw mana={1}{R} @@ -81560,7 +81560,7 @@ toughness=4 [card] name=Raiders' Wake auto=@discarded(*|opponenthand):life:-2 opponent -auto=@each my endofturn:if raid then ability$!discard(*|myhand)!$ opponent +auto=@each my end:if raid then ability$!discard(*|myhand)!$ opponent text=Whenever an opponent discards a card, that player loses 2 life. -- Raid - At the beginning of your end step, if you attacked with a creature this turn, target opponent discards a card. mana={3}{B} type=Enchantment @@ -81794,7 +81794,7 @@ toughness=6 [card] name=Rakdos, Patron of Chaos abilities=flying,trample -auto=@each my endofturn:ability$!name(Choose one) choice restriction{type(*[-land;-token]|mybattlefield)~morethan~1} sacrifice notatarget(<2>*[-land;-token]|mybattlefield) _ choice name(Draw cards) draw:2 opponent!$ +auto=@each my end:ability$!name(Choose one) choice restriction{type(*[-land;-token]|mybattlefield)~morethan~1} sacrifice notatarget(<2>*[-land;-token]|mybattlefield) _ choice name(Draw cards) draw:2 opponent!$ text=Flying, trample -- At the beginning of your end step, target opponent may sacrifice two nonland, nontoken permanents. If they don't, you draw two cards. mana={4}{B}{R} type=Legendary Creature @@ -82380,7 +82380,7 @@ name=Raphael, Fiendish Savior abilities=flying auto=lord(other *[demon;devil;imp;tiefling]|myBattlefield) 1/1 auto=lord(other *[demon;devil;imp;tiefling]|myBattlefield) lifelink -auto=@each endofturn restriction{type(creature[fresh]|mygraveyard)~morethan~0}:create(devil:creature devil:1/1:red) and!( transforms((,newability[@movedto(this|mygraveyard):damage:1 target(anytarget)])) forever )! +auto=@each end restriction{type(creature[fresh]|mygraveyard)~morethan~0}:create(devil:creature devil:1/1:red) and!( transforms((,newability[@movedto(this|mygraveyard):damage:1 target(anytarget)])) forever )! text=Flying -- Other Demons, Devils, Imps, and Tieflings you control get +1/+1 and have lifelink. -- At the beginning of each end step, if a creature card was put into your graveyard from anywhere this turn, create a 1/1 red Devil creature token with "When this creature dies, it deals 1 damage to any target." mana={3}{B}{R} type=Legendary Creature @@ -83695,7 +83695,7 @@ toughness=5 [card] name=Regal Bloodlord abilities=flying -auto=@each endofturn restriction{compare(lifegain)}:create(bat:creature bat:1/1:black:flying) +auto=@each end restriction{compare(lifegain)}:create(bat:creature bat:1/1:black:flying) text=Flying -- At the beginning of each end step, if you gained life this turn, create a 1/1 black Bat creature token with flying. mana={3}{W}{B} type=Creature @@ -83799,7 +83799,7 @@ name=Regna, the Redeemer abilities=flying,partner partner=Krav, the Unredeemed auto=_PARTNER_ -auto=@each endofturn restriction{compare(lifegain)~morethan~0}:create(warrior:creature warrior:1/1:white)*2 +auto=@each end restriction{compare(lifegain)~morethan~0}:create(warrior:creature warrior:1/1:white)*2 text=Partner with Krav, the Unredeemed (When this creature enters, target player may put Krav into their hand from their library, then shuffle.) -- Flying -- At the beginning of each end step, if your team gained life this turn, create two 1/1 white Warrior creature tokens. mana={5}{W} type=Legendary Creature @@ -83844,7 +83844,7 @@ type=Instant [card] name=Reinforced Ronin abilities=haste -auto=@each my endofturn:moveto(ownerhand) +auto=@each my end:moveto(ownerhand) autohand={1}{R}{discard}:draw:1 text=Haste -- At the beginning of your end step, return Reinforced Ronin to its owner's hand. -- Channel - {1}{R}, Discard Reinforced Ronin: Draw a card. mana={R} @@ -84200,7 +84200,7 @@ type=Instant [/card] [card] name=Renegade Doppelganger -auto=@movedto(other creature|myBattlefield) restriction{compare(iscopied)~equalto~0}:may name(Copy creature) all(trigger[to]) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(Renegade Doppelganger) undocpy])) forever )! +auto=@movedto(other creature|myBattlefield) restriction{compare(iscopied)~equalto~0}:may name(Copy creature) all(trigger[to]) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(Renegade Doppelganger) undocpy])) forever )! text=Whenever another creature enters under your control, you may have Renegade Doppelganger become a copy of that creature until end of turn. (If it does, it loses this ability for the rest of the turn.) mana={1}{U} type=Creature @@ -84552,7 +84552,7 @@ toughness=3 [card] name=Resplendent Angel abilities=flying -auto=@each endofturn restriction{compare(lifegain)~morethan~4}:create(angel:creature angel:4/4:white:flying:vigilance) +auto=@each end restriction{compare(lifegain)~morethan~4}:create(angel:creature angel:4/4:white:flying:vigilance) auto={3}{W}{W}{W}:2/2 && lifelink ueot text=Flying -- At the beginning of each end step, if you gained 5 or more life this turn, create a 4/4 white Angel creature token with flying and vigilance. -- {3}{W}{W}{W}: Until end of turn, Resplendent Angel gets +2/+2 and gains lifelink. mana={1}{W}{W} @@ -84624,7 +84624,7 @@ name=Restless Bloodseeker backside=Bloodsoaked Reveler restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) -auto=@each my endofturn restriction{compare(lifegain)~morethan~0}:name(Create Blood) token(Blood) +auto=@each my end restriction{compare(lifegain)~morethan~0}:name(Create Blood) token(Blood) auto={S(blood|mybattlefield)}{S(blood|mybattlefield)}:name(Transform) flip(backside) asSorcery text=At the beginning of your end step, if you gained life this turn, create a Blood token. (It's an artifact with "{1}, {T}, Discard a card, Sacrifice this artifact: Draw a card.") -- Sacrifice two Blood tokens: Transform Restless Bloodseeker. Activate only as a sorcery. // Bloodsoaked Reveler mana={1}{B} @@ -85418,7 +85418,7 @@ toughness=3 name=Rienne, Angel of Rebirth abilities=flying auto=lord(other creature[multicolor]|myBattlefield) 1/0 -auto=@movedTo(other creature[multicolor]|graveyard) from(mybattlefield):all(trigger[to]) name(Return to owner hand later) transforms((,newability[phaseaction[endofturn once] moveTo(ownerhand)])) ueot +auto=@movedTo(other creature[multicolor]|graveyard) from(mybattlefield):all(trigger[to]) name(Return to owner hand later) transforms((,newability[phaseaction[end once] moveTo(ownerhand)])) ueot text=Flying -- Other multicolored creatures you control get +1/+0. -- Whenever another multicolored creature you control dies, return it to its owner's hand at the beginning of the next end step. mana={2}{R}{G}{W} type=Legendary Creature @@ -86434,7 +86434,7 @@ type=Enchantment name=Robber of the Rich abilities=reach,haste auto=@combat(attacking) source(this) restriction{compare(ohandcount)~morethan~compare(phandcount)}:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(exile) and!( counter(0/0,1,RobberExiled) notrg )! -auto=emblem transforms((,newability[lord(rogue|myBattlefield) transforms((,newability[_ATTACKING_name(Can cast exiled cards) transforms((,newability[{0}:name(Cast exiled card) name(Cast exiled card) target(*[-land;counter{0/0.1.RobberExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.RobberExiled) notrg],newability[canplayfromexile ueot],newability[anytypeofmana ueot],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RobberExiled) notrg])) ueot )!])) ueot]))])) forever dontremove +auto=emblem transforms((,newability[lord(rogue|myBattlefield) transforms((,newability[_ATTACKING_name(Can cast exiled cards) transforms((,newability[{0}:name(Cast exiled card) name(Cast exiled card) target(*[-land;counter{0/0.1.RobberExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.RobberExiled) notrg],newability[canplayfromexile ueot],newability[anytypeofmana ueot],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RobberExiled) notrg])) ueot )!])) ueot]))])) forever dontremove text=Reach, haste -- Whenever Robber of the Rich attacks, if defending player has more cards in hand than you, exile the top card of their library. During any turn you attacked with a Rogue, you may cast that card and you may spend mana as though it were mana of any color to cast that spell. mana={1}{R} type=Creature @@ -86506,8 +86506,8 @@ toughness=1 [/card] [card] name=Rocco, Street Chef -auto=@each my endofturn:name(Exile top card) _IMPULSEUENT_ -auto=@each my endofturn:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(opponentexile) and!( transforms((,newability[canplayfromexile uent])) uent )! +auto=@each my end:name(Exile top card) _IMPULSEUENT_ +auto=@each my end:name(Exile top card) all(*[zpos=1]|opponentlibrary) moveto(opponentexile) and!( transforms((,newability[canplayfromexile uent])) uent )! auto=@movedto(land|battlefield) from(exile):name(Put 1/1 counter) target(creature|battlefield) counter(1/1) auto=@movedto(land|battlefield) from(exile):name(Create food) _FOOD_ auto=@movedto(*|stack) from(exile):name(Put 1/1 counter) target(creature|battlefield) counter(1/1) @@ -86617,27 +86617,27 @@ toughness=4 name=Rodolf Duskbringer abilities=deathtouch,flying,lifelink auto=@lifeof(player) from(*[-lifefaker]|*):name(Becomes indestructible) transforms((,indestructible)) ueot -auto=@each my endofturn restriction{compare(lifegain)~equalto~0}:may name(Pay and return with cost 0) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=0]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~1}:may name(Pay and return with cost 1) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=1]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~2}:may name(Pay and return with cost 2) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=2]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~3}:may name(Pay and return with cost 3) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=3]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~4}:may name(Pay and return with cost 4) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=4]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~5}:may name(Pay and return with cost 5) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=5]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~6}:may name(Pay and return with cost 6) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=6]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~7}:may name(Pay and return with cost 7) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=7]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~8}:may name(Pay and return with cost 8) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=8]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~9}:may name(Pay and return with cost 9) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=9]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~10}:may name(Pay and return with cost 10) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=10]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~11}:may name(Pay and return with cost 11) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=11]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~12}:may name(Pay and return with cost 12) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=12]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~13}:may name(Pay and return with cost 13) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=13]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~14}:may name(Pay and return with cost 14) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=14]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~15}:may name(Pay and return with cost 15) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=15]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~16}:may name(Pay and return with cost 16) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=16]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~17}:may name(Pay and return with cost 17) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=17]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~18}:may name(Pay and return with cost 18) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=18]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~equalto~19}:may name(Pay and return with cost 19) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=19]|mygraveyard) moveto(mybattlefield)!$ controller -auto=@each my endofturn restriction{compare(lifegain)~morethan~19}:may name(Pay and return with cost 20) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=20]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~0}:may name(Pay and return with cost 0) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=0]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~1}:may name(Pay and return with cost 1) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=1]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~2}:may name(Pay and return with cost 2) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=2]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~3}:may name(Pay and return with cost 3) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=3]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~4}:may name(Pay and return with cost 4) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=4]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~5}:may name(Pay and return with cost 5) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=5]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~6}:may name(Pay and return with cost 6) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=6]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~7}:may name(Pay and return with cost 7) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=7]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~8}:may name(Pay and return with cost 8) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=8]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~9}:may name(Pay and return with cost 9) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=9]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~10}:may name(Pay and return with cost 10) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=10]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~11}:may name(Pay and return with cost 11) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=11]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~12}:may name(Pay and return with cost 12) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=12]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~13}:may name(Pay and return with cost 13) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=13]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~14}:may name(Pay and return with cost 14) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=14]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~15}:may name(Pay and return with cost 15) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=15]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~16}:may name(Pay and return with cost 16) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=16]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~17}:may name(Pay and return with cost 17) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=17]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~18}:may name(Pay and return with cost 18) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=18]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~equalto~19}:may name(Pay and return with cost 19) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=19]|mygraveyard) moveto(mybattlefield)!$ controller +auto=@each my end restriction{compare(lifegain)~morethan~19}:may name(Pay and return with cost 20) ability$!name(Pay and return) pay({1}{WB}) name(Return creature) target(creature[manacost<=20]|mygraveyard) moveto(mybattlefield)!$ controller text=Flying, deathtouch, lifelink -- Whenever you gain life, Rodolf Duskbringer gains indestructible until end of turn. -- At the beginning of your end step, you may pay {1}{W/B}. When you do, return target creature card with mana value X or less from your graveyard to the battlefield, where X is the amount of life you gained this turn. mana={5}{B} type=Legendary Creature @@ -86682,7 +86682,7 @@ auto=this(variable{hascntlevel}=1) {1}{U}{B}:name(Level 2) counter(0/0,1,Level) auto=this(variable{hascntlevel}=2) lord(creature|myBattlefield) menace auto=this(variable{hascntlevel}=2) {2}{U}{B}:name(Level 3) counter(0/0,1,Level) asSorcery auto=this(variable{hascntlevel}>=3) lord(*[counter{0/0.1.RogueExiled}]|myexile) transforms((,newability[canplayfromexile],newability[anytypeofmana])) -auto=this(variable{hascntlevel}>=3) {0}:name(May play card from opponent exile) target(*[counter{0/0.1.RogueExiled}]|opponentexile) moveTo(myexile) and!( transforms((,newability[0/0.1.RogueExiled],newability[canplayfromexile ueot],newability[anytypeofmana ueot],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RogueExiled) notrg])) forever )! +auto=this(variable{hascntlevel}>=3) {0}:name(May play card from opponent exile) target(*[counter{0/0.1.RogueExiled}]|opponentexile) moveTo(myexile) and!( transforms((,newability[0/0.1.RogueExiled],newability[canplayfromexile ueot],newability[anytypeofmana ueot],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.RogueExiled) notrg])) forever )! text=(Gain the next level as a sorcery to add its ability.) -- Whenever a creature you controls deals combat damage to a player, exile the top card of that player's library face down. You may look at it for as long as it remains exiled. -- {1}{U}{B}: Level 2 -- Creatures you control have menace. -- {2}{U}{B}: Level 3 -- You may play cards exiled with Rogue Class, and you may spend mana as through it were mana of any color to cast them. mana={U}{B} type=Enchantment @@ -87467,7 +87467,7 @@ toughness=4 [/card] [card] name=Ruin Raider -auto=@each my endofturn:if raid then draw:1 && life:-manacost +auto=@each my end:if raid then draw:1 && life:-manacost text=Raid - At the beginning of your end step, if you attacked with a creature this turn, reveal the top card of your library and put that card into your hand. You lose life equal to the card's mana value. mana={2}{B} type=Creature @@ -87489,7 +87489,7 @@ toughness=1 [card] name=Ruin-Lurker Bat abilities=flying,lifelink -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then _SCRY1_ +auto=@each my end:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then _SCRY1_ text=Flying, lifelink -- At the beginning of your end step, if you descended this turn, scry 1. (You descended if a permanent card was put into your graveyard from anywhere.) mana={W} type=Creature @@ -88202,7 +88202,7 @@ toughness=2 [/card] [card] name=Sabertooth Mauler -auto=@each my endofturn restriction{morbid}:counter(1/1) && untap +auto=@each my end restriction{morbid}:counter(1/1) && untap text=At the beginning of your end step, if a creature died this turn, put a +1/+1 counter on Sabertooth Mauler and untap it. mana={3}{G} type=Creature @@ -88318,8 +88318,8 @@ toughness=2 [card] name=Safana, Calimport Cutthroat abilities=menace,backgroundpartner -auto=@each my endofturn restriction{compare(pdungeoncompleted)~morethan~0}:name(Create 3 treasure) _TREASURE_*3 -auto=@each my endofturn restriction{compare(pinitiative)~morethan~0,compare(pdungeoncompleted)~equalto~0}:name(Create 1 treasure) _TREASURE_ +auto=@each my end restriction{compare(pdungeoncompleted)~morethan~0}:name(Create 3 treasure) _TREASURE_*3 +auto=@each my end restriction{compare(pinitiative)~morethan~0,compare(pdungeoncompleted)~equalto~0}:name(Create 1 treasure) _TREASURE_ text=Menace -- At the beginning of your end step, if you have the initiative, create a Treasure token. Create three of those tokens instead if you've completed a dungeon. -- Choose a Background (You can have a Background as a second commander.) mana={2}{B} type=Legendary Creature @@ -88578,9 +88578,9 @@ toughness=1 [card] name=Sakashima's Will auto=if type(*[iscommander]|mybattlefield)~equalto~0 then choice name(Opponent choose a creature) name(Opponent choose a creature) ability$!name(Choose creature) name(Choose creature) target(creature|mybattlefield) moveto(opponentbattlefield)!$ opponent -auto=if type(*[iscommander]|mybattlefield)~equalto~0 then choice name(All creatures becomes copy) name(All creatures becomes copy) target(creature|myBattlefield) transforms((,newability[phaseaction[endofturn once] counter(0/0.-1.SakashimaEffect)],newability[counter(0/0.1.SakashimaEffect)],newability[all(other creature|myBattlefield) transforms((,newability[all(creature[counter{0/0.1.SakashimaEffect}]|myBattlefield) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(myorigname) undocpy])) forever )!])) ueot])) oneshot +auto=if type(*[iscommander]|mybattlefield)~equalto~0 then choice name(All creatures becomes copy) name(All creatures becomes copy) target(creature|myBattlefield) transforms((,newability[phaseaction[end once] counter(0/0.-1.SakashimaEffect)],newability[counter(0/0.1.SakashimaEffect)],newability[all(other creature|myBattlefield) transforms((,newability[all(creature[counter{0/0.1.SakashimaEffect}]|myBattlefield) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(myorigname) undocpy])) forever )!])) ueot])) oneshot auto=if type(*[iscommander]|mybattlefield)~morethan~0 then may name(Opponent choose a creature) name(Opponent choose a creature) ability$!name(Choose creature) name(Choose creature) target(creature|mybattlefield) moveto(opponentbattlefield)!$ opponent -auto=if type(*[iscommander]|mybattlefield)~morethan~0 then may name(All creatures becomes copy) name(All creatures becomes copy) target(creature|myBattlefield) transforms((,newability[phaseaction[endofturn once] counter(0/0.-1.SakashimaEffect)],newability[counter(0/0.1.SakashimaEffect)],newability[all(other creature|myBattlefield) transforms((,newability[all(creature[counter{0/0.1.SakashimaEffect}]|myBattlefield) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(myorigname) undocpy])) forever )!])) ueot])) oneshot +auto=if type(*[iscommander]|mybattlefield)~morethan~0 then may name(All creatures becomes copy) name(All creatures becomes copy) target(creature|myBattlefield) transforms((,newability[phaseaction[end once] counter(0/0.-1.SakashimaEffect)],newability[counter(0/0.1.SakashimaEffect)],newability[all(other creature|myBattlefield) transforms((,newability[all(creature[counter{0/0.1.SakashimaEffect}]|myBattlefield) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(myorigname) undocpy])) forever )!])) ueot])) oneshot text=Choose one. If you control a commander as you cast this spell, you may choose both. -- Target opponent chooses a creature they control. You gain control of it. -- Choose a creature you control. Each other creature you control becomes a copy of that creature until end of turn. mana={3}{U} type=Sorcery @@ -89051,7 +89051,7 @@ subtype=Desert name=Sandwurm Convergence auto=lord(creature[flying]|opponentbattlefield) cantattack auto=lord(creature[flying]|opponentbattlefield) cantpwattack -auto=@each my endofturn:token(Wurm,creature Wurm,5/5,green) +auto=@each my end:token(Wurm,creature Wurm,5/5,green) text=Creatures with flying can't attack you or planeswalkers you control. -- At the beginning of your end step, create a 5/5 green Wurm creature token. mana={6}{G}{G} type=Enchantment @@ -89386,7 +89386,7 @@ toughness=2 [card] name=Sarkhan, Soul Aflame auto=lord(dragon|mycastingzone) altercost(colorless,-1) -auto=@movedTo(dragon|myBattlefield):may name(Copy dragon) all(trigger[to]) copy options(keepname) and!( all(this) transforms((Legendary,newability[phaseaction[endofturn once] flip(myorigname) undocpy])) ueot )! +auto=@movedTo(dragon|myBattlefield):may name(Copy dragon) all(trigger[to]) copy options(keepname) and!( all(this) transforms((Legendary,newability[phaseaction[end once] flip(myorigname) undocpy])) ueot )! text=Dragon spells you cast cost {1} less to cast. -- Whenever a Dragon enters under your control, you may have Sarkhan, Soul Aflame become a copy of it until end of turn, except its name is Sarkhan, Soul Aflame and it's legendary in addition to its other types. mana={1}{U}{R} type=Legendary Creature @@ -89667,7 +89667,7 @@ toughness=4 [card] name=Sauron, the Necromancer abilities=menace -auto=_ATTACKING_name(Exile creature) target(creature|mygraveyard) moveto(myexile) and!( clone with(battleready) and!( transforms((removecreaturesubtypes,removemc,setpower=3,settoughness=3,black,newability[becomes(Wraith) forever],menace,newability[@next endofturn restriction{type(Sauron^ the Necromancer[ringbearer]|mybattlefield)~equalto~0}:name(Sacrifice) sacrifice])) forever )! )! +auto=_ATTACKING_name(Exile creature) target(creature|mygraveyard) moveto(myexile) and!( clone with(battleready) and!( transforms((removecreaturesubtypes,removemc,setpower=3,settoughness=3,black,newability[becomes(Wraith) forever],menace,newability[@next end restriction{type(Sauron^ the Necromancer[ringbearer]|mybattlefield)~equalto~0}:name(Sacrifice) sacrifice])) forever )! )! text=Menace -- Whenever Sauron, the Necromancer attacks, exile target creature card from your graveyard. Create a tapped and attacking token that's a copy of that card, except it's a 3/3 black Wraith with menace. At the beginning of the next end step, exile that token unless Sauron is your Ring-bearer. mana={3}{B}{B} type=Legendary Creature @@ -89703,7 +89703,7 @@ type=Instant [card] name=Savage Gorger abilities=flying -auto=@each my endofturn restriction{compare(oplifelost)~morethan~0}:counter(1/1) +auto=@each my end restriction{compare(oplifelost)~morethan~0}:counter(1/1) text=Flying -- At the beginning of your end step, if an opponent lost life this turn, put a +1/+1 counter on Savage Gorger. (Damage causes loss of life.) mana={1}{B}{B} type=Creature @@ -90398,7 +90398,7 @@ toughness=3 [card] name=Scion of the Ur-Dragon abilities=flying -auto={2}:moveto(mygraveyard) target(*[dragon]|mylibrary) && shuffle controller && copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(Scion of the Ur-Dragon) undocpy])) forever )! +auto={2}:moveto(mygraveyard) target(*[dragon]|mylibrary) && shuffle controller && copy and!( all(this) transforms((,newability[phaseaction[end once] flip(Scion of the Ur-Dragon) undocpy])) forever )! text=Flying -- {2}: Search your library for a Dragon permanent card and put it into your graveyard. If you do, Scion of the Ur-Dragon becomes a copy of that card until end of turn. Then shuffle. mana={W}{U}{B}{R}{G} type=Legendary Creature @@ -91445,7 +91445,7 @@ name=See Red target=creature auto=2/1 auto=first strike -auto=@each my combatends restriction{type(creature[attacking]|mybattlefield)~equalto~0}:phaseaction[endofturn once] sacrifice all(this) +auto=@each my combatends restriction{type(creature[attacking]|mybattlefield)~equalto~0}:phaseaction[end once] sacrifice all(this) text=Enchant creature -- Enchanted creature gets +2/+1 and has first strike. -- At the beginning of your end step, if you didn't attack with a creature this turn, sacrifice See Red. mana={1}{R} type=Enchantment @@ -91856,7 +91856,7 @@ toughness=3 [card] name=Semester's End target=*[creature;planeswalker]|mybattlefield -auto=moveto(exile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveTo(ownerbattlefield)],newability[@movedto(this|battlefield) from(exile):if cantargetcard(creature|*) then counter(1/1) else counter(0/0.1.Loyalty)])) ueot )! +auto=moveto(exile) and!( transforms((,newability[phaseaction[end once checkex] moveTo(ownerbattlefield)],newability[@movedto(this|battlefield) from(exile):if cantargetcard(creature|*) then counter(1/1) else counter(0/0.1.Loyalty)])) ueot )! text=Exile any number of target creatures and/or planeswalkers you control. At the beginning of the next end step, return each of them to the battlefield under its owner's control. Each of them enters with an additional +1/+1 counter on it if it's a creature and an additional loyalty counter on it if it's a planeswalker. mana={3}{W} type=Instant @@ -92558,7 +92558,7 @@ type=Sorcery [/card] [card] name=Shadow of the Enemy -auto=choice name(Exile opponent graveyard) token(ShadowEmblem,Emblem,0/0,shroud,indestructible,notrigger) and!( transforms((,newability[all(*|opponentgraveyard) moveto(opponentexile) and!( if cantargetcard(*[-land]|*) then counter(0/0.1.ShadowExiled) notrg )!],newability[{0}:name(Cast from opponent exile) target(*[counter{0/0.1.ShadowExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.ShadowExiled) notrg],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.ShadowExiled) notrg])) ueot )!])) forever )! +auto=choice name(Exile opponent graveyard) token(ShadowEmblem,Emblem,0/0,shroud,indestructible,notrigger) and!( transforms((,newability[all(*|opponentgraveyard) moveto(opponentexile) and!( if cantargetcard(*[-land]|*) then counter(0/0.1.ShadowExiled) notrg )!],newability[{0}:name(Cast from opponent exile) target(*[counter{0/0.1.ShadowExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.ShadowExiled) notrg],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.ShadowExiled) notrg])) ueot )!])) forever )! auto=choice name(Exile your graveyard) all(*|mygraveyard) moveto(myexile) and!( if cantargetcard(*[-land]|*) then transforms((,newability[canplayfromexile forever],newability[anytypeofmana forever])) forever )! text=Exile all creature cards from target player's graveyard. You may cast spells from among those cards for as long as they remain exiled, and mana of any type can be spent to cast them. mana={3}{B}{B}{B} @@ -92848,9 +92848,9 @@ toughness=3 [/card] [card] name=Shambling Swarm -auto=_DIES_choice name(Assign -1/-1 counter) name(Assign -1/-1 counter) target(creature) transforms((,newability[counter(-1/-1) all(this)],newability[phaseaction[endofturn once] counter(-1/-1.-1) all(this)])) oneshot -auto=_DIES_choice name(Assign -1/-1 counter) name(Assign -1/-1 counter) target(creature) transforms((,newability[counter(-1/-1) all(this)],newability[phaseaction[endofturn once] counter(-1/-1.-1) all(this)])) oneshot -auto=_DIES_choice name(Assign -1/-1 counter) name(Assign -1/-1 counter) target(creature) transforms((,newability[counter(-1/-1) all(this)],newability[phaseaction[endofturn once] counter(-1/-1.-1) all(this)])) oneshot +auto=_DIES_choice name(Assign -1/-1 counter) name(Assign -1/-1 counter) target(creature) transforms((,newability[counter(-1/-1) all(this)],newability[phaseaction[end once] counter(-1/-1.-1) all(this)])) oneshot +auto=_DIES_choice name(Assign -1/-1 counter) name(Assign -1/-1 counter) target(creature) transforms((,newability[counter(-1/-1) all(this)],newability[phaseaction[end once] counter(-1/-1.-1) all(this)])) oneshot +auto=_DIES_choice name(Assign -1/-1 counter) name(Assign -1/-1 counter) target(creature) transforms((,newability[counter(-1/-1) all(this)],newability[phaseaction[end once] counter(-1/-1.-1) all(this)])) oneshot text=When Shambling Swarm dies, distribute three -1/-1 counters among one, two, or three target creatures. For each -1/-1 counter you put on a creature this way, remove a -1/-1 counter from that creature at the beginning of the next end step. mana={1}{B}{B}{B} type=Creature @@ -92940,10 +92940,10 @@ name=Share the Spoils auto=all(*[zpos=1]|library) moveto(ownerexile) and!( counter(0/0.1.SpoilsExiled) )! auto=this(variable{controllerturn}>0) lord(*[-land;counter{0/0.1.SpoilsExiled}]|myexile) transforms((,newability[anytypeofmana],newability[canplayfromexile],newability[@movedTo(this|mystack) from(myexile):all(*[zpos=1]|mylibrary) moveto(exile) and!( counter(0/0.1.SpoilsExiled) )!])) auto=this(variable{controllerturn}>0) lord(land[counter{0/0.1.SpoilsExiled}]|myexile) transforms((,newability[anytypeofmana],newability[canplayfromexile],newability[@movedTo(this|mybattlefield) from(myexile):all(*[zpos=1]|mylibrary) moveto(exile) and!( counter(0/0.1.SpoilsExiled) )!])) -auto=this(variable{controllerturn}>0) {0}:name(Play card from opponent exile) target(*[counter{0/0.1.SpoilsExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.SpoilsExiled)],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.SpoilsExiled)])) ueot )! myTurnOnly +auto=this(variable{controllerturn}>0) {0}:name(Play card from opponent exile) target(*[counter{0/0.1.SpoilsExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.SpoilsExiled)],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.SpoilsExiled)])) ueot )! myTurnOnly auto=this(variable{opponentturn}>0) lord(*[-land;counter{0/0.1.SpoilsExiled}]|opponentexile) transforms((,newability[anytypeofmana],newability[canplayfromexile],newability[@movedTo(this|mystack) from(myexile):all(*[zpos=1]|mylibrary) moveto(exile) and!( counter(0/0.1.SpoilsExiled) )!])) auto=this(variable{opponentturn}>0) lord(land[counter{0/0.1.SpoilsExiled}]|opponentexile) transforms((,newability[anytypeofmana],newability[canplayfromexile],newability[@movedTo(this|mybattlefield) from(myexile):all(*[zpos=1]|mylibrary) moveto(exile) and!( counter(0/0.1.SpoilsExiled) )!])) -auto=this(variable{opponentturn}>0) lord(*|opponentbattlefield) transforms((,newability[{0}:name(Play card from opponent exile) target(*[counter{0/0.1.SpoilsExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.SpoilsExiled)],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.SpoilsExiled)])) ueot )!])) +auto=this(variable{opponentturn}>0) lord(*|opponentbattlefield) transforms((,newability[{0}:name(Play card from opponent exile) target(*[counter{0/0.1.SpoilsExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.SpoilsExiled)],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.SpoilsExiled)])) ueot )!])) text=When Share the Spoils enters or an opponent loses the game, exile the top card of each player's library. -- During each player's turn, that player may play a land or cast a spell from among cards exiled with Share the Spoils, and they may spend mana as though it were mana of any color to cast that spell. When they do, exile the top card of their library. mana={1}{R} type=Enchantment @@ -93069,7 +93069,7 @@ name=Shatterskull Charger abilities=trample,haste kicker={2} auto=if paid(kicker) then counter(1/1) -auto=@each endofturn:this(counter{1/1}<1) moveTo(ownerHand) all(this) +auto=@each end:this(counter{1/1}<1) moveTo(ownerHand) all(this) text=Kicker {2} -- Trample, haste -- If kicked, Shatterskull Charger enters with a +1/+1 counter. -- At the beginning of the end phase, if it has no +1/+1 counter on it, return to hand. mana={1}{R}{R} type=Creature @@ -93359,7 +93359,7 @@ toughness=0 [card] name=Shessra, Death's Whisper auto=name(Creature must block) target(creature) transforms((,newability[mustblock])) ueot -auto=@each my endofturn restriction{morbid}:may name(Pay 2 and draw) life:-2 && draw:1 controller +auto=@each my end restriction{morbid}:may name(Pay 2 and draw) life:-2 && draw:1 controller text=Bewitching Whispers - When Shessra, Death's Whisper enters, target creature blocks this turn if able. -- Whispers of the Grave - At the beginning of your end step, if a creature died this turn, you may pay 2 life. If you do, draw a card. mana={2}{B}{G} type=Legendary Creature @@ -93436,7 +93436,7 @@ subtype=Aura name=Shifting Woodland auto=aslongas(forest|myBattlefield) tap(noevent) <1 oneshot auto={T}:Add{G} -auto=while(restriction{delirium}) {2}{G}{G}:target(other *[-instant;-sorcery]|myGraveyard) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(Shifting Woodland) undocpy])) forever )! +auto=while(restriction{delirium}) {2}{G}{G}:target(other *[-instant;-sorcery]|myGraveyard) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(Shifting Woodland) undocpy])) forever )! text=Shifting Woodland enters tapped unless you control a Forest. -- {T}: Add {G}. -- Delirium - {2}{G}{G}: Shifting Woodland becomes a copy of target permanent card in your graveyard until end of turn. Activate only if there are four or more card types among cards in your graveyard. type=Land [/card] @@ -93708,7 +93708,7 @@ type=Land [/card] [card] name=Shirei, Shizo's Caretaker -auto=@movedTo(mygraveyard) from(creature[power<=1]|battlefield):all(trigger[to]) transforms((,newability[@my next endofturn:may moveTo(mybattlefield)])) forever +auto=@movedTo(mygraveyard) from(creature[power<=1]|battlefield):all(trigger[to]) transforms((,newability[@my next end:may moveTo(mybattlefield)])) forever text=Whenever a creature with power 1 or less is put into your graveyard from the battlefield, you may return that card to the battlefield under your control at the beginning of the next end step if Shirei, Shizo's Caretaker is still on the battlefield. mana={4}{B} type=Legendary Creature @@ -94393,7 +94393,7 @@ toughness=4 [/card] [card] name=Sigardian Evangel -auto=name(Conjure a card) conjure cards(Sigardian Evangel) zone(myhand) and!( transforms((,newability[@each endofturn:name(Discard) reject])) ueot )! +auto=name(Conjure a card) conjure cards(Sigardian Evangel) zone(myhand) and!( transforms((,newability[@each end:name(Discard) reject])) ueot )! auto=name(Tap a permanent) tap target(*|opponentBattlefield) text=When Sigardian Evangel enters, conjure a card named Sigardian Evangel into your hand. Discard that card at the beginning of the next end step. -- When Sigardian Evangel enters, tap target permanent you don't control. mana={1}{W} @@ -94875,7 +94875,7 @@ toughness=2 [/card] [card] name=Silversmote Ghoul -autograveyard=@each my endofturn restriction{compare(lifegain)~morethan~2}:moveTo(myBattlefield) and!(transforms((,newability[tap(noevent)]))) oneshot +autograveyard=@each my end restriction{compare(lifegain)~morethan~2}:moveTo(myBattlefield) and!(transforms((,newability[tap(noevent)]))) oneshot auto={1}{B}{S}:draw:1 controller text=At the beginning of your end step, if you gained 3 or more life this turn, return Silversmote Ghoul from your graveyard to the battlefield tapped. -- {1}{B}, Sacrifice Silversmote Ghoul: Draw a card. mana={2}{B} @@ -95347,8 +95347,8 @@ name=Skeletal Swarming auto=lord(skeleton|myBattlefield) trample auto=lord(skeleton|myBattlefield) mustattack auto=lord(skeleton|myBattlefield) transforms((,newability[foreach(other skeleton|myBattlefield) 1/0])) -auto=@each my endofturn restriction{morbid}:name(Create skeleton) token(Skeleton,Creature Skeleton,1/1,black) and!( tap(noevent) )! -auto=@each my endofturn:name(Create skeleton) token(Skeleton,Creature Skeleton,1/1,black) and!( tap(noevent) )! +auto=@each my end restriction{morbid}:name(Create skeleton) token(Skeleton,Creature Skeleton,1/1,black) and!( tap(noevent) )! +auto=@each my end:name(Create skeleton) token(Skeleton,Creature Skeleton,1/1,black) and!( tap(noevent) )! text=Each Skeleton you control has trample, attacks each combat if able, and gets +X/+0, where X is the number of other Skeletons you control. -- At the beginning of your end step, create a tapped 1/1 black Skeleton creature token. If a creature died this turn, create two of those tokens instead. mana={3}{B}{G} type=Enchantment @@ -96771,7 +96771,7 @@ toughness=0 [/card] [card] name=Sly Instigator -auto={U}{T}:target(creature|opponentbattlefield) transforms((,newability[this(counter{0/0.1.Goaded}>0) unblockable],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto={U}{T}:target(creature|opponentbattlefield) transforms((,newability[this(counter{0/0.1.Goaded}>0) unblockable],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever text={U}, {T}: Until your next turn, target creature an opponent controls can't be blocked. Goad that creature. (Until your next turn, that creature attacks each combat if able and attacks a player other than you if able.) mana={3}{U} type=Creature @@ -96820,7 +96820,7 @@ toughness=6 [/card] [card] name=Smeagol, Helpful Guide -auto=@each my endofturn restriction{myhasdeadcreature}:name(The ring tempts you) ability$!name(The ring tempts you) _RINGTEMPTS_!$ controller +auto=@each my end restriction{myhasdeadcreature}:name(The ring tempts you) ability$!name(The ring tempts you) _RINGTEMPTS_!$ controller auto=@ringtemptedof(player):name(Reveal opponent cards) transforms((,newability[name(Choose land card) target(land[zpos=oppofindfirsttypeland]|opponentlibrary) moveto(mybattlefield) and!( transforms((,newability[tap(noevent)],newability[all(*[-land&zpos<=oppofindfirsttypeland]|opponentlibrary) moveto(opponentgraveyard)])) oneshot )!])) oneshot text=At the beginning of your end step, if a creature died under your control this turn, the Ring tempts you. -- Whenever the Ring tempts you, target opponent reveals cards from the top of their library until they reveal a land card. Put that card onto the battlefield tapped under your control and the rest into their graveyard. mana={1}{B}{G} @@ -98348,7 +98348,7 @@ abilities=isconspiracy restriction=never autocommandzone=all(land[basic]|myhand,mylibrary,mycommandzone,myexile,mygraveyard,myBattlefield) moveto(mysideboard) #autocommandzone=discard:phandcount && transforms((,newability[draw:5 controller])) oneshot -autocommandzone={E(*|myhand)} restriction{can play land}:name(Choose basic land in sideboard) name(Choose basic land in sideboard) target(land[basic]|mysideboard) moveto(ownerHand) and!( transforms((,newability[@each endofturn:moveto(mysideboard)])) ueot )! limit:1 +autocommandzone={E(*|myhand)} restriction{can play land}:name(Choose basic land in sideboard) name(Choose basic land in sideboard) target(land[basic]|mysideboard) moveto(ownerHand) and!( transforms((,newability[@each end:moveto(mysideboard)])) ueot )! limit:1 autocommandzone=lord(land[basic]|myBattlefield) transforms((,newability[{T}:add{B}],newability[{T}:add{U}],newability[{T}:add{G}],newability[{T}:add{R}],newability[{T}:add{W}])) text=(Start the game with this conspiracy face up in the command zone.) -- Your deck can't have basic land cards and your starting hand size is five. -- Exile a card from your hand: This turn, you may play basic land cards from outside the game. -- Basic lands you control have "{T}: Add one mana of any color." type=Conspiracy @@ -98545,8 +98545,8 @@ toughness=2 [/card] [card] name=Spawnbed Protector -auto=@each my endofturn:may moveto(ownerHand) target(creature[Eldrazi]|myGraveyard) -auto=@each my endofturn:_ELDRAZISCION_*2 +auto=@each my end:may moveto(ownerHand) target(creature[Eldrazi]|myGraveyard) +auto=@each my end:_ELDRAZISCION_*2 text=At the beginning of your end step, return up to one target Eldrazi creature card from your graveyard to your hand. Create two 1/1 colorless Eldrazi Scion creature tokens with "Sacrifice this creature: Add {C}." mana={7} type=Creature @@ -98636,8 +98636,8 @@ name=Spectacular Showdown abilities=overload target=creature other={4}{R}{R}{R} name(Overload) -auto=transforms((,newability[counter(0/0.1.DoubleStrike)],newability[this(counter{0/0.1.DoubleStrike}>=1) double strike],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever -auto=overload all(creature|battlefield) transforms((,newability[counter(0/0.1.DoubleStrike)],newability[this(counter{0/0.1.DoubleStrike}>=1) double strike],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[endofturn next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto=transforms((,newability[counter(0/0.1.DoubleStrike)],newability[this(counter{0/0.1.DoubleStrike}>=1) double strike],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever +auto=overload all(creature|battlefield) transforms((,newability[counter(0/0.1.DoubleStrike)],newability[this(counter{0/0.1.DoubleStrike}>=1) double strike],newability[counter(0/0.1.Goaded)],newability[this(counter{0/0.1.Goaded}>0) mustattack],newability[phaseaction[end next once sourceinplay] removeallcounters(0/0.-1.Goaded)])) forever text=Put a double strike counter on target creature, then goad each creature that had a double strike counter put on it this way. (Until your next turn, those creatures attack each combat if able and attack a player other than you if able.) -- Overload {4}{R}{R}{R} (You may cast this spell for its overload cost. If you do, change "target" in its text to "each.") mana={1}{R} type=Sorcery @@ -99455,7 +99455,7 @@ toughness=4 [/card] [card] name=Spirit-Sister's Call -auto=@each my endofturn:name(Choose permanent to sacrifice) transforms((,newability[if type(artifact|mybattlefield)~morethan~0 then if type(artifact|mygraveyard)~morethan~0 then choice name(Sacrifice an artifact) name(Sacrifice an artifact) name(Sacrifice an artifact) target(artifact|mybattlefield) sacrifice and!( target(other artifact|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(creature|mybattlefield)~morethan~0 then if type(creature|mygraveyard)~morethan~0 then choice name(Sacrifice a creature) name(Sacrifice a creature) name(Sacrifice a creature) target(creature|mybattlefield) sacrifice and!( target(other creature|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(enchantment|mybattlefield)~morethan~0 then if type(enchantment|mygraveyard)~morethan~0 then choice name(Sacrifice an enchantment) name(Sacrifice an enchantment) name(Sacrifice an enchantment) target(enchantment|mybattlefield) sacrifice and!( target(other enchantment|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(land|mybattlefield)~morethan~0 then if type(land|mygraveyard)~morethan~0 then choice name(Sacrifice a land) name(Sacrifice a land) name(Sacrifice a land) target(land|mybattlefield) sacrifice and!( target(other land|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(planeswalker|mybattlefield)~morethan~0 then if type(planeswalker|mygraveyard)~morethan~0 then choice name(Sacrifice a planeswalker) name(Sacrifice a planeswalker) name(Sacrifice a planeswalker) target(planeswalker|mybattlefield) sacrifice and!( target(other planeswalker|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(battle|mybattlefield)~morethan~0 then if type(battle|mygraveyard)~morethan~0 then choice name(Sacrifice a battle) name(Sacrifice a battle) name(Sacrifice a battle) target(battle|mybattlefield) sacrifice and!( target(other battle|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[choice name(Don't sacrifice a permanent) donothing])) forever +auto=@each my end:name(Choose permanent to sacrifice) transforms((,newability[if type(artifact|mybattlefield)~morethan~0 then if type(artifact|mygraveyard)~morethan~0 then choice name(Sacrifice an artifact) name(Sacrifice an artifact) name(Sacrifice an artifact) target(artifact|mybattlefield) sacrifice and!( target(other artifact|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(creature|mybattlefield)~morethan~0 then if type(creature|mygraveyard)~morethan~0 then choice name(Sacrifice a creature) name(Sacrifice a creature) name(Sacrifice a creature) target(creature|mybattlefield) sacrifice and!( target(other creature|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(enchantment|mybattlefield)~morethan~0 then if type(enchantment|mygraveyard)~morethan~0 then choice name(Sacrifice an enchantment) name(Sacrifice an enchantment) name(Sacrifice an enchantment) target(enchantment|mybattlefield) sacrifice and!( target(other enchantment|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(land|mybattlefield)~morethan~0 then if type(land|mygraveyard)~morethan~0 then choice name(Sacrifice a land) name(Sacrifice a land) name(Sacrifice a land) target(land|mybattlefield) sacrifice and!( target(other land|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(planeswalker|mybattlefield)~morethan~0 then if type(planeswalker|mygraveyard)~morethan~0 then choice name(Sacrifice a planeswalker) name(Sacrifice a planeswalker) name(Sacrifice a planeswalker) target(planeswalker|mybattlefield) sacrifice and!( target(other planeswalker|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[if type(battle|mybattlefield)~morethan~0 then if type(battle|mygraveyard)~morethan~0 then choice name(Sacrifice a battle) name(Sacrifice a battle) name(Sacrifice a battle) target(battle|mybattlefield) sacrifice and!( target(other battle|mygraveyard) moveto(mybattlefield) and!( becomes(^^exiledeath) forever )! )!],newability[choice name(Don't sacrifice a permanent) donothing])) forever text=At the beginning of your end step, choose target permanent card in your graveyard. You may sacrifice a permanent that shares a card type with the chosen card. If you do, return the chosen card from your graveyard to the battlefield and it gains "If this permanent would leave the battlefield, exile it instead of putting it anywhere else." mana={3}{W}{B} type=Enchantment @@ -100219,7 +100219,7 @@ type=Sorcery [card] name=Stalactite Stalker abilities=menace -auto=@each my endofturn:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then counter(1/1) +auto=@each my end:if type(*[-instant;-sorcery;fresh]|mygraveyard)~morethan~0 then counter(1/1) auto={2}{B}{S}:target(creature) -power/-power ueot text=Menace -- At the beginning of your end step, if you descended this turn, put a +1/+1 counter on Stalactite Stalker. -- {2}{B}, Sacrifice Stalactite Stalker: Target creature gets -X/-X until end of turn, where X is Stalactite Stalker's power. mana={B} @@ -100615,8 +100615,8 @@ abilities=flying auto={2}:name(Gains 1/0) 1/0 ueot auto=@combatdamageof(player) from(this):name(Hellkite Effect) counter(0/0.1.HellkiteEffect) auto=@combatdamagefoeof(player) from(this):name(Hellkite Effect) counter(0/0.1.HellkiteOppoEffect) -auto=@each endofturn restriction{compare(hascnthellkiteeffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.HellkiteEffect) -auto=@each endofturn restriction{compare(hascnthellkiteoppoeffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.HellkiteOppoEffect) +auto=@each end restriction{compare(hascnthellkiteeffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.HellkiteEffect) +auto=@each end restriction{compare(hascnthellkiteoppoeffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.HellkiteOppoEffect) auto={C(0/0.-1.HellkiteOppoEffect)}{0}:name(X=0) all(*[-land;manacost=0]|opponentBattlefield) destroy auto={C(0/0.-1.HellkiteEffect)}{0}:name(X=0) all(*[-land;manacost=0]|myBattlefield) destroy auto={C(0/0.-1.HellkiteOppoEffect)}{1}:name(X=1) all(*[-land;manacost=1]|opponentBattlefield) destroy @@ -100803,7 +100803,7 @@ toughness=2 [/card] [card] name=Stensia Uprising -auto=@each my endofturn:name(Create Human) token(Human,Creature Human,1/1,red) and!( if type(*|mybattlefield)~equalto~13 then may name(Sacrifice and damage) all(this) sacrifice and!( transforms((,newability[damage:7 target(anytarget)])) oneshot )! )! +auto=@each my end:name(Create Human) token(Human,Creature Human,1/1,red) and!( if type(*|mybattlefield)~equalto~13 then may name(Sacrifice and damage) all(this) sacrifice and!( transforms((,newability[damage:7 target(anytarget)])) oneshot )! )! text=At the beginning of your end step, create a 1/1 red Human creature token. Then if you control exactly thirteen permanents, you may sacrifice Stensia Uprising. When you do, it deals 7 damage to any target. mana={2}{R}{R} type=Enchantment @@ -101825,8 +101825,8 @@ toughness=2 [card] name=Strefan, Maurer Progenitor abilities=flying -auto=@each my endofturn restriction{compare(oplifelost)~morethan~0}:name(Create Blood) token(Blood) -auto=@each my endofturn restriction{compare(plifelost)~morethan~0}:name(Create Blood) token(Blood) +auto=@each my end restriction{compare(oplifelost)~morethan~0}:name(Create Blood) token(Blood) +auto=@each my end restriction{compare(plifelost)~morethan~0}:name(Create Blood) token(Blood) auto=@combat(attacking) source(this) restriction{type(blood|mybattlefield)~morethan~1}:may name(Sacrifice 2 blood) target(<2>blood|myBattlefield) sacrifice && all(this) transforms((,newability[name(Put vampire in play) target(vampire|myhand) moveto(myBattlefield) and!( transforms((,newability[readytofight],indestructible)) ueot )!])) oneshot text=Flying -- We the beginning of your end step, create a Blood token for each player who lost life this turn. -- Whenever Strefan, Maurer Progenitor attacks, you may sacrifice two Blood tokens. If you do, you may put a Vampire card from your hand onto the battlefield tapped and attacking. It gains indestructible until end of turn. mana={2}{B}{R} @@ -101956,7 +101956,7 @@ type=Instant [/card] [card] name=Stromkirk Bloodthief -auto=@each my endofturn restriction{compare(oplifelost)~morethan~0}:target(vampire|myBattlefield) counter(1/1) +auto=@each my end restriction{compare(oplifelost)~morethan~0}:target(vampire|myBattlefield) counter(1/1) text=At the beginning of your end step, if an opponent lost life this turn, put a +1/+1 counter on target Vampire you control. mana={2}{B} type=Creature @@ -103784,7 +103784,7 @@ toughness=2 [card] name=Syndicate Heavy auto=_EXTORT_ -auto=@each endofturn restriction{compare(lifegain)~morethan~3}:_CLUE_ +auto=@each end restriction{compare(lifegain)~morethan~3}:_CLUE_ text=Extort (Whenever you cast a spell, you may pay {W/B}. If you do, each opponent loses 1 life and you gain that much life.) -- At the beginning of each end step, if you gained 4 or more life this turn, investigate. (Create a Clue token. It's an artifact with "{2}, Sacrifice this artifact: Draw a card.") mana={2}{WB}{WB} type=Creature @@ -103886,27 +103886,27 @@ type=Artifact name=Synthetic Destiny auto=count(type:creature:mybattlefield) auto=all(creature|myBattlefield) moveto(exile) -auto=if compare(ishuman)~morethan~0 then thisforeach(variable{countedamount}) ability$!name(Reveal from top) name(Reveal from top) reveal:1 revealuntil(creature|mylibrary) optionone name(Choose creature to play end of turn) target(creature|myreveal) bottomoflibrary and!( transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot )! optiononeend optiontwo name(Put back) all(*|myreveal) moveto(mylibrary) optiontwoend revealend!$ controller -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~1 then target(creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~2 then target(<2>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~3 then target(<3>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~4 then target(<4>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~5 then target(<5>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~6 then target(<6>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~7 then target(<7>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~8 then target(<8>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~9 then target(<9>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~10 then target(<10>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~11 then target(<11>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~12 then target(<12>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~13 then target(<13>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~14 then target(<14>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~15 then target(<15>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~16 then target(<16>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~17 then target(<17>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~18 then target(<18>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~19 then target(<19>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot -auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~morethan~19 then target(<20>creature|mylibrary) transforms((,newability[phaseaction[endofturn once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~morethan~0 then thisforeach(variable{countedamount}) ability$!name(Reveal from top) name(Reveal from top) reveal:1 revealuntil(creature|mylibrary) optionone name(Choose creature to play end of turn) target(creature|myreveal) bottomoflibrary and!( transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot )! optiononeend optiontwo name(Put back) all(*|myreveal) moveto(mylibrary) optiontwoend revealend!$ controller +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~1 then target(creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~2 then target(<2>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~3 then target(<3>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~4 then target(<4>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~5 then target(<5>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~6 then target(<6>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~7 then target(<7>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~8 then target(<8>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~9 then target(<9>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~10 then target(<10>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~11 then target(<11>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~12 then target(<12>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~13 then target(<13>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~14 then target(<14>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~15 then target(<15>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~16 then target(<16>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~17 then target(<17>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~18 then target(<18>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~equalto~19 then target(<19>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot +auto=if compare(ishuman)~equalto~0 then if compare(countedamount)~morethan~19 then target(<20>creature|mylibrary) transforms((,newability[phaseaction[end once] moveTo(myBattlefield)])) ueot text=Exile all creatures you control. At the beginning of the next end step, reveal cards from the top of your library until you reveal that many creature cards, put all creature cards revealed this way onto the battlefield, then shuffle the rest of the revealed cards into your library. mana={4}{U}{U} type=Instant @@ -104965,7 +104965,7 @@ type=Sorcery [card] name=Taunt from the Rampart auto=all(creature|opponentBattlefield) _GOAD_ -auto=all(creature|opponentBattlefield) transforms((,newability[counter(0/0.1.Cantblock) notrg],newability[this(counter{0/0.1.Cantblock}>0) cantblock],newability[phaseaction[endofturn next once sourceinplay] counter(0/0.-hascntcantblock.Cantblock) notrg])) forever +auto=all(creature|opponentBattlefield) transforms((,newability[counter(0/0.1.Cantblock) notrg],newability[this(counter{0/0.1.Cantblock}>0) cantblock],newability[phaseaction[end next once sourceinplay] counter(0/0.-hascntcantblock.Cantblock) notrg])) forever text=Goad all creatures your opponents control. Until your next turn, those creatures can't block. (Until your next turn, those creatures attack each combat if able and attack a player other than you if able.) mana={3}{R}{W} type=Sorcery @@ -105945,7 +105945,7 @@ toughness=2 [card] name=Test of Faith target=creature -auto=transforms((,newability[@counteradded(1/1) from(this) restriction{compare(hascnt11)~morethan~2}:name(Effect ends) removeallcounters(0/0.1.FaithEffect)],newability[counter(0/0.1.FaithEffect)],newability[this(counter{0/0.1.FaithEffect}>0) vigor],newability[@each endofturn restriction{compare(hascntfaitheffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.FaithEffect)])) ueot +auto=transforms((,newability[@counteradded(1/1) from(this) restriction{compare(hascnt11)~morethan~2}:name(Effect ends) removeallcounters(0/0.1.FaithEffect)],newability[counter(0/0.1.FaithEffect)],newability[this(counter{0/0.1.FaithEffect}>0) vigor],newability[@each end restriction{compare(hascntfaitheffect)~morethan~0}:name(Effect ends) removeallcounters(0/0.1.FaithEffect)])) ueot text=Prevent the next 3 damage that would be dealt to target creature this turn, and put a +1/+1 counter on that creature for each 1 damage prevented this way. mana={1}{W} type=Instant @@ -106015,7 +106015,7 @@ toughness=4 [card] name=Teysa, Opulent Oligarch abilities=deathtouch -auto=@each my endofturn:if compare(oplifelost)~morethan~0 then _CLUE_ +auto=@each my end:if compare(oplifelost)~morethan~0 then _CLUE_ auto=@movedTo(graveyard) from(Clue|myBattlefield) turnlimited:create(spirit:creature spirit:1/1:white:black:flying) text=Deathtouch -- At the beginning of your end step, investigate for each opponent who lost life this turn. -- Whenever a Clue you control is put into a graveyard from the battlefield, create a 1/1 white and black Spirit creature token with flying. This ability triggers only once each turn. mana={1}{W}{B} @@ -106081,7 +106081,7 @@ toughness=1 [/card] [card] name=Thalisse, Reverent Medium -auto=@each endofturn:token(Spirit,Creature Spirit,1/1,flying)*type:*[token;fresh]:mybattlefield +auto=@each end:token(Spirit,Creature Spirit,1/1,flying)*type:*[token;fresh]:mybattlefield text=At the beginning of each end step, create X 1/1 white Spirit creature tokens with flying, where X is the number of tokens you created this turn. mana={3}{W}{B} type=Legendary Creature @@ -106160,7 +106160,7 @@ toughness=5 [card] name=Thaumatic Compass auto={3}{T}:moveto(ownerHand) target(basic|mylibrary) -auto=@each my endofturn:if type(land|mybattlefield)~morethan~6 then flip(Spires of Orazca) +auto=@each my end:if type(land|mybattlefield)~morethan~6 then flip(Spires of Orazca) text={3}, {T}: Search your library for a basic land card, reveal it, put it into your hand, then shuffle. -- At the beginning of your end step, if you control seven or more lands, transform Thaumatic Compass. mana={2} type=Artifact @@ -106332,7 +106332,7 @@ auto=counter(0/0,1,Lore) auto=@each my firstmain:counter(0/0,1,Lore) auto=token(Shapeshifter,Creature Shapeshifter,2/2,blue,changeling) auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.2.Lore}=) may name(Transform shapeshifters) target(shapeshifter|mybattlefield) transforms((,setpower=4,settoughness=4)) forever -auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) may name(Choose a creature or planeswalker) target(*[creature;planeswalker]|battlefield) transforms((,newability[counter(0/0.1.BearsEffect)],newability[all(creature[power>=4]|mybattlefield) name(Deals damage) transforms((,newability[damage:power all(*[counter{0/0.1.BearsEffect}]|battlefield)])) oneshot],newability[phaseaction[endofturn once] counter(0/0.-1.BearsEffect)])) ueot +auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) may name(Choose a creature or planeswalker) target(*[creature;planeswalker]|battlefield) transforms((,newability[counter(0/0.1.BearsEffect)],newability[all(creature[power>=4]|mybattlefield) name(Deals damage) transforms((,newability[damage:power all(*[counter{0/0.1.BearsEffect}]|battlefield)])) oneshot],newability[phaseaction[end once] counter(0/0.-1.BearsEffect)])) ueot auto=@counteradded(0/0,1,Lore) from(this):this(counter{0/0.3.Lore}) sacrifice(this) text=(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.) -- I - Create a 2/2 blue Shapeshifter creature token with changeling. -- II - Any number of target Shapeshifter creatures you control have base power and toughness 4/4. -- III - Choose up to one target creature or planeswalker. Each creature with power 4 or greater you control deals damage equal to its power to that permanent. mana={1}{G}{U} @@ -106429,7 +106429,7 @@ subtype=Saga [/card] [card] name=The Book of Exalted Deeds -auto=@each my endofturn restriction{compare(lifegain)~morethan~2}:name(Create Angel) token(Angel,Creature Angel,3/3,flying,white) +auto=@each my end restriction{compare(lifegain)~morethan~2}:name(Create Angel) token(Angel,Creature Angel,3/3,flying,white) auto={W}{W}{W}{T}{E}:name(Put enlightened counter) target(angel|battlefield) transforms((,newability[counter(0/0.1.Enlightened)],newability[this(counter{0/0.1.Enlightened}>=1) cantlose])) forever asSorcery text=At the beginning of your end step, if you gained 3 or more life this turn, create a 3/3 white Angel creature token with flying. -- {W}{W}{W}, {T}, Exile The Book of Exalted Deeds: Put an enlightened counter on target Angel. It gains "You can't lose the game and your opponents can't win the game." Activate only as a sorcery. mana={W}{W}{W} @@ -106446,7 +106446,7 @@ type=Legendary Artifact [card] name=The Broken Sky auto=lord(creature[token]|myBattlefield) transforms((,newability[1/0],lifelink)) -auto=@each my endofturn:name(Create spirit) token(Spirit,Creature Spirit,1/1,white,black,flying) +auto=@each my end:name(Create spirit) token(Spirit,Creature Spirit,1/1,white,black,flying) text=Creature tokens you control get +1/+0 and have lifelink. -- At the beginning of your end step, create a 1/1 white and black Spirit creature token with flying. color=white,black type=Enchantment @@ -106505,7 +106505,7 @@ auto=@each combatbegins restriction{type(*|myBattlefield)~equalto~1,type(*|myhan auto=@each blockers restriction{type(*|myBattlefield)~equalto~1,type(*|myhand)~equalto~0}:winGame controller auto=@each combatends restriction{type(*|myBattlefield)~equalto~1,type(*|myhand)~equalto~0}:winGame controller auto=@each secondmain restriction{type(*|myBattlefield)~equalto~1,type(*|myhand)~equalto~0}:winGame controller -auto=@each endofturn restriction{type(*|myBattlefield)~equalto~1,type(*|myhand)~equalto~0}:winGame controller +auto=@each end restriction{type(*|myBattlefield)~equalto~1,type(*|myhand)~equalto~0}:winGame controller auto=@each end restriction{type(*|myBattlefield)~equalto~1,type(*|myhand)~equalto~0}:winGame controller text=If you control no cards in play other than The Cheese Stands Alone and have no cards in your hand, you win the game. mana={4}{W}{W} @@ -106760,7 +106760,7 @@ subtype=Saga [/card] [card] name=The Gaffer -auto=@each endofturn restriction{compare(lifegain)~morethan~2}:name(Draw a card) name(Draw a card) draw:1 controller +auto=@each end restriction{compare(lifegain)~morethan~2}:name(Draw a card) name(Draw a card) draw:1 controller text=At the beginning of each end step, if you gained 3 or more life this turn, draw a card. mana={2}{W} type=Legendary Creature @@ -106933,7 +106933,7 @@ name=The Locust God abilities=flying auto=@drawn(controller):token(Insect,creature Insect,1/1,red,blue,flying,haste) auto={2}{U}{R}:_LOOT_ -auto=_DIES_phaseaction[endofturn once] moveTo(ownerhand) ueot +auto=_DIES_phaseaction[end once] moveTo(ownerhand) ueot text=Flying -- Whenever you draw a card, create a 1/1 blue and red Insect creature token with flying and haste. -- {2}{U}{R}: Draw a card, then discard a card. -- When The Locust God dies, return it to its owner's hand at the beginning of the next end step. mana={4}{U}{R} type=Legendary Creature @@ -107040,7 +107040,7 @@ subtype=Saga name=The Monarch abilities=shroud,indestructible,doublefacedeath,nofizzle auto=becomesmonarch controller -auto=@each my endofturn restriction{compare(pmonarch)~morethan~0}:name(Monarch draw a card) draw:1 controller +auto=@each my end restriction{compare(pmonarch)~morethan~0}:name(Monarch draw a card) draw:1 controller auto=@combatdamageof(player) restriction{compare(pmonarch)~morethan~0} turnlimited:name(Opponent becomes monarch) moveto(opponentBattlefield) and!( transforms((,newability[becomesmonarch controller])) forever )! text=At the beginning of your end step, draw a card. -- Whenever a creature deals combat damage to you, its controller becomes the monarch. type=Emblem @@ -107104,7 +107104,7 @@ subtype=Sphere name=The Mycotyrant abilities=trample anyzone=type:*[Fungus;Saproling]:myBattlefield/type:*[Fungus;Saproling]:myBattlefield cdaactive -auto=@each my endofturn:foreach(*[-instant;-sorcery&fresh]|mygraveyard) create(fungus:creature fungus:1/1:black:cantblock) +auto=@each my end:foreach(*[-instant;-sorcery&fresh]|mygraveyard) create(fungus:creature fungus:1/1:black:cantblock) text=Trample -- The Mycotyrant's power and toughness are each equal to the number of creatures you control that are Fungi and/or Saprolings. -- At the beginning of your end step, create X 1/1 black Fungus creature tokens with "This creature can't block," where X is the number of times you descended this turn. (You descend each time a permanent card is put into your graveyard from anywhere.) mana={1}{B}{G} type=Legendary Creature @@ -107116,7 +107116,7 @@ toughness=* name=The Omenkeel auto=@combatdamagefoeof(player) from(vehicle|mybattlefield):name(Exile top cards) transforms((,newability[all(*[zpos<=thatmuch]|opponentlibrary) moveto(opponentexile) and!( if cantargetcard(*[land]|*) then becomes(OmenkeelExiled) forever )!])) forever auto=@combatdamageof(player) from(vehicle|mybattlefield):name(Exile top cards) transforms((,newability[all(*[zpos<=thatmuch]|mylibrary) moveto(myexile) and!( if cantargetcard(*[land]|*) then becomes(OmenkeelExiled) forever )!])) forever -auto={0}:restriction{can play land} name(Play land from opponent exile) name(Play land from opponent exile) target(land[OmenkeelExiled]|opponentexile) moveTo(myexile) and!( transforms((,newability[becomes(OmenkeelExiled) forever],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] becomes(OmenkeelExiled) forever])) ueot )! +auto={0}:restriction{can play land} name(Play land from opponent exile) name(Play land from opponent exile) target(land[OmenkeelExiled]|opponentexile) moveTo(myexile) and!( transforms((,newability[becomes(OmenkeelExiled) forever],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] becomes(OmenkeelExiled) forever])) ueot )! auto=lord(land[OmenkeelExiled]|myexile) canplayfromexile auto={crew(other creature[power>=1]|myBattlefield)}:name(crew 1 [1 creature]) becomes(Artifact Creature) ueot restriction{type(other creature[-tapped;power>=1]|mybattlefield)~morethan~0,compare(crewtotalpower)~morethan~0} text=Whenever a Vehicle you control deals combat damage to a player, that player exiles that many cards from the top of their library. You may play lands from among those cards for as long as they remain exiled. -- Crew 1 // {2}{U} Cosima, God of the Voyage @@ -107155,7 +107155,7 @@ toughness=3 [/card] [card] name=The Raven Man -auto=@discarded(*|hand) turnlimited:phaseaction[once,endofturn] create(bird:creature bird:1/1:black:flying:cantblock) +auto=@discarded(*|hand) turnlimited:phaseaction[once,end] create(bird:creature bird:1/1:black:flying:cantblock) auto={3}{B}{T}:ability$!name(discard) reject notatarget(*|myhand)!$ opponent assorcery text=At the beginning of each end step, if a player discarded a card this turn, create a 1/1 black Bird creature token with flying and "This creature can't block." -- {3}{B}, {T}: Each opponent discards a card. Activate only as a sorcery. mana={1}{B} @@ -107251,7 +107251,7 @@ aicode=activate transforms((,newability[all(*[zpos<=type:zombie:mybattlefield]|m auto={2}{U}{B}:target(creature|graveyard) clone and!( transforms((Zombie,setpower=4,settoughness=4,black)) forever )! && moveTo(exile) auto=@each my upkeep:scry:type:zombie:mybattlefield scrycore delayed dontshow donothing scrycoreend scryend auto=@each my upkeep:foreach(zombie|mybattlefield) life:-1 opponent -auto=_DIES_phaseaction[endofturn once] moveTo(ownerhand) ueot +auto=_DIES_phaseaction[end once] moveTo(ownerhand) ueot text=At the beginning of your upkeep, each opponent loses X life and you scry X, where X is the number of Zombies you control. -- {2}{U}{B}: Exile target creature card from a graveyard. Create a token that's a copy of it, except it's a 4/4 black Zombie. -- When The Scarab God dies, return it to its owner's hand at the beginning of the next end step. mana={3}{U}{B} type=Legendary Creature @@ -107263,7 +107263,7 @@ toughness=5 name=The Scorpion God auto=@movedto(graveyard) from(creature[counter{-1/-1}]|battlefield):draw:1 auto={1}{B}{R}:counter(-1/-1) target(other creature) -auto=_DIES_phaseaction[endofturn once] moveTo(ownerhand) ueot +auto=_DIES_phaseaction[end once] moveTo(ownerhand) ueot text=Whenever a creature with a -1/-1 counter on it dies, draw a card. -- {1}{B}{R}: Put a -1/-1 counter on another target creature. -- When The Scorpion God dies, return it to its owner's hand at the beginning of the next end step. mana={3}{B}{R} type=Legendary Creature @@ -108183,7 +108183,7 @@ type=Sorcery [/card] [card] name=Throne Warden -auto=@each my endofturn restriction{compare(pmonarch)~morethan~0}:counter(1/1) +auto=@each my end restriction{compare(pmonarch)~morethan~0}:counter(1/1) text=At the beginning of your end step, if you're the monarch, put a +1/+1 counter on Throne Warden. mana={1}{W} type=Creature @@ -108213,7 +108213,7 @@ type=Land [/card] [card] name=Throne of the God-Pharaoh -auto=@each my endofturn:foreach(creature[tapped]|mybattlefield) life:-1 opponent +auto=@each my end:foreach(creature[tapped]|mybattlefield) life:-1 opponent text=At the beginning of your end step, each opponent loses life equal to the number of tapped creatures you control. mana={2} type=Legendary Artifact @@ -108537,7 +108537,7 @@ toughness=3 [card] name=Tiana, Ship's Caretaker abilities=flying,first strike -auto=@movedto(*[aura;enchantment]|myGraveyard) from(Battlefield):may phaseaction[endofturn once] name(Move to hand) moveto(ownerhand) target(*[aura;enchantment;fresh]|myGraveyard) +auto=@movedto(*[aura;enchantment]|myGraveyard) from(Battlefield):may phaseaction[end once] name(Move to hand) moveto(ownerhand) target(*[aura;enchantment;fresh]|myGraveyard) text=Flying, first strike -- Whenever an Aura or Equipment you control is put into a graveyard from the battlefield, you may return that card to its owner's hand at the beginning of the next end step. mana={3}{R}{W} type=Legendary Creature @@ -108661,7 +108661,7 @@ subtype=Aura [/card] [card] name=Tilonalli's Knight -auto=@combat(attacking) source(this) restriction{type(dinosaur|mybattleifeld)~morethan~0}:1/1 ueot +auto=@combat(attacking) source(this) restriction{type(dinosaur|myBattlefield)~morethan~0}:1/1 ueot text=Whenever Tilonalli's Knight attacks, if you control a Dinosaur, Tilonalli's Knight gets +1/+1 until end of turn. mana={1}{R} type=Creature @@ -108672,7 +108672,7 @@ toughness=2 [card] name=Tilonalli's Skinshifter abilities=haste -auto=_ATTACKING_target(creature[-legendary;attacking]) copy and!( all(this) transforms((,newability[phaseaction[endofturn once] flip(Tilonalli's Skinshifter) undocpy])) forever )! +auto=_ATTACKING_target(creature[-legendary;attacking]) copy and!( all(this) transforms((,newability[phaseaction[end once] flip(Tilonalli's Skinshifter) undocpy])) forever )! text=Haste -- Whenever Tilonalli's Skinshifter attacks, it becomes a copy of another target nonlegendary attacking creature until end of turn. mana={2}{R} type=Creature @@ -109333,7 +109333,7 @@ subtype=Arcane [card] name=Tolarian Contempt auto=name(Put rejection counter) all(creature|opponentbattlefield) counter(0/0,1,Rejction) -auto=@each my endofturn:may name(Choose opponent creature) target(creature[counter{0/0.1.Rejction}]|opponentbattlefield) transforms((,newability[choice name(Put on top) moveto(mylibrary)],newability[choice name(Put on bottom) bottomoflibrary])) oneshot +auto=@each my end:may name(Choose opponent creature) target(creature[counter{0/0.1.Rejction}]|opponentbattlefield) transforms((,newability[choice name(Put on top) moveto(mylibrary)],newability[choice name(Put on bottom) bottomoflibrary])) oneshot text=When Tolarian Contempt enters, put a rejection counter on each creature your opponents control. -- At the beginning of your end step, for each opponent, choose up to one target creature they control with a rejection counter on it. That creature's owner puts it on the top or bottom of their library. mana={3}{U}{U} type=Enchantment @@ -109935,7 +109935,7 @@ type=Instant [card] name=Touch the Spirit Realm auto=may name(Exile a creature or artifact) target(*[artifact;creature]|battlefield) (blink)forsrc -autohand={1}{W}{discard}:name(Discard and exile) target(*[artifact;creature]|battlefield) moveto(exile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveto(ownerbattlefield)])) ueot )! +autohand={1}{W}{discard}:name(Discard and exile) target(*[artifact;creature]|battlefield) moveto(exile) and!( transforms((,newability[phaseaction[end once checkex] moveto(ownerbattlefield)])) ueot )! text=When Touch the Spirit Realm enters, exile up to one target artifact or creature until Touch the Spirit Realm leaves the battlefield. -- Channel - {1}{W}, Discard Touch the Spirit Realm: Exile target artifact or creature. Return it to the battlefield under its owner's control at the beginning of the next end step. mana={2}{W} type=Enchantment @@ -110219,7 +110219,7 @@ type=Instant [/card] [card] name=Toxrill, the Corrosive -auto=@each endofturn:name(Put slime counter) all(creature|opponentbattlefield) counter(0/0,1,Slime) +auto=@each end:name(Put slime counter) all(creature|opponentbattlefield) counter(0/0,1,Slime) auto=lord(creature|opponentbattlefield) transforms((,newability[thisforeach(counter{0/0.1.Slime}>0) -1/-1])) auto=@movedto(creature[counter{0/0.1.Slime}]|graveyard) from(opponentbattlefield):name(Create Slug) token(Slug,Creature Slug,1/1,black) auto={U}{B}{S(slug|mybattlefield)}:name(Draw a card) draw:1 controller @@ -110599,8 +110599,8 @@ type=Artifact [/card] [card] name=Treasure Nabber -auto=@tappedformana(artifact|opponentBattlefield) restriction{myturnonly}:name(Gain control) all(trigger[to]) name(Gain control) moveTo(myBattlefield) and!( transforms((,newability[phaseaction[my next endofturn once sourceinplay] moveto(ownerBattlefield)])) forever )! -auto=@tappedformana(artifact|opponentBattlefield) restriction{opponentturnonly}:name(Gain control) all(trigger[to]) name(Gain control) moveTo(myBattlefield) and!( transforms((,newability[phaseaction[my endofturn once sourceinplay] moveto(ownerBattlefield)])) forever )! +auto=@tappedformana(artifact|opponentBattlefield) restriction{myturnonly}:name(Gain control) all(trigger[to]) name(Gain control) moveTo(myBattlefield) and!( transforms((,newability[phaseaction[my next end once sourceinplay] moveto(ownerBattlefield)])) forever )! +auto=@tappedformana(artifact|opponentBattlefield) restriction{opponentturnonly}:name(Gain control) all(trigger[to]) name(Gain control) moveTo(myBattlefield) and!( transforms((,newability[phaseaction[my end once sourceinplay] moveto(ownerBattlefield)])) forever )! text=Whenever an opponent taps an artifact for mana, gain control of that artifact until the end of your next turn. mana={2}{R} type=Creature @@ -110958,7 +110958,7 @@ toughness=5 name=Trostani Discordant auto=lord(other creature|myBattlefield) +1/+1 auto=create(soldier:creature soldier:1/1:white:lifelink)*2 -auto=@each my endofturn:moveto(ownerbattlefield) all(creature) +auto=@each my end:moveto(ownerbattlefield) all(creature) text=Other creatures you control get +1/+1. -- When Trostani Discordant enters, create two 1/1 white Soldier creature tokens with lifelink. -- At the beginning of your end step, each player gains control of all creatures they own. mana={3}{G}{W} type=Legendary Creature @@ -111003,7 +111003,7 @@ toughness=4 [/card] [card] name=Trove of Temptation -auto=@each my endofturn:_TREASURE_ +auto=@each my end:_TREASURE_ text=Each opponent must attack you or a planeswalker you control with at least one creature each combat if able. -- At the beginning of your end step, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color." mana={3}{R} type=Enchantment @@ -111176,7 +111176,7 @@ name=Trynn, Champion of Freedom abilities=hiddenface,partner partner=Silvar, Devourer of the Free auto=_PARTNER_ -auto=@each my endofturn restriction{compare(pattackedcount)~morethan~0}:name(Create soldier) token(Soldier Try) +auto=@each my end restriction{compare(pattackedcount)~morethan~0}:name(Create soldier) token(Soldier Try) text=Partner with Silvar, Devourer of the Free (When this creature enters, target player may put Silvar into their hand from their library, then shuffle.) -- At the beginning of your end step, if you attacked this turn, create a 1/1 white Human Soldier creature token. mana={3}{W} type=Legendary Creature @@ -111477,7 +111477,7 @@ toughness=2 [/card] [card] name=Twinblade Assassins -auto=@each my endofturn restriction{morbid}:draw:1 controller +auto=@each my end restriction{morbid}:draw:1 controller text=At the beginning of your end step, if a creature died this turn, draw a card. mana={3}{B}{G} type=Creature @@ -111841,7 +111841,7 @@ toughness=4 [card] name=Uchuulon anyzone=type:*[Crab;Ooze;Horror]:mybattlefield/4 cdaactive -auto=@each my endofturn:may name(Horrific Symbiosis) moveto(opponentexile) target(creature|opponentgraveyard) && all(this) clone +auto=@each my end:may name(Horrific Symbiosis) moveto(opponentexile) target(creature|opponentgraveyard) && all(this) clone text=Uchuulon's power is equal to the number of Crabs, Oozes, and/or Horrors you control. -- Horrific Symbiosis - At the beginning of your end step, exile up to one target creature card from an opponent's graveyard. If you do, create a token that's a copy of Uchuulon. mana={3}{B} type=Creature @@ -112437,7 +112437,7 @@ toughness=6 [card] name=Underworld Breach auto=lord(*[-land]|myGraveyard) transforms((,newability[{E(other *|myGraveyard)}{E(other *|myGraveyard)}{E(other *|myGraveyard)}:name(Exile 3 and gain escape) canplayfromgraveyard limit:1])) -auto=@each my endofturn:sacrifice all(this) +auto=@each my end:sacrifice all(this) text=Each nonland card in your graveyard has escape. The escape cost is equal to the card's mana cost plus exile three other cards from your graveyard. (You may cast cards from your graveyard for their escape cost.) -- At the beginning of the end step, sacrifice Underworld Breach. mana={1}{R} type=Enchantment @@ -113369,7 +113369,7 @@ subtype=Urza's name=Urza, Chief Artificer anyzone=affinity(creature[artifact]|myBattlefield) reduce({1}) auto=lord(other artifact[creature]|myBattlefield) menace -auto=@each my endofturn:create(construct) +auto=@each my end:create(construct) text=Affinity for artifact creatures (This spell costs {1} less to cast for each artifact creature you control.) -- Artifact creatures you control have menace. -- At the beginning of your end step, create a 0/0 colorless Construct artifact creature token with "This creature gets +1/+1 for each artifact you control." mana={3}{W}{U}{B} type=Legendary Creature @@ -113544,7 +113544,7 @@ type=Instant [card] name=Valakut Exploration auto=_LANDFALL_all(*[zpos=1]|myLibrary) moveTo(exile) and!( transforms((,canplayfromexile)) ueot )! -auto=@each my endofturn restriction{type(*[fresh]|myExile)~morethan~0}:count(type:*[fresh]:myExile) && moveTo(myGraveyard) all(*[fresh]|myExile) && damage:countedamount opponent +auto=@each my end restriction{type(*[fresh]|myExile)~morethan~0}:count(type:*[fresh]:myExile) && moveTo(myGraveyard) all(*[fresh]|myExile) && damage:countedamount opponent text=Landfall - Whenever a land enters under your control, exile the top card of your library. You may play that card for as long as it remains exiled. -- At the beginning of your end step, if there are cards exiled with Valakut Exploration, put them into their owner's graveyard, then Valakut Exploration deals that much damage to each opponent. mana={2}{R} type=Enchantment @@ -113558,8 +113558,8 @@ type=Land [/card] [card] name=Valduk, Keeper of the Flame -auto=@each my combatbegins:thisforeach(auras) create(elemental:creature elemental:3/1:red:trample,haste,and!( transforms((,newability[phaseaction[endofturn once] moveto(exile)])) forever )!) -auto=@each my combatbegins:thisforeach(gear) create(elemental:creature elemental:3/1:red:trample,haste,and!( transforms((,newability[phaseaction[endofturn once] moveto(exile)])) forever )!) +auto=@each my combatbegins:thisforeach(auras) create(elemental:creature elemental:3/1:red:trample,haste,and!( transforms((,newability[phaseaction[end once] moveto(exile)])) forever )!) +auto=@each my combatbegins:thisforeach(gear) create(elemental:creature elemental:3/1:red:trample,haste,and!( transforms((,newability[phaseaction[end once] moveto(exile)])) forever )!) text=At the beginning of combat on your turn, for each Aura and Equipment attached to Valduk, Keeper of the Flame, create a 3/1 red Elemental creature token with trample and haste. Exile those tokens at the beginning of the next end step. mana={2}{R} type=Legendary Creature @@ -113656,7 +113656,7 @@ type=Legendary Artifact [card] name=Valkyrie Harbinger abilities=flying,lifelink -auto=@each endofturn restriction{compare(lifegain)~morethan~3}:token(Angel,Creature Angel,4/4,white,flying,vigilance) +auto=@each end restriction{compare(lifegain)~morethan~3}:token(Angel,Creature Angel,4/4,white,flying,vigilance) text=Flying, lifelink -- At the beginning of each end step, if you gained 4 or more life this turn, create a 4/4 white Angel creature token with flying and vigilance. mana={4}{W}{W} type=Creature @@ -114822,8 +114822,8 @@ toughness=3 [card] name=Vesuvan Drifter abilities=flying,showfromtoplibrary -aicode=activate transforms((,newability[all(creature[zpos=1]|mylibrary) copy and!( all(this) transforms((,flying,newability[phaseaction[endofturn once] flip(Vesuvan Drifter) undocpy])) ueot )!])) oneshot -auto=@each combatbegins:may name(Reveal top card) reveal:1 optionone name(Copy revealed creature) target(creature|reveal) moveto(mylibrary) and!( becomes(tobecopied) ueot )! optiononeend optiontwo target(*|reveal) moveto(mylibrary) optiontwoend afterrevealed all(tobecopied|mylibrary) copy and!( all(this) transforms((,flying,newability[phaseaction[endofturn once] flip(Vesuvan Drifter) undocpy])) ueot )! afterrevealedend revealend +aicode=activate transforms((,newability[all(creature[zpos=1]|mylibrary) copy and!( all(this) transforms((,flying,newability[phaseaction[end once] flip(Vesuvan Drifter) undocpy])) ueot )!])) oneshot +auto=@each combatbegins:may name(Reveal top card) reveal:1 optionone name(Copy revealed creature) target(creature|reveal) moveto(mylibrary) and!( becomes(tobecopied) ueot )! optiononeend optiontwo target(*|reveal) moveto(mylibrary) optiontwoend afterrevealed all(tobecopied|mylibrary) copy and!( all(this) transforms((,flying,newability[phaseaction[end once] flip(Vesuvan Drifter) undocpy])) ueot )! afterrevealedend revealend text=Flying -- You may look at the top card of your library any time. -- At the beginning of each combat, you may reveal the top card of your library. If you reveal a creature card this way, Vesuvan Drifter becomes a copy of that card until end of turn, except it has flying. mana={2}{U} type=Creature @@ -115041,7 +115041,7 @@ toughness=1 [card] name=Viashino Sandsprinter abilities=trample,haste -auto=@each endofturn:moveTo(ownerHand) +auto=@each end:moveTo(ownerHand) autohand={R}{cycle}:name(cycling) draw:1 text=Trample, haste -- At the beginning of the end step, return Viashino Sandsprinter to its owner's hand. (Return it only if it's on the battlefield.) -- Cycling {R} ({R}, Discard this card: Draw a card.) mana={1}{R}{R} @@ -115427,8 +115427,8 @@ abilities=adventure other={1}{W} name(Adventure Ardenvale Fealty) auto=if paid(alternative) then _KNIGHTTOKEN_ auto=if paid(alternative) then _ADVENTURE_ -auto=@each my endofturn:untap all(creature|myBattlefield) -auto=@each my endofturn:counter(1/1) all(creature|myBattlefield) +auto=@each my end:untap all(creature|myBattlefield) +auto=@each my end:counter(1/1) all(creature|myBattlefield) text=Ardenvale Fealty -- {1}{W} Instant -- Adventure -- Create a 2/2 white Knight creature token with vigilance. (Then exile this card. You may cast the enchantment later from exile.) -- At the beginning of your end step, put a +1/+1 counter on each creature you control. Untap those creatures. mana={3}{W}{W} type=Enchantment @@ -115621,8 +115621,8 @@ name=Visions of Phyrexia auto=@each my upkeep:name(Exile top card) all(*[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile ueot])) ueot )! auto=@movedto(*|mybattlefield) from(exile):name(Played card from exile) counter(0/0,1,VisionsEffect) notrg auto=@movedto(*|mystack) from(exile):name(Played card from exile) counter(0/0,1,VisionsEffect) notrg -auto=@each my endofturn restriction{compare(hascntvisionseffect)~morethan~0}:name(Effect ends) removeallcounters(0/0,1,VisionsEffect) notrg -auto=@each my endofturn restriction{compare(hascntvisionseffect)~equalto~0}:name(Create powerstone) name(Create powerstone) token(Powerstone) and!( tap(noevent) )! +auto=@each my end restriction{compare(hascntvisionseffect)~morethan~0}:name(Effect ends) removeallcounters(0/0,1,VisionsEffect) notrg +auto=@each my end restriction{compare(hascntvisionseffect)~equalto~0}:name(Create powerstone) name(Create powerstone) token(Powerstone) and!( tap(noevent) )! text=At the beginning of your upkeep, exile the top card of your library. You may play that card this turn. -- At the beginning of your end step, if you didn't play a card from exile this turn, create a tapped Powerstone token. (It's an artifact with "{T}: Add {C}. This mana can't be spent to cast a nonartifact spell.") mana={2}{R}{R} type=Enchantment @@ -116286,7 +116286,7 @@ auto=@each opponent draw:ability$!name(Pay 5 life) pay[[{L:5}]] name(Pay 5 life) auto=@each opponent combatbegins:ability$!name(Pay 5 life) pay[[{L:5}]] name(Pay 5 life) sacrifice notatarget(Volrath's Dungeon|opponentBattlefield)?donothing!$ opponent auto=@each opponent blockers:ability$!name(Pay 5 life) pay[[{L:5}]] name(Pay 5 life) sacrifice notatarget(Volrath's Dungeon|opponentBattlefield)?donothing!$ opponent auto=@each opponent firstmain:ability$!name(Pay 5 life) pay[[{L:5}]] name(Pay 5 life) sacrifice notatarget(Volrath's Dungeon|opponentBattlefield)?donothing!$ opponent -auto=@each opponent endofturn:ability$!name(Pay 5 life) pay[[{L:5}]] name(Pay 5 life) sacrifice notatarget(Volrath's Dungeon|opponentBattlefield)?donothing!$ opponent +auto=@each opponent end:ability$!name(Pay 5 life) pay[[{L:5}]] name(Pay 5 life) sacrifice notatarget(Volrath's Dungeon|opponentBattlefield)?donothing!$ opponent auto={D(*|myhand)}:name(Target player) moveto(mylibrary) target(*|myhand) asSorcery auto={D(*|myhand)}:name(Target opponent) moveto(opponentlibrary) target(*|opponenthand) asSorcery text=Pay 5 life: Destroy Volrath's Dungeon. Any player may activate this ability but only during their turn. -- Discard a card: Target player puts a card from their hand on top of their library. Activate this ability only any time you could cast a sorcery. @@ -116328,7 +116328,7 @@ type=Instant [/card] [card] name=Voltaic Servant -auto=@each my endofturn:untap target(artifact) +auto=@each my end:untap target(artifact) text=At the beginning of your end step, untap target artifact. mana={2} type=Artifact Creature @@ -116875,7 +116875,7 @@ toughness=5 name=Wall of Mourning abilities=defender auto=all(*[zpos=1]|mylibrary) hiddenmoveto(myexile) and!( counter(0/0.1.WallExiled) )! -auto=@each my endofturn restriction{coven}:name(Return exiled card) target(*[counter{0/0.1.WallExiled}]|myexile) moveTo(ownerhand) +auto=@each my end restriction{coven}:name(Return exiled card) target(*[counter{0/0.1.WallExiled}]|myexile) moveTo(ownerhand) text=Defender -- When Wall of Mourning enters, exile a card from the top of your library face down for each opponent you have. -- Coven - At the beginning of your end step, if you control three or more creatures with different powers, put a card exiled with Wall of Mourning into its owner's hand. mana={1}{W} type=Creature @@ -117030,7 +117030,7 @@ toughness=1 [/card] [card] name=Wandering Troubadour -auto=@each my endofturn restriction{thisturn(land|mybattlefield)~morethan~0,compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~equalto~0}:name(Venture into dungeon) transforms((,newability[if type(*[dungeon]|mycommandzone)~morethan~0 then name(Explore the dungeon) name(Explore the dungeon) all(*[dungeon]|mycommandzone) counter(0/0.1.Explore)],newability[if type(*[dungeon]|mycommandzone)~equalto~0 then name(Choose a new dungeon) name(Choose a new dungeon) target(*[dungeon]|mysideboard) moveTo(mycommandzone) and!( counter(0/0.1.Explore) )!])) oneshot +auto=@each my end restriction{thisturn(land|mybattlefield)~morethan~0,compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~equalto~0}:name(Venture into dungeon) transforms((,newability[if type(*[dungeon]|mycommandzone)~morethan~0 then name(Explore the dungeon) name(Explore the dungeon) all(*[dungeon]|mycommandzone) counter(0/0.1.Explore)],newability[if type(*[dungeon]|mycommandzone)~equalto~0 then name(Choose a new dungeon) name(Choose a new dungeon) target(*[dungeon]|mysideboard) moveTo(mycommandzone) and!( counter(0/0.1.Explore) )!])) oneshot text=At the beginning of your end step, if you had a land enter the battlefield under your control this turn, venture into the dungeon. (Enter the first room or advance to the next room.) mana={3}{G} type=Creature @@ -117323,11 +117323,11 @@ type=Enchantment name=Warlock Class auto=counter(0/0,1,Level) aicode=activate transforms((,newability[target(*[zpos<=3]|mylibrary) moveto(ownerHand) and!( all(*[zpos<=3]|mylibrary) moveTo(mygraveyard) )!])) oneshot -auto=@each my endofturn restriction{morbid}:name(Opponent looses life) life:-1 opponent +auto=@each my end restriction{morbid}:name(Opponent looses life) life:-1 opponent auto=this(variable{hascntlevel}=1) {1}{B}:name(Level 2) counter(0/0,1,Level) asSorcery auto=@counteradded(0/0.1.Level) from(this) restriction{compare(hascntlevel)~equalto~2}:name(Look top 3) reveal:3 optionone name(Get a Card) target(*|reveal) moveto(ownerHand) optiononeend optiontwo name(put in grave) all(*|reveal) moveto(mygraveyard) optiontwoend revealend auto=this(variable{hascntlevel}=2) {6}{B}:name(Level 3) counter(0/0,1,Level) asSorcery -auto=@each my endofturn restriction{compare(hascntlevel)~morethan~2}:name(Opponent looses life) damage:oplifelost opponent +auto=@each my end restriction{compare(hascntlevel)~morethan~2}:name(Opponent looses life) damage:oplifelost opponent text=(Gain the next level as a sorcery to add its ability.) -- At the beginning of your end step, if a creature died this turn, each opponent loses 1 life. -- {1}{B}: Level 2 -- When this Class becomes level 2, look at the top three cards of your library. Put one of them into your hand and the rest into your graveyard. -- {6}{B}: Level 3 -- At the beginning of your end step, each opponent loses life equal to the life they lost this turn. (Damage causes loss of life.) mana={B} type=Enchantment @@ -117938,8 +117938,8 @@ name=Wedding Announcement backside=Wedding Festivity restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) -auto=@each my endofturn restriction{compare(pattackedcount)~lessthan~2}:name(Put Invitation counter) counter(0/0,1,Invitation) && token(Human,Creature Human,1/1,white) && if compare(hascntinvitation)~morethan~2 then flip(backside) -auto=@each my endofturn restriction{compare(pattackedcount)~morethan~1}:name(Put Invitation counter) counter(0/0,1,Invitation) && draw:1 controller && if compare(hascntinvitation)~morethan~2 then flip(backside) +auto=@each my end restriction{compare(pattackedcount)~lessthan~2}:name(Put Invitation counter) counter(0/0,1,Invitation) && token(Human,Creature Human,1/1,white) && if compare(hascntinvitation)~morethan~2 then flip(backside) +auto=@each my end restriction{compare(pattackedcount)~morethan~1}:name(Put Invitation counter) counter(0/0,1,Invitation) && draw:1 controller && if compare(hascntinvitation)~morethan~2 then flip(backside) text=At the beginning of your end step, put an invitation counter on Wedding Announcement. If you attacked with two or more creatures this turn, draw card. Otherwise, create a 1/1 white Human creature token. Then if Wedding Announcement has three or more invitation counters on it, transform it. // Wedding Festivity mana={2}{W} type=Enchantment @@ -118272,7 +118272,7 @@ name=Whispersteel Dagger auto={3}:equip auto=teach(creature) 2/0 auto=@combatdamageof(player) from(mytgt):may name(Cast creature from graveyard) target(*[creature]|mygraveyard) transforms((,newability[canplayfromgraveyard],newability[anytypeofmana])) ueot -auto=@combatdamagefoeof(player) from(mytgt):may name(Cast creature from graveyard) target(*[creature]|opponentgraveyard) moveto(mygraveyard) and!( transforms((,newability[canplayfromgraveyard],newability[anytypeofmana],newability[phaseaction[endofturn once] moveTo(ownergraveyard)])) ueot )! +auto=@combatdamagefoeof(player) from(mytgt):may name(Cast creature from graveyard) target(*[creature]|opponentgraveyard) moveto(mygraveyard) and!( transforms((,newability[canplayfromgraveyard],newability[anytypeofmana],newability[phaseaction[end once] moveTo(ownergraveyard)])) ueot )! text=Equipped creature gets +2/+0. -- Whenever equipped creature deals combat damage to a player, you may cast a creature spell from that player's graveyard this turn, and you may spend mana as though it were mana of any color to cast that spell. -- Equip 3 mana={2}{B} type=Artifact @@ -118519,7 +118519,7 @@ toughness=2 [/card] [card] name=Wilderness Reclamation -auto=@each my endofturn:untap all(land|myBattlefield) +auto=@each my end:untap all(land|myBattlefield) text=At the beginning of your end step, untap all lands you control. mana={3}{G} type=Enchantment @@ -118626,7 +118626,7 @@ toughness=1 [card] name=Wilhelt, the Rotcleaver auto=@movedto(other zombie[-counter{0/0.1.Decayed}]|graveyard) from(mybattlefield):may name(Create a zombie) token(Zombie Dec) -auto=@each my endofturn:may name(Sacrifice a zombie and draw) notATarget(zombie|mybattlefield) sacrifice and!( draw:1 controller )! +auto=@each my end:may name(Sacrifice a zombie and draw) notATarget(zombie|mybattlefield) sacrifice and!( draw:1 controller )! text=Whenever another zombie you control dies, if it didn't have decayed, create a 2/2 black Zombie creature token with decayed. (It can't block. When it attacks, sacrifice it at end of combat.) -- At the beginning of your end step, you may sacrifice a Zombie. If you do, draw a card. mana={2}{U}{B} type=Legendary Creature @@ -118976,7 +118976,7 @@ toughness=3 name=Wings of Hubris auto={1}:equip auto=teach(creature) flying -auto={S}:transforms((,newability[unblockable(mytgt),newability[@each my endofturn:sacrifice(mytgt)]])) +auto={S}:transforms((,newability[unblockable(mytgt),newability[@each my end:sacrifice(mytgt)]])) text=Equipped creature has flying. -- Sacrifice Wings of Hubris: Equipped creature can't be blocked this turn. Sacrifice it at the beginning of the next end step. -- Equip 1 ( 1 : Attach to target creature you control. Equip only as a sorcery.) mana={2} type=Artifact @@ -119113,7 +119113,7 @@ type=Sorcery [card] name=Wish target=*[-dungeon]|mysideboard -auto=name(Can play this turn) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[my endofturn once checkex] moveto(mysideboard)])) ueot )! +auto=name(Can play this turn) moveto(myexile) and!( transforms((,newability[canplayfromexile],newability[phaseaction[my end once checkex] moveto(mysideboard)])) ueot )! text=You may play a card you own from outside the game this turn. mana={2}{R} type=Sorcery @@ -119160,8 +119160,8 @@ toughness=4 [card] name=Witch of the Moors abilities=deathtouch -auto=@each my endofturn restriction{compare(lifegain)~morethan~0}:ability$!sacrifice notatarget(creature|mybattlefield)!$ opponent -auto=@each my endofturn restriction{compare(lifegain)~morethan~0}:moveto(ownerHand) target(creature|mygraveyard) +auto=@each my end restriction{compare(lifegain)~morethan~0}:ability$!sacrifice notatarget(creature|mybattlefield)!$ opponent +auto=@each my end restriction{compare(lifegain)~morethan~0}:moveto(ownerHand) target(creature|mygraveyard) text=Deathtouch -- At the beginning of your end step, if you gained life this turn, each opponent sacrifices a creature and you return up to one target creature card from your graveyard to your hand. mana={3}{B}{B} type=Creature @@ -119425,15 +119425,15 @@ type=Artifact [card] name=Wizard's Spellbook auto={T} restriction{compare(pginstantsorcery)~morethan~0}:name(Exile and roll d20) transforms((,newability[target(*[instant;sorcery]|mygraveyard) name(Exile instant or sorcery) moveto(myexile) and!( counter(0/0.1.SpellbookExiled) )!],newability[rolld20 20 winability donothing winabilityend rolld20end])) oneshot asSorcery -auto=@dierolled(this) result(1) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot -auto=@dierolled(this) result(2) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot -auto=@dierolled(this) result(3) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot -auto=@dierolled(this) result(4) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot -auto=@dierolled(this) result(5) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot -auto=@dierolled(this) result(6) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot -auto=@dierolled(this) result(7) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot -auto=@dierolled(this) result(8) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot -auto=@dierolled(this) result(9) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my endofturn once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(1) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(2) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(3) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(4) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(5) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(6) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(7) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(8) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot +auto=@dierolled(this) result(9) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[gainedexiledeath],newability[canplayfromexile],newability[phaseaction[my end once] counter(0/0.1.SpellbookExiled)])) ueot auto=@dierolled(this) result(10) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[{1}:name(Pay 1 and cast copy) activate castcard(copied)])) ueot auto=@dierolled(this) result(11) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[{1}:name(Pay 1 and cast copy) activate castcard(copied)])) ueot auto=@dierolled(this) result(12) from(controller):name(Can play the exiled card) all(*[fresh;counter{0/0.1.SpellbookExiled}]|myexile) transforms((,newability[{1}:name(Pay 1 and cast copy) activate castcard(copied)])) ueot @@ -119593,7 +119593,7 @@ toughness=4 [card] name=Wondrous Crucible auto=@targeted(*|mybattlefield) from(*|opponentzones):choice name(This spell costs 2 more) name(This spell costs 2 more) target(*|opponentzones) transforms((,newability[pay[[{2}]] name(pay 2 mana) donothing?fizzle])) oneshot -auto=@each my endofturn:name(Mill and exile) deplete:2 controller && ability$!name(Exile a random card) name(Exile a random card) target(*[-land]|opponentgraveyard) moveto(opponentexile) and!( transforms((,newability[if cantargetcard(*[-instant;-sorcery]|*) then choice name(Cast the copy) name(Cast the copy) clone],newability[if cantargetcard(*[instant;sorcery]|*) then choice name(Cast the copy) name(Cast the copy) activate castcard(copied)],newability[choice name(Don't cast copy) donothing])) oneshot )!!$ opponent +auto=@each my end:name(Mill and exile) deplete:2 controller && ability$!name(Exile a random card) name(Exile a random card) target(*[-land]|opponentgraveyard) moveto(opponentexile) and!( transforms((,newability[if cantargetcard(*[-instant;-sorcery]|*) then choice name(Cast the copy) name(Cast the copy) clone],newability[if cantargetcard(*[instant;sorcery]|*) then choice name(Cast the copy) name(Cast the copy) activate castcard(copied)],newability[choice name(Don't cast copy) donothing])) oneshot )!!$ opponent text=Permanents you control have ward {2}. -- At the beginning of your end step, mill two cards, then exile a nonland card at random from your graveyard. Copy it. You may cast the copy without paying its mana cost. (A copy of a permanent spell becomes a token.) mana={7} type=Artifact @@ -120191,7 +120191,7 @@ toughness=2 name=Xolatoyac, the Smiling Flood auto=target(land) transforms((,newability[counter(0/0.1.Flood)],newability[this(counter{0/0.1.Flood}>=1)while becomes(Island)])) forever auto=_ATTACKING_ target(land) transforms((,newability[counter(0/0.1.Flood)],newability[this(counter{0/0.1.Flood}>=1)while becomes(Island)])) forever -auto=@each my endofturn:untap all(*[counter{any}]|myBattlefield) +auto=@each my end:untap all(*[counter{any}]|myBattlefield) text=Whenever Xolatoyac, the Smiling Flood enters or attacks, put a flood counter on target land. That land is an Island in addition to its other types for as long as it has a flood counter on it. -- At the beginning of your end step, untap each permanent you control with a counter on it. mana={4}{G}{U} type=Legendary Creature @@ -120430,7 +120430,7 @@ toughness=1 [card] name=Yorion, Sky Nomad abilities=flying -auto=may name(Exile permanents) target(other *[-land]|mybattlefield) transforms((,newability[moveto(myexile)],newability[phaseaction[endofturn once] moveto(ownerbattlefield)])) ueot +auto=may name(Exile permanents) target(other *[-land]|mybattlefield) transforms((,newability[moveto(myexile)],newability[phaseaction[end once] moveto(ownerbattlefield)])) ueot text=Companion - Your starting deck contains at least twenty cards more than the minimum deck size. (If this card is your chosen companion, you may cast it once from outside the game.) -- Flying -- When Yorion enters, exile any number of other nonland permanents you own and control. Return those cards to the battlefield at the beginning of the next end step. mana={3}{WU}{WU} type=Legendary Creature @@ -120550,7 +120550,7 @@ type=Instant [card] name=You Find Some Prisoners auto=if type(artifact|battlefield)~morethan~0 then choice name(Destroy artifact) name(Destroy artifact) target(artifact) destroy -auto=choice name(Exile top 3 cards) all(*[zpos<=3]|opponentlibrary) moveto(opponentexile) and!( name(Choose exiled card) target(*[fresh]|opponentexile) moveto(myexile) and!( transforms((,newability[anytypeofmana uent],newability[canplayfromexile uent],newability[@each my untap:name(Return at end) phaseaction[my endofturn once checkex] moveto(ownerexile)])) forever )! )! +auto=choice name(Exile top 3 cards) all(*[zpos<=3]|opponentlibrary) moveto(opponentexile) and!( name(Choose exiled card) target(*[fresh]|opponentexile) moveto(myexile) and!( transforms((,newability[anytypeofmana uent],newability[canplayfromexile uent],newability[@each my untap:name(Return at end) phaseaction[my end once checkex] moveto(ownerexile)])) forever )! )! text=Choose one -- Break Their Chains - Destroy target artifact. -- Interrogate Them - Exile the top three cards of target opponent's library. Choose one of them. Until the end of your next turn, you may play that card, and you may spend mana as through it were mana of any color to cast it. mana={1}{R} type=Instant @@ -120895,8 +120895,8 @@ toughness=4 [card] name=Zara, Renegade Recruiter abilities=flying -aicode=activate target(creature|opponenthand) moveto(mybattlefield) and!( transforms((,newability[readytofight],newability[phaseaction[endofturn once sourceinplay] moveto(ownerhand)])) forever )! -auto=_ATTACKING_reveal:type:*:opponenthand revealzone(opponenthand) optionone name(Reveal) target(creature|reveal) moveto(mybattlefield) and!( transforms((,newability[readytofight],newability[phaseaction[endofturn once sourceinplay] moveto(ownerhand)])) forever )! optiononeend optiontwo all(*|reveal) moveto(opponenthand) optiontwoend revealend +aicode=activate target(creature|opponenthand) moveto(mybattlefield) and!( transforms((,newability[readytofight],newability[phaseaction[end once sourceinplay] moveto(ownerhand)])) forever )! +auto=_ATTACKING_reveal:type:*:opponenthand revealzone(opponenthand) optionone name(Reveal) target(creature|reveal) moveto(mybattlefield) and!( transforms((,newability[readytofight],newability[phaseaction[end once sourceinplay] moveto(ownerhand)])) forever )! optiononeend optiontwo all(*|reveal) moveto(opponenthand) optiontwoend revealend text=Flying -- Whenever Zara, Renegade Recruiter attacks, look at defending player's hand. You may put a creature card from it onto the battlefield under your control tapped and attacking that player or a planeswalker they control. Return that creature to its owner's hand at the beginning of the next end step. mana={3}{U}{R} type=Legendary Creature @@ -121212,7 +121212,7 @@ subtype=Swamp Mountain Forest [card] name=Ziatora, the Incinerator abilities=flying -auto=@each my endofturn:may notATarget(other creature|mybattlefield) sacrifice && transforms((,newability[damage:power target(anytarget)],newability[_TREASURE_*3])) oneshot +auto=@each my end:may notATarget(other creature|mybattlefield) sacrifice && transforms((,newability[damage:power target(anytarget)],newability[_TREASURE_*3])) oneshot text=Flying -- At the beginning of your end step, you may sacrifice another creature. When you do, Ziatora, the Incinerator deals damage equal to that creature's power to any target and you create three Treasure tokens. mana={3}{B}{R}{G} type=Legendary Creature @@ -121302,7 +121302,7 @@ toughness=2 [/card] [card] name=Zombie Ogre -auto=@each my endofturn restriction{morbid,compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~equalto~0}:name(Venture into dungeon) transforms((,newability[if type(*[dungeon]|mycommandzone)~morethan~0 then name(Explore the dungeon) name(Explore the dungeon) all(*[dungeon]|mycommandzone) counter(0/0.1.Explore)],newability[if type(*[dungeon]|mycommandzone)~equalto~0 then name(Choose a new dungeon) name(Choose a new dungeon) target(*[dungeon]|mysideboard) moveTo(mycommandzone) and!( counter(0/0.1.Explore) )!])) oneshot +auto=@each my end restriction{morbid,compare(type:*[nodngplr]:mybattlefieldplustype:*[nodngopp]:opponentbattlefieldplusend)~equalto~0}:name(Venture into dungeon) transforms((,newability[if type(*[dungeon]|mycommandzone)~morethan~0 then name(Explore the dungeon) name(Explore the dungeon) all(*[dungeon]|mycommandzone) counter(0/0.1.Explore)],newability[if type(*[dungeon]|mycommandzone)~equalto~0 then name(Choose a new dungeon) name(Choose a new dungeon) target(*[dungeon]|mysideboard) moveTo(mycommandzone) and!( counter(0/0.1.Explore) )!])) oneshot text=At the beginning of your end step, if a creature died this turn, venture into the dungeon. (Enter the first room or advance to the next room.) mana={3}{B}{B} type=Creature diff --git a/projects/mtg/bin/Res/sets/primitives/mtg.txt b/projects/mtg/bin/Res/sets/primitives/mtg.txt index b46a3ee51..c78f768c8 100644 --- a/projects/mtg/bin/Res/sets/primitives/mtg.txt +++ b/projects/mtg/bin/Res/sets/primitives/mtg.txt @@ -961,7 +961,7 @@ type=Sorcery [/card] [card] name=Advocate of the Beast -auto=@each my endofturn:target(creature[Beast]|mybattlefield) counter(1/1) +auto=@each my end:target(creature[Beast]|mybattlefield) counter(1/1) text=At the beginning of your end step, put a +1/+1 counter on target Beast creature you control. mana={2}{G} type=Creature @@ -3802,7 +3802,7 @@ type=Artifact [/card] [card] name=Angelic Accord -auto=@each endofturn restriction{compare(lifegain)~morethan~3}:_ANGELTOKEN_ controller +auto=@each end restriction{compare(lifegain)~morethan~3}:_ANGELTOKEN_ controller text=At the beginning of each end step, if you gained 4 or more life this turn, put a 4/4 white Angel creature token with flying onto the battlefield. mana={3}{W} type=Enchantment @@ -5352,7 +5352,7 @@ toughness=1 [/card] [card] name=Archmage Ascension -auto=@each endofturn restriction{compare(pdrewcount)~morethan~1}:may counter(0/0,1,Quest) +auto=@each end restriction{compare(pdrewcount)~morethan~1}:may counter(0/0,1,Quest) auto=this(counter{0/0.1.Quest}>=6) transforms((,newability[replacedraw name(search a card) notatarget(*|mylibrary) moveto(ownerhand)])) text=At the beginning of each end step, if you drew two or more cards this turn, you may put a quest counter on Archmage Ascension. -- As long as Archmage Ascension has six or more quest counters on it, if you would draw a card, you may instead search your library for a card, put that card into your hand, then shuffle. mana={2}{U} @@ -5405,7 +5405,7 @@ toughness=5 [card] name=Archwing Dragon abilities=flying,haste -auto=@each endofturn:moveto(ownerhand) all(this) +auto=@each end:moveto(ownerhand) all(this) text=Flying, haste -- At the beginning of the end step, return Archwing Dragon to its owner's hand. mana={2}{R}{R} type=Creature @@ -6480,7 +6480,7 @@ mana={1} [card] name=Asmira, Holy Avenger abilities=flying -auto=@each endofturn:foreach(creature[fresh]|mygraveyard) counter(1/1) all(this) +auto=@each end:foreach(creature[fresh]|mygraveyard) counter(1/1) all(this) text=Flying -- At the beginning of each end step, put a +1/+1 counter on Asmira, Holy Avenger for each creature put into your graveyard from the battlefield this turn. mana={2}{G}{W} type=Legendary Creature @@ -7292,7 +7292,7 @@ toughness=14 [card] name=Autumnal Gloom auto={B}:deplete:1 controller -auto=@each my endofturn restriction{delirium}:flip(Ancient of the Equinox) +auto=@each my end restriction{delirium}:flip(Ancient of the Equinox) text={B}: Put the top card of your library into your graveyard. -- Delirium At the beginning of your end step, if there are four or more card types among cards in your graveyard, transform Autumnal Gloom. mana={2}{G} type=Enchantment @@ -7351,7 +7351,7 @@ name=Avacynian Missionaries backside=Lunarch Inquisitors restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) -auto=@each my endofturn restriction{geared}:flip(backside) +auto=@each my end restriction{geared}:flip(backside) text=At the beginning of your end step, if Avacynian Missionaries is equipped, transform it. // Lunarch Inquisitors mana={3}{W} type=Creature @@ -8989,11 +8989,11 @@ toughness=2 [/card] [card] name=Barbarian Guides -auto={2}{R}{T}:name(plains) target(creature) transforms((,newability[phaseaction[endofturn once] moveTo(ownerhand)],snowplainswalk)) ueot -auto={2}{R}{T}:name(island) target(creature) transforms((,newability[phaseaction[endofturn once] moveTo(ownerhand)],snowislandwalk)) ueot -auto={2}{R}{T}:name(swamp) target(creature) transforms((,newability[phaseaction[endofturn once] moveTo(ownerhand)],snowswampwalk)) ueot -auto={2}{R}{T}:name(mountain) target(creature) transforms((,newability[phaseaction[endofturn once] moveTo(ownerhand)],snowmountainwalk)) ueot -auto={2}{R}{T}:name(forest) target(creature) transforms((,newability[phaseaction[endofturn once] moveTo(ownerhand)],snowforestwalk)) ueot +auto={2}{R}{T}:name(plains) target(creature) transforms((,newability[phaseaction[end once] moveTo(ownerhand)],snowplainswalk)) ueot +auto={2}{R}{T}:name(island) target(creature) transforms((,newability[phaseaction[end once] moveTo(ownerhand)],snowislandwalk)) ueot +auto={2}{R}{T}:name(swamp) target(creature) transforms((,newability[phaseaction[end once] moveTo(ownerhand)],snowswampwalk)) ueot +auto={2}{R}{T}:name(mountain) target(creature) transforms((,newability[phaseaction[end once] moveTo(ownerhand)],snowmountainwalk)) ueot +auto={2}{R}{T}:name(forest) target(creature) transforms((,newability[phaseaction[end once] moveTo(ownerhand)],snowforestwalk)) ueot text={2}{R}, {T}: Choose a land type. Target creature you control gains snow landwalk of the chosen type until end of turn. Return that creature to its owner's hand at the beginning of the next end step. mana={2}{R} type=Creature @@ -10048,7 +10048,7 @@ subtype=Aura [/card] [card] name=Bearer of the Heavens -autograveyard=_DIES_phaseaction[endofturn once] destroy all(*|battlefield) +autograveyard=_DIES_phaseaction[end once] destroy all(*|battlefield) text=When Bearer of the Heavens dies, destroy all permanents at the beginning of the next end step. mana={7}{R} type=Creature @@ -11907,7 +11907,7 @@ toughness=1 [card] name=Blitz Hellion abilities=trample,haste -auto=@each endofturn:moveto(ownerLibrary) && shuffle +auto=@each end:moveto(ownerLibrary) && shuffle text=Trample, haste -- At the beginning of the end step, Blitz Hellion's owner shuffles it into their library. mana={3}{R}{G} type=Creature @@ -12052,7 +12052,7 @@ name=Blood Frenzy target=creature[attacking;blocking] restriction=before battle damage auto=4/0 -auto=transforms((,newability[phaseaction[endofturn once] destroy])) +auto=transforms((,newability[phaseaction[end once] destroy])) text=Cast Blood Frenzy only before the combat damage step. -- Target attacking or blocking creature gets +4/+0 until end of turn. Destroy that creature at the beginning of the next end step. mana={1}{R} type=Instant @@ -12070,7 +12070,7 @@ toughness=3 [card] name=Blood Hound auto=@damageof(player):may counter(1/1,thatmuch) -auto=@each my endofturn:removeallcounters(1/1) +auto=@each my end:removeallcounters(1/1) text=Whenever you're dealt damage, you may put that many +1/+1 counters on Blood Hound. -- At the beginning of your end step, remove all +1/+1 counters from Blood Hound. mana={2}{R} type=Creature @@ -12265,7 +12265,7 @@ toughness=3 [/card] [card] name=Bloodchief Ascension -auto=@each endofturn foelost(2):may counter(0/0,1,Quest) +auto=@each end foelost(2):may counter(0/0,1,Quest) auto=@movedTo(*|opponentgraveyard):this(counter{0/0.3.Quest}) life:-2 opponent && this(counter{0/0.3.Quest}) life:2 controller text=At the beginning of each end step, if an opponent lost 2 or more life this turn, you may put a quest counter on Bloodchief Ascension. (Damage causes loss of life.) -- Whenever a card is put into an opponent's graveyard from anywhere, if Bloodchief Ascension has three or more quest counters on it, you may have that player lose 2 life. If you do, you gain 2 life. mana={B} @@ -12329,7 +12329,7 @@ name=Bloodcurdler abilities=flying auto=@each my upkeep:deplete:1 controller auto=aslongas(*|mygraveyard) 1/1 >6 -auto=@each my endofturn restriction{type(*|mygraveyard)~morethan~6}:target(<2>*|mygraveyard) moveto(exile) +auto=@each my end restriction{type(*|mygraveyard)~morethan~6}:target(<2>*|mygraveyard) moveto(exile) text=Flying -- At the beginning of your upkeep, put the top card of your library into your graveyard. -- Threshold - As long as seven or more cards are in your graveyard, Bloodcurdler gets +1/+1 and has "At the beginning of your end step, exile two cards from your graveyard." mana={1}{B} type=Creature @@ -14245,7 +14245,7 @@ toughness=4 [card] name=Brago, King Eternal abilities=flying -auto=@combatdamaged(player) from(this):target(*[-land]|mybattlefield) transforms((,newability[moveto(exile)],newability[if cantargetcard(*[-token]|*) then phaseactionmulti[endofturn once] moveto(ownerbattlefield)])) +auto=@combatdamaged(player) from(this):target(*[-land]|mybattlefield) transforms((,newability[moveto(exile)],newability[if cantargetcard(*[-token]|*) then phaseactionmulti[end once] moveto(ownerbattlefield)])) text=Flying -- Whenever Brago, King Eternal deals combat damage to a player, exile any number of target nonland permanents you control, then return those cards to the battlefield under their owner's control. mana={2}{W}{U} type=Legendary Creature @@ -14789,7 +14789,7 @@ type=Enchantment [card] name=Breeding Pit auto=upcost[{B}{B}] sacrifice -auto=@each my endofturn:token(Thrull,Creature Thrull,0/1,black) +auto=@each my end:token(Thrull,Creature Thrull,0/1,black) text=At the beginning of your upkeep, sacrifice Breeding Pit unless you pay {B}{B}. -- At the beginning of your end step, put a 0/1 black Thrull creature token onto the battlefield. mana={3}{B} type=Enchantment @@ -15285,8 +15285,8 @@ toughness=3 [/card] [card] name=Brood of Cockroaches -auto=@movedTo(this|mygraveyard) from(battlefield):phaseaction[endofturn once] life:-1 controller -auto=@movedTo(this|mygraveyard) from(battlefield):phaseaction[endofturn once] moveto(ownerHand) +auto=@movedTo(this|mygraveyard) from(battlefield):phaseaction[end once] life:-1 controller +auto=@movedTo(this|mygraveyard) from(battlefield):phaseaction[end once] moveto(ownerHand) text=When Brood of Cockroaches is put into your graveyard from the battlefield, at the beginning of the next end step, you lose 1 life and return Brood of Cockroaches to your hand. mana={1}{B} type=Creature @@ -15563,7 +15563,7 @@ backside=Ichiga, Who Topples Oaks restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=@movedTo(spirit,arcane|mystack):may counter(0/0,1,Ki) -auto=@each endofturn:this(counter{0/0.1.Ki}>=2) flip(backside) +auto=@each end:this(counter{0/0.1.Ki}>=2) flip(backside) text=Whenever you cast a Spirit or Arcane spell, you may put a ki counter on Budoka Pupil. -- At the beginning of the end step, if there are two or more ki counters on Budoka Pupil, you may flip it. -- ---- -- Ichiga, Who Topples Oaks -- Legendary Creature - Spirit -- 4/3 -- Trample -- Remove a ki counter from Ichiga, Who Topples Oaks: Target creature gets +2/+2 until end of turn. // Ichiga, Who Topples Oaks mana={1}{G}{G} type=Creature @@ -16528,7 +16528,7 @@ subtype=Aura name=Call to the Grave auto=@each opponent upkeep:ability$!name(sacrifice non-zombie) choice notatarget(creature[-zombie]|mybattlefield) sacrifice !$ opponent auto=@each my upkeep:notatarget(creature[-zombie]|mybattlefield) sacrifice -auto=@each endofturn restriction{type(creature|battlefield)~lessthan~1}:sacrifice +auto=@each end restriction{type(creature|battlefield)~lessthan~1}:sacrifice text=At the beginning of each player's upkeep, that player sacrifices a non-Zombie creature. -- At the beginning of the end step, if no creatures are on the battlefield, sacrifice Call to the Grave. mana={4}{B} type=Enchantment @@ -16593,7 +16593,7 @@ backside=Jaraku the Interloper restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=@movedTo(spirit,arcane|mystack):may counter(0/0,1,Ki) -auto=@each endofturn:this(counter{0/0.2.Ki}) may flip(backside) +auto=@each end:this(counter{0/0.2.Ki}) may flip(backside) text=Whenever you cast a Spirit or Arcane spell, you may put a ki counter on Callow Jushi. -- At the beginning of the end step, if there are two or more ki counters on Callow Jushi, you may flip it. // Jaraku the Interloper mana={1}{U}{U} type=Creature @@ -17671,7 +17671,7 @@ name=Cauldron Dance restriction=during battle target=creature|mygraveyard auto=moveto(mybattlefield) && transforms((,haste,newability[@next end:moveto(ownerhand) all(this)])) ueot -auto=may name(put in play) notatarget(creature|myhand) transforms((,newability[moveto(mybattlefield)],newability[phaseaction[endofturn] sacrifice all(this)],newability[haste all(this)])) ueot +auto=may name(put in play) notatarget(creature|myhand) transforms((,newability[moveto(mybattlefield)],newability[phaseaction[end] sacrifice all(this)],newability[haste all(this)])) ueot mana={4}{B}{R} type=Instant text=Cast Cauldron Dance only during combat. Return target creature card from your graveyard to the battlefield. That creature gains haste. Return it to your hand at the beginning of the next end step. You may put a creature card from your hand onto the battlefield. That creature gains haste. Its controller sacrifices it at the beginning of the next end step. @@ -18015,7 +18015,7 @@ type=Instant [/card] [card] name=Celestial Sword -auto={3}{T}:target(creature|mybattlefield) transforms((,newability[phaseaction[endofturn once] bury],newability[3/3])) ueot +auto={3}{T}:target(creature|mybattlefield) transforms((,newability[phaseaction[end once] bury],newability[3/3])) ueot text={3}, {T}: Target creature you control gets +3/+3 until end of turn. Destroy it at the beginning of the next end step. A creature destroyed this way can't be regenerated. mana={6} type=Artifact @@ -21901,7 +21901,7 @@ type=Artifact [/card] [card] name=Conjurer's Closet -auto=@each my endofturn restriction{type(creature|mybattlefield)~morethan~0}:may target(creature|mybattlefield) moveto(exile) and!(moveto(mybattlefield))! +auto=@each my end restriction{type(creature|mybattlefield)~morethan~0}:may target(creature|mybattlefield) moveto(exile) and!(moveto(mybattlefield))! text=At the beginning of your end step, you may exile target creature you control, then return that card to the battlefield under your control. mana={5} type=Artifact @@ -23475,7 +23475,7 @@ type=Enchantment [/card] [card] name=Crazed Armodon -auto={G}:3/0 && trample && phaseaction[endofturn once,sourceinplay] destroy limit:1 +auto={G}:3/0 && trample && phaseaction[end once,sourceinplay] destroy limit:1 text={G}: Crazed Armodon gets +3/+0 and gains trample until end of turn. Destroy Crazed Armodon at the beginning of the next end step. Activate this ability only once each turn. mana={2}{G}{G} type=Creature @@ -24591,7 +24591,7 @@ type=Artifact [/card] [card] name=Crystal Golem -auto=@each my endofturn:phaseout +auto=@each my end:phaseout text=At the beginning of your end step, Crystal Golem phases out. (While it's phased out, it's treated as though it doesn't exist. It phases in before you untap during your next untap step.) mana={4} type=Artifact Creature @@ -24827,7 +24827,7 @@ backside=Azamuki, Treachery Incarnate restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=@movedTo(spirit,arcane|mystack):may counter(0/0,1,Ki) -auto=@each endofturn:this(counter{0/0.2.Ki}) flip(backside) +auto=@each end:this(counter{0/0.2.Ki}) flip(backside) text=Whenever you cast a Spirit or Arcane spell, you may put a ki counter on Cunning Bandit. -- At the beginning of the end step, if there are two or more ki counters on Cunning Bandit, you may flip it. // Azamuki, Treachery Incarnate mana={1}{R}{R} type=Creature @@ -25793,7 +25793,7 @@ type=Enchantment [card] name=Dark Maze abilities=defender -auto={0}:canattack ueot && phaseaction[endofturn once] moveTo(exile) +auto={0}:canattack ueot && phaseaction[end once] moveTo(exile) auto={0}:name(do nothing) doNothing text=Defender (This creature can't attack.) -- {0}: Dark Maze can attack this turn as though it didn't have defender. Exile it at the beginning of the next end step. mana={4}{U} @@ -26484,7 +26484,7 @@ toughness=2 [card] name=Dawn of the Dead auto=@each my upkeep:life:-1 controller -auto=@each my upkeep:may target(creature|mygraveyard) moveTo(mybattlefield) && transforms((,newability[phaseaction[endofturn once] moveTo(exile)],haste)) ueot +auto=@each my upkeep:may target(creature|mygraveyard) moveTo(mybattlefield) && transforms((,newability[phaseaction[end once] moveTo(exile)],haste)) ueot text=At the beginning of your upkeep, you lose 1 life. -- At the beginning of your upkeep, you may return target creature card from your graveyard to the battlefield. That creature gains haste until end of turn. Exile it at the beginning of the next end step. mana={2}{B}{B}{B} type=Enchantment @@ -26492,7 +26492,7 @@ type=Enchantment [card] name=Dawnbreak Reclaimer abilities=flying -auto=@each my endofturn:may notatarget(creature|opponentgraveyard) moveto(ownerbattlefield) and!( ability$!notatarget(creature|opponentgraveyard) moveto(ownerbattlefield)!$ opponent )! +auto=@each my end:may notatarget(creature|opponentgraveyard) moveto(ownerbattlefield) and!( ability$!notatarget(creature|opponentgraveyard) moveto(ownerbattlefield)!$ opponent )! text=Flying -- At the beginning of your end step, choose a creature card in an opponent's graveyard, then that player chooses a creature card in your graveyard. You may return those cards to the battlefield under their owners' control. mana={4}{W}{W} type=Creature @@ -27352,7 +27352,7 @@ toughness=5 [/card] [card] name=Deathreap Ritual -auto=@each endofturn restriction{morbid}:may draw:1 controller +auto=@each end restriction{morbid}:may draw:1 controller text=Morbid -- At the beginning of each end step, if a creature died this turn, you may draw a card. mana={2}{B}{G} type=Enchantment @@ -28370,7 +28370,7 @@ toughness=5 [/card] [card] name=Demonic Rising -auto=@each my endofturn restriction{type(creature|mybattlefield)~equalto~1}:token(Demon,Creature Demon,5/5,black,flying) +auto=@each my end restriction{type(creature|mybattlefield)~equalto~1}:token(Demon,Creature Demon,5/5,black,flying) text=At the beginning of your end step, if you control exactly one creature, put a 5/5 black Demon creature token with flying onto the battlefield. mana={3}{B}{B} type=Enchantment @@ -29027,7 +29027,7 @@ toughness=* [card] name=Deus of Calamity abilities=trample -auto=@damagefoeof(player) from(this) restriction{compare(thatmuch)~morethan~5}:destroy target(land|opponent) +auto=@damagefoeof(player) from(this) restriction{compare(thatmuch)~morethan~5}:destroy target(land|opponentBattlefield) text=Trample -- Whenever Deus of Calamity deals 6 or more damage to an opponent, destroy target land that player controls. mana={RG}{RG}{RG}{RG}{RG} type=Creature @@ -29902,8 +29902,8 @@ type=Enchantment [/card] [card] name=Discordant Spirit -auto=@each opponent endofturn:counter(1/1,pdcount) -auto=@each my endofturn:removeallcounters(1/1) +auto=@each opponent end:counter(1/1,pdcount) +auto=@each my end:removeallcounters(1/1) text=At the beginning of each end step, if it's an opponent's turn, put a +1/+1 counter on Discordant Spirit for each 1 damage dealt to you this turn. -- At the beginning of your end step, remove all +1/+1 counters on Discordant Spirit. mana={2}{B}{R} type=Creature @@ -31178,7 +31178,7 @@ toughness=6 [card] name=Dragon Whelp abilities=flying -auto={R}:1/0 ueot limit^phaseaction[endofturn once] sacrifice^4 +auto={R}:1/0 ueot limit^phaseaction[end once] sacrifice^4 text=Flying -- {R}: Dragon Whelp gets +1/+0 until end of turn. If this ability has been activated four or more times this turn, sacrifice Dragon Whelp at the beginning of the next end step. mana={2}{R}{R} type=Creature @@ -32910,7 +32910,7 @@ toughness=3 [card] name=Dunerider Outlaw abilities=protection from green -auto=@damagefoeof(player) from(this):all(trigger[from]) phaseaction[endofturn once] counter(1/1) +auto=@damagefoeof(player) from(this):all(trigger[from]) phaseaction[end once] counter(1/1) text=Protection from green -- At the beginning of each end step, if Dunerider Outlaw dealt damage to an opponent this turn, put a +1/+1 counter on it. mana={B}{B} type=Creature @@ -35948,8 +35948,8 @@ type=Sorcery [/card] [card] name=Endless Whispers -auto=@each endofturn:moveto(mybattlefield) all(creature[fresh]|opponentgraveyard) -auto=@each endofturn:moveto(opponentbattlefield) all(creature[fresh]|mygraveyard) +auto=@each end:moveto(mybattlefield) all(creature[fresh]|opponentgraveyard) +auto=@each end:moveto(opponentbattlefield) all(creature[fresh]|mygraveyard) text=Each creature has "When this creature is put into a graveyard, choose target opponent. That player returns this card from that graveyard to the battlefield under their control at the beginning of the next end step." mana={2}{B}{B} type=Enchantment @@ -38117,7 +38117,7 @@ toughness=3 [/card] [card] name=Exuberant Firestoker -auto=@each my endofturn restriction{type(creature[power>=5]|myBattlefield)~morethan~0}:may damage:2 target(player) +auto=@each my end restriction{type(creature[power>=5]|myBattlefield)~morethan~0}:may damage:2 target(player) auto={T}:Add{1} text=At the beginning of your end step, if you control a creature with power 5 or greater, you may have Exuberant Firestoker deal 2 damage to target player. -- {T}: Add {1}. mana={2}{R} @@ -38586,7 +38586,7 @@ backside=Kaiso, Memory of Loyalty restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=@movedTo(spirit,arcane|mystack):may counter(0/0,1,Ki) -auto=@each endofturn:this(counter{0/0.2.Ki}) flip(backside) +auto=@each end:this(counter{0/0.2.Ki}) flip(backside) text=Whenever you cast a Spirit or Arcane spell, you may put a ki counter on Faithful Squire. -- At the beginning of the end step, if there are two or more ki counters on Faithful Squire, you may flip it. // Kaiso, Memory of Loyalty mana={1}{W}{W} type=Creature @@ -39065,7 +39065,7 @@ subtype=Aura [/card] [card] name=Farrelite Priest -auto={1}:add{w} limit^phaseaction[endofturn once] sacrifice^4 +auto={1}:add{w} limit^phaseaction[end once] sacrifice^4 text={1}: Add {W}. If this ability has been activated four or more times this turn, sacrifice Farrelite Priest at the beginning of the next end step. mana={1}{W}{W} type=Creature @@ -39529,7 +39529,7 @@ type=Instant [/card] [card] name=Feed the Pack -auto=@each my endofturn:may name(sacrifice a non-token creature) notATarget(creature[-token]|mybattlefield) transforms((,newability[token(-262857)*t],newability[sacrifice])) forever +auto=@each my end:may name(sacrifice a non-token creature) notATarget(creature[-token]|mybattlefield) transforms((,newability[token(-262857)*t],newability[sacrifice])) forever text=At the beginning of your end step, you may sacrifice a nontoken creature. If you do, put X 2/2 green Wolf creature tokens onto the battlefield where X is the sacrificed creature's toughness. mana={5}{G} type=Enchantment @@ -39615,7 +39615,7 @@ toughness=3 [/card] [card] name=Felhide Spiritbinder -auto=@untapped(this) restriction{type(creature)~morethan~1}:pay({1}{R}) target(other creature) clone and!( transforms((Enchantment,haste,newability[@each my endofturn:moveto(exile)])) oneshot )! +auto=@untapped(this) restriction{type(creature)~morethan~1}:pay({1}{R}) target(other creature) clone and!( transforms((Enchantment,haste,newability[@each my end:moveto(exile)])) oneshot )! text=Inspired -- Whenever Felhide Spiritbinder becomes untapped, you may pay {1}{R}. If you do, create a token that's a copy of another target creature except it's an enchantment in addition to its other types. It gains haste. Exile it at the beginning of the next end step. mana={3}{R} type=Creature @@ -40195,8 +40195,8 @@ type=Instant [/card] [card] name=Fevered Visions -auto=@each my endofturn:draw:1 -auto=@each opponent endofturn:draw:1 opponent && if type(*|opponenthand)~morethan~3 then damage:2 opponent +auto=@each my end:draw:1 +auto=@each opponent end:draw:1 opponent && if type(*|opponenthand)~morethan~3 then damage:2 opponent text=At the beginning of each player's end step, that player draws a card. If the player is your opponent and has four or more cards in hand, Fevered Visions deals 2 damage to that player. mana={1}{U}{R} type=Enchantment @@ -40510,7 +40510,7 @@ toughness=2 [card] name=Final Fortune auto=turns:+1 controller -auto=transforms((,newability[@each my upkeep:phaseaction[endofturn once] winGame opponent])) forever +auto=transforms((,newability[@each my upkeep:phaseaction[end once] winGame opponent])) forever text=Take an extra turn after this one. At the beginning of that turn's end step, you lose the game. mana={R}{R} type=Instant @@ -46096,7 +46096,7 @@ toughness=2 [/card] [card] name=Giant Caterpillar -auto={G}{S}:phaseaction[endofturn once] token(Butterfly,creature insect, 1/1,flying green) +auto={G}{S}:phaseaction[end once] token(Butterfly,creature insect, 1/1,flying green) text={G}, Sacrifice Giant Caterpillar: Put a 1/1 green Insect creature token with flying named Butterfly onto the battlefield at the beginning of the next end step. mana={3}{G} type=Creature @@ -46574,7 +46574,7 @@ type=Sorcery [card] name=Gisela, the Broken Blade abilities=flying,first strike,lifelink -auto=@each my endofturn:target(Bruna^ the Fading Light|mybattlefield) meld(Brisela, Voice of Nightmares) +auto=@each my end:target(Bruna^ the Fading Light|mybattlefield) meld(Brisela, Voice of Nightmares) text=Flying, first strike, lifelink -- At the beginning of your end step, if you both own and control Gisela, the Broken Blade and a creature named Bruna, the Fading Light, exile them, then meld them into Brisela, Voice of Nightmares. mana={2}{W}{W} type=Legendary Creature @@ -46927,7 +46927,7 @@ auto={T}:add{U} auto={T}:add{B} auto={T}:add{R} auto={T}:add{G} -auto=@each endofturn restriction{type(artifact|myBattlefield)~lessthan~1}:sacrifice +auto=@each end restriction{type(artifact|myBattlefield)~lessthan~1}:sacrifice text=At the beginning of the end step, if you control no artifacts, sacrifice Glimmervoid. -- {T}: Add one mana of any color. type=Land [/card] @@ -47102,7 +47102,7 @@ subtype=Aura [card] name=Glitterfang abilities=haste -auto=@each endofturn:moveto(ownerhand) all(this) +auto=@each end:moveto(ownerhand) all(this) text=Haste -- At the beginning of the end step, return Glitterfang to its owner's hand. mana={R} type=Creature @@ -47391,7 +47391,7 @@ type=Instant [/card] [card] name=Goatnapper -auto=choice target(goat) moveto(mybattlefield) && untap && transforms((,haste,newability[phaseaction[endofturn once] moveto(ownerbattlefield)])) ueot +auto=choice target(goat) moveto(mybattlefield) && untap && transforms((,haste,newability[phaseaction[end once] moveto(ownerbattlefield)])) ueot text=When Goatnapper enters, untap target Goat and gain control of it until end of turn. It gains haste until end of turn. mana={2}{R} type=Creature @@ -47927,7 +47927,7 @@ toughness=2 [/card] [card] name=Goblin Kites -auto={R}:target(creature[toughness<=2]|mybattlefield) transforms((,flying,newability[phaseaction[endofturn once] flipacoin loseability sacrifice loseabilityend flipend])) ueot +auto={R}:target(creature[toughness<=2]|mybattlefield) transforms((,flying,newability[phaseaction[end once] flipacoin loseability sacrifice loseabilityend flipend])) ueot text={R}: Target creature you control with toughness 2 or less gains flying until end of turn. Flip a coin at the beginning of the next end step. If you lose the flip, sacrifice that creature. mana={1}{R} type=Enchantment @@ -48103,7 +48103,7 @@ toughness=2 [card] name=Goblin Pyromancer auto=all(goblin) 3/0 ueot -auto=@each endofturn:destroy all(goblin) +auto=@each end:destroy all(goblin) text=When Goblin Pyromancer enters, Goblin creatures get +3/+0 until end of turn. -- At the beginning of the end step, destroy all Goblins. mana={3}{R} type=Creature @@ -48143,7 +48143,7 @@ type=Sorcery [card] name=Goblin Razerunners auto={1}{R}{S(land|myBattlefield)}:counter(1/1) -auto=@each my endofturn:may target(player) dynamicability +auto=@each my end:may target(player) dynamicability text={1}{R}, Sacrifice a land: Put a +1/+1 counter on Goblin Razerunners. -- At the beginning of your end step, you may have Goblin Razerunners deal damage equal to the number of +1/+1 counters on it to target player. mana={2}{R}{R} type=Creature @@ -49474,7 +49474,7 @@ type=Land [/card] [card] name=Grave Betrayal -auto=@movedTo(creature|opponentGraveyard) from(Battlefield):all(trigger[to]) transforms((,newability[phaseaction[endofturn once] moveTo(opponentBattlefield)])) +auto=@movedTo(creature|opponentGraveyard) from(Battlefield):all(trigger[to]) transforms((,newability[phaseaction[end once] moveTo(opponentBattlefield)])) auto=@movedTo(creature[fresh]|myBattlefield) from(opponentGraveyard):all(trigger[to]) transforms((,newability[counter(1/1)])) auto=@movedTo(creature[fresh]|myBattlefield) from(opponentGraveyard):all(trigger[to]) transforms((Zombie,black)) forever text=Whenever a creature you don't control dies, return it to the battlefield under your control with an additional +1/+1 counter on it at the beginning of the next end step. That creature is a black Zombie in addition to its other colors and types. @@ -54790,7 +54790,7 @@ backside=Scarmaker restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) auto=@movedTo(spirit,arcane|mystack):may counter(0/0,1,Ki) -auto=@each endofturn:this(counter{0/0.2.Ki}) flip(backside) +auto=@each end:this(counter{0/0.2.Ki}) flip(backside) text=Whenever you cast a Spirit or Arcane spell, you may put a ki counter on Hired Muscle. -- At the beginning of the end step, if there are two or more ki counters on Hired Muscle, you may flip it. // Scarmaker mana={1}{B}{B} type=Creature @@ -55186,7 +55186,7 @@ type=Land [card] name=Homicidal Brute backside=Civilized Scholar -auto=@each my endofturn restriction{didntattack}:tap && flip(backside) +auto=@each my end restriction{didntattack}:tap && flip(backside) text=At the beginning of your end step, if Homicidal Brute didn't attack this turn, tap Homicidal Brute, then transform it. // Civilized Scholar type=Creature subtype=Human Mutant @@ -55979,7 +55979,7 @@ toughness=2 name=Howlpack Alpha backside=Mayor of Avabruck auto=lord(other *[werewolf;wolf]|mybattlefield) 1/1 -auto=@each my endofturn:_WOLFTOKEN_ +auto=@each my end:_WOLFTOKEN_ auto=@each upkeep restriction{lastturn(*|mystack)~morethan~1,lastturn(*|opponentstack)~lessthan~2}:name(Transform Werewolf) flip(backside) auto=@each upkeep restriction{lastturn(*|opponentstack)~morethan~1}:name(Transform Werewolf) flip(backside) text=Other Werewolf and Wolf creatures you control get +1/+1. -- At the beginning of your end step, put a 2/2 green Wolf creature token onto the battlefield. -- At the beginning of each upkeep, if a player cast two or more spells last turn, transform Howlpack Alpha. // Mayor of Avabruck @@ -57028,7 +57028,7 @@ type=Artifact [card] name=Ideas Unbound auto=draw:3 -auto=phaseaction[endofturn] reject notatarget(<3>*|myhand) +auto=phaseaction[end] reject notatarget(<3>*|myhand) text=Draw three cards. Discard three cards at the beginning of the next end step. mana={U}{U} type=Sorcery @@ -57102,8 +57102,8 @@ toughness=1 [/card] [card] name=Ignorant Bliss -auto=all(*|myhand) moveto(myexile) and!( transforms((,newability[phaseaction[endofturn once checkex] moveto(ownerHand)])) ueot )! -auto=phaseaction[endofturn once] draw:1 +auto=all(*|myhand) moveto(myexile) and!( transforms((,newability[phaseaction[end once checkex] moveto(ownerHand)])) ueot )! +auto=phaseaction[end once] draw:1 text=Exile all cards from your hand face down. At the beginning of the next end step, return those cards to your hand, then draw a card. mana={1}{R} type=Instant @@ -58322,7 +58322,7 @@ type=Enchantment [/card] [card] name=Initiates of the Ebon Hand -auto={1}:add{b} limit^phaseaction[endofturn once] sacrifice^4 +auto={1}:add{b} limit^phaseaction[end once] sacrifice^4 text={1}: Add {B}. If this ability has been activated four or more times this turn, sacrifice Initiates of the Ebon Hand at the beginning of the next end step. mana={B} type=Creature @@ -59546,7 +59546,7 @@ type=Artifact name=Ivory Gargoyle abilities=flying auto={4}{W}:moveTo(exile) -autograveyard=_DIES_phaseaction[my endofturn] moveTo(mybattlefield) +autograveyard=_DIES_phaseaction[my end] moveTo(mybattlefield) autograveyard=_DIES_nextphasealter(remove,draw,controller) text=Flying -- When Ivory Gargoyle dies, return it to the battlefield under its owner's control at the beginning of the next end step and you skip your next draw step. -- {4}{W}: Exile Ivory Gargoyle. mana={4}{W} @@ -60403,7 +60403,7 @@ text=Flash -- At the beginning of your end step, draw seven cards. -- Each oppon [/card] [card] name=Jinxed Choker -auto=@each my endofturn:moveTo(opponentbattlefield) && counter(0/0,1,Charge) +auto=@each my end:moveTo(opponentbattlefield) && counter(0/0,1,Charge) auto=@each my upkeep:dynamicability auto={3}:name(add a Charge counter) counter(0/0,1,Charge) auto={3}:name(remove a Charge counter) counter(0/0,-1,Charge) @@ -62724,7 +62724,7 @@ toughness=4 [/card] [card] name=Khabal Ghoul -auto=@each endofturn:counter(1/1,type:creature[fresh]:graveyard) +auto=@each end:counter(1/1,type:creature[fresh]:graveyard) text=At the beginning of each end step, put a +1/+1 counter on Khabal Ghoul for each creature put into a graveyard from the battlefield this turn. mana={2}{B} type=Creature @@ -64820,7 +64820,7 @@ subtype=Aura [/card] [card] name=Krovikan Horror -autograveyard=@each endofturn restriction{type(creature[zpos=myposplus1plusend]|mygraveyard)~morethan~0}:may moveto(ownerhand) +autograveyard=@each end restriction{type(creature[zpos=myposplus1plusend]|mygraveyard)~morethan~0}:may moveto(ownerhand) auto={1}{S(creature|mybattlefield)}:damage:1 target(anytarget) text=At the beginning of the end step, if Krovikan Horror is in your graveyard with a creature card directly above it, you may return Krovikan Horror to your hand. -- {1}, Sacrifice a creature: Krovikan Horror deals 1 damage to any target. mana={3}{B} @@ -65055,7 +65055,7 @@ toughness=3 [card] name=Kuon, Ogre Ascendant doublefaced=kamiflip -auto=@each my endofturn restriction{compare(bothalldeadcreature)~morethan~2}:flip(Kuon's Essence) +auto=@each my end restriction{compare(bothalldeadcreature)~morethan~2}:flip(Kuon's Essence) text=At the beginning of the end step, if three or more creatures died this turn, flip Kuon, Ogre Ascendant. mana={B}{B}{B} type=Legendary Creature @@ -65715,7 +65715,7 @@ type=Sorcery [card] name=Last Chance auto=turns:+1 controller -auto=transforms((,newability[@each my upkeep:phaseaction[endofturn once] winGame opponent])) forever +auto=transforms((,newability[@each my upkeep:phaseaction[end once] winGame opponent])) forever text=Take an extra turn after this one. At the beginning of that turn's end step, you lose the game. mana={R}{R} type=Sorcery @@ -66941,7 +66941,7 @@ type=Instant [/card] [card] name=Lifeline -auto=lord(creature) transforms((,newability[@movedTo(graveyard) from(this|battlefield) restriction{type(creature|battlefield)~morethan~0}:all(trigger[to]) [phaseaction[endofturn once] moveTo(mybattlefield)]])) forever +auto=lord(creature) transforms((,newability[@movedTo(graveyard) from(this|battlefield) restriction{type(creature|battlefield)~morethan~0}:all(trigger[to]) [phaseaction[end once] moveTo(mybattlefield)]])) forever text=Whenever a creature dies, if another creature is on the battlefield, return the first card to the battlefield under its owner's control at the beginning of the next end step. mana={5} type=Artifact @@ -67060,7 +67060,7 @@ type=Enchantment name=Lighthouse Chronologist auto={U}:counter(0/0,1,Level) asSorcery auto=this(counter{0/0.4.Level}) 1/1 -auto=this(counter{0/0.7.Level}) transforms((,newability[@each opponent endofturn:turns:+1 controller])) +auto=this(counter{0/0.7.Level}) transforms((,newability[@each opponent end:turns:+1 controller])) auto=this(counter{0/0.7.Level}) 1/1 text=Level up {U} ({U}: Put a level counter on this. Level up only as a sorcery.) LEVEL 4-6 2/4 LEVEL 7+ 3/5 At the beginning of each end step, if it's not your turn, take an extra turn after this one. mana={1}{U} @@ -67278,7 +67278,7 @@ subtype=Aura name=Lightning Reaver abilities=haste,fear auto=@combatdamaged(player) from(this):counter(0/0,1,Charge) -auto=@each my endofturn:dynamicability +auto=@each my end:dynamicability text=Haste; fear (This creature can't be blocked except by artifact creatures and/or black creatures.) -- Whenever Lightning Reaver deals combat damage to a player, put a charge counter on it. -- At the beginning of your end step, Lightning Reaver deals damage equal to the number of charge counters on it to each opponent. mana={3}{B}{R} type=Creature @@ -67319,7 +67319,7 @@ toughness=1 [card] name=Lightning Shrieker abilities=flying,trample,haste -auto=@each endofturn:moveto(ownerlibrary) && shuffle +auto=@each end:moveto(ownerlibrary) && shuffle text=Flying, trample, haste. -- At the beginning of the end step, Lightning Shrieker's owner shuffles it into their library. mana={4}{R} type=Creature @@ -67502,7 +67502,7 @@ toughness=3 [card] name=Lingering Death target=creature -auto=@each targetController endofturn:sacrifice(mytgt) +auto=@each targetController end:sacrifice(mytgt) text=Enchant creature -- At the beginning of the end step of enchanted creature's controller, that player sacrifices that creature. mana={1}{B} type=Enchantment @@ -68126,7 +68126,7 @@ abilities=first strike,lifelink backside=It That Rides as One restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) -auto=@each endofturn restriction{compare(lifegain)~morethan~2}:flip(backside) +auto=@each end restriction{compare(lifegain)~morethan~2}:flip(backside) text=First strike, lifelink -- At the beginning of the end step, if you gained 3 or more life this turn, transform Lone Rider. // It That Rides as One mana={1}{W} type=Creature @@ -68811,7 +68811,7 @@ abilities=vigilance backside=Unhallowed Cathar restriction=compare(isflipped)~equalto~0 anyzone={0}:doubleside(backside) -auto=_DIES_name(Return on battlefield) all(trigger[to]) transforms((,newability[phaseaction[endofturn once] moveTo(mybattlefield)],newability[phaseaction[endofturn once] flip(backside)])) forever +auto=_DIES_name(Return on battlefield) all(trigger[to]) transforms((,newability[phaseaction[end once] moveTo(mybattlefield)],newability[phaseaction[end once] flip(backside)])) forever text=Vigilance -- When Loyal Cathar dies, return it to the battlefield transformed under your control at the beginning of the next end step. // Unhallowed Cathar mana={W}{W} type=Creature @@ -70000,7 +70000,7 @@ toughness=3 [/card] [card] name=Magus of the Jar -auto={T}{S}:name(hand blink) all(*|hand) transforms((,newability[moveto(exile)],newability[phaseaction[endofturn once checkex] moveto(ownerhand)])) && ability$!draw:7 all(player) _ phaseaction[endofturn once] reject all(*|hand)!$ controller +auto={T}{S}:name(hand blink) all(*|hand) transforms((,newability[moveto(exile)],newability[phaseaction[end once checkex] moveto(ownerhand)])) && ability$!draw:7 all(player) _ phaseaction[end once] reject all(*|hand)!$ controller text={T}, Sacrifice Magus of the Jar: Each player exiles all cards from their hand face down and draws seven cards. At the beginning of the next end step, each player discards their hand and returns to their hand each card they exiled this way. mana={3}{U}{U} type=Creature @@ -70701,7 +70701,7 @@ toughness=1 name=Mangara's Blessing auto=life:5 controller autograveyard=while(restriction{discardbyopponent}) life:2 controller -autograveyard=@each my endofturn restriction{discardbyopponent}:moveto(ownerhand) +autograveyard=@each my end restriction{discardbyopponent}:moveto(ownerhand) autoexile=while(restriction{discardbyopponent}) life:2 controller text=You gain 5 life. -- When a spell or ability an opponent controls causes you to discard Mangara's Blessing, you gain 2 life, and you return Mangara's Blessing from your graveyard to your hand at the beginning of the next end step. mana={2}{W} @@ -70988,7 +70988,7 @@ type=Sorcery name=Marchesa, the Black Rose abilities=dethrone auto=lord(creature|mybattlefield) dethrone -auto=@movedto(graveyard) from(creature[counter{1/1.1}]|mybattlefield):all(trigger[to]) transforms((,haste,newability[@my next endofturn:moveTo(mybattlefield)])) forever +auto=@movedto(graveyard) from(creature[counter{1/1.1}]|mybattlefield):all(trigger[to]) transforms((,haste,newability[@my next end:moveTo(mybattlefield)])) forever text=Dethrone (Whenever this creature attacks the player with the most life or tied for most life, put a +1/+1 counter on it.) -- Other creatures you control have dethrone. -- Whenever a creature you control with a +1/+1 counter on it dies, return that card to the battlefield under your control at the beginning of the next end step. mana={1}{U}{B}{R} type=Legendary Creature @@ -71246,7 +71246,7 @@ type=Enchantment name=Mark of Fury target=creature auto=haste -auto=@each endofturn:moveTo(ownerhand) all(this) +auto=@each end:moveTo(ownerhand) all(this) text=Enchant creature -- Enchanted creature has haste. -- At the beginning of the end step, return Mark of Fury to its owner's hand. mana={R} type=Enchantment @@ -71274,7 +71274,7 @@ subtype=Aura name=Mark of the Oni target=creature alias=1194 -auto=@each endofturn restriction{type(demon|mybattlefield)~lessthan~1}:sacrifice all(this) +auto=@each end restriction{type(demon|mybattlefield)~lessthan~1}:sacrifice all(this) text=Enchant creature -- You control enchanted creature. -- At the beginning of the end step, if you control no Demons, sacrifice Mark of the Oni. mana={2}{B} type=Enchantment @@ -72357,8 +72357,8 @@ type=Land [/card] [card] name=Measure of Wickedness -auto=@next my endofturn:bury -auto=@next my endofturn:life:-8 controller +auto=@next my end:bury +auto=@next my end:life:-8 controller auto=@movedto(other *|graveyard) from(exile,library,graveyard,hand,battlefield):moveto(opponentBattlefield) text=At the beginning of your end step, sacrifice Measure of Wickedness and you lose 8 life. -- Whenever another card is put into your graveyard from anywhere, target opponent gains control of Measure of Wickedness. mana={3}{B} @@ -72609,7 +72609,7 @@ type=Enchantment [/card] [card] name=Memory Jar -auto={T}{S}:name(hand blink) all(*|hand) transforms((,newability[moveto(exile)],newability[phaseaction[endofturn once checkex] moveto(ownerhand)])) && ability$!draw:7 all(player) _ phaseaction[endofturn once] reject all(*|hand)!$ controller +auto={T}{S}:name(hand blink) all(*|hand) transforms((,newability[moveto(exile)],newability[phaseaction[end once checkex] moveto(ownerhand)])) && ability$!draw:7 all(player) _ phaseaction[end once] reject all(*|hand)!$ controller text={T}, Sacrifice Memory Jar: Each player exiles all cards from their hand face down and draws seven cards. At the beginning of the next end step, each player discards their hand and returns to their hand each card they exiled this way. mana={5} type=Artifact @@ -72752,7 +72752,7 @@ toughness=5 [/card] [card] name=Mercadian Atlas -auto=@each my endofturn restriction{type(land[fresh]|mybattlefield)~lessthan~1}:may draw:1 controller +auto=@each my end restriction{type(land[fresh]|mybattlefield)~lessthan~1}:may draw:1 controller text=At the beginning of your end step, if you didn't play a land this turn, you may draw a card. mana={5} type=Artifact @@ -75452,7 +75452,7 @@ toughness=4 [/card] [card] name=Mogg Cannon -auto={T}:target(creature|mybattlefield) transforms((,newability[phaseaction[endofturn once] destroy],flying,newability[1/0])) ueot +auto={T}:target(creature|mybattlefield) transforms((,newability[phaseaction[end once] destroy],flying,newability[1/0])) ueot text={T}: Target creature you control gets +1/+0 and gains flying until end of turn. Destroy that creature at the beginning of the next end step. mana={2} type=Artifact @@ -75737,7 +75737,7 @@ toughness=* name=Molten Firebird abilities=flying auto={4}{R}:moveTo(exile) -autograveyard=_DIES_phaseaction[endofturn] moveTo(mybattlefield) +autograveyard=_DIES_phaseaction[end] moveTo(mybattlefield) autograveyard=_DIES_nextphasealter(remove,draw,controller) text=Flying -- When Molten Firebird dies, return it to the battlefield under its owner's control at the beginning of the next end step and you skip your next draw step. -- {4}{R}: Exile Molten Firebird. mana={4}{R} @@ -76052,8 +76052,8 @@ type=Artifact [/card] [card] name=Monsoon -auto=@each my endofturn:damage:type:island[-tapped]:mybattlefield controller -auto=@each opponent endofturn:damage:type:island[-tapped]:opponentbattlefield opponent +auto=@each my end:damage:type:island[-tapped]:mybattlefield controller +auto=@each opponent end:damage:type:island[-tapped]:opponentbattlefield opponent auto=@each my cleanup:tap all(island[-tapped]|myBattlefield) auto=@each opponent cleanup:tap all(island[-tapped]|opponentBattlefield) text=At the beginning of each player's end step, tap all untapped Islands that player controls and Monsoon deals X damage to the player, where X is the number of Islands tapped this way. @@ -78933,7 +78933,7 @@ toughness=1 name=Necropotence abilities=mygraveexiler auto=phasealter(remove,draw,controller) -auto={L:1}:name(pay life & exile) transforms((,newability[hiddenmoveto(exile)],newability[phaseaction[my endofturn once checkex] moveto(ownerhand)])) forever all(*[zpos=1]|mylibrary) +auto={L:1}:name(pay life & exile) transforms((,newability[hiddenmoveto(exile)],newability[phaseaction[my end once checkex] moveto(ownerhand)])) forever all(*[zpos=1]|mylibrary) text=Skip your draw step. -- Whenever you discard a card, exile that card from your graveyard. -- Pay 1 life: Exile the top card of your library face down. Put that card into your hand at the beginning of your next end step. mana={B}{B}{B} type=Enchantment @@ -80073,7 +80073,7 @@ toughness=2 [/card] [card] name=Nim Abomination -auto=@each my endofturn sourcenottap:life:-3 controller +auto=@each my end sourcenottap:life:-3 controller text=At the beginning of your end step, if Nim Abomination is untapped, you lose 3 life. mana={2}{B} type=Creature @@ -80705,8 +80705,8 @@ toughness=0 [/card] [card] name=Norin the Wary -auto=@movedTo(*|stack):transforms((,newability[moveto(exile)],newability[phaseactionmulti[endofturn] moveto(ownerbattlefield)])) -auto=@combat(attacking) source(creature):transforms((,newability[moveto(exile)],newability[phaseactionmulti[endofturn] moveto(ownerbattlefield)])) +auto=@movedTo(*|stack):transforms((,newability[moveto(exile)],newability[phaseactionmulti[end] moveto(ownerbattlefield)])) +auto=@combat(attacking) source(creature):transforms((,newability[moveto(exile)],newability[phaseactionmulti[end] moveto(ownerbattlefield)])) text=When a player casts a spell or a creature attacks, exile Norin the Wary. Return it to the battlefield under its owner's control at the beginning of the next end step. mana={R} type=Legendary Creature @@ -81332,7 +81332,7 @@ type=Legendary Enchantment [card] name=Oath of Chandra auto=damage:3 target(creature|opponentbattlefield) -auto=@each endofturn restriction{thisturn(planeswalker|mybattlefield)~morethan~0}:damage:2 opponent +auto=@each end restriction{thisturn(planeswalker|mybattlefield)~morethan~0}:damage:2 opponent text=When Oath of Chandra enters, it deals 3 damage to target creature an opponent controls. -- At the beginning of each end step, if a planeswalker entered the battlefield under your control this turn, Oath of Chandra deals 2 damage to each opponent. mana={1}{R} type=Legendary Enchantment @@ -81373,7 +81373,7 @@ type=Enchantment [card] name=Oath of Liliana auto=ability$!name(sacrifice) notatarget(creature|mybattlefield) sacrifice !$ opponent -auto=@each endofturn:if type(planeswalker[fresh]|mybattlefield)~morethan~0 then _ZOMBIETOKEN_ +auto=@each end:if type(planeswalker[fresh]|mybattlefield)~morethan~0 then _ZOMBIETOKEN_ text=When Oath of Liliana enters, each opponent sacrifices a creature. -- At the beginning of each end step, if a planeswalker entered the battlefield under your control this turn, put a 2/2 black Zombie creature token onto the battlefield. mana={2}{B} type=Legendary Enchantment @@ -85588,7 +85588,7 @@ toughness=3 [/card] [card] name=Pestilence -auto=@each endofturn restriction{type(creature|battlefield)~lessthan~1}:sacrifice +auto=@each end restriction{type(creature|battlefield)~lessthan~1}:sacrifice auto={B}:damage:1 all(creature) && damage:1 all(player) text=At the beginning of the end step, if no creatures are on the battlefield, sacrifice Pestilence. -- {B}: Pestilence deals 1 damage to each creature and each player. mana={2}{B}{B} @@ -86266,7 +86266,7 @@ toughness=1 [card] name=Phyrexian Etchings auto=cumulativeupcost[{B}] sacrifice -auto=@each my endofturn:draw:counter{0%0.1.Age} controller +auto=@each my end:draw:counter{0%0.1.Age} controller auto=_DIES_life:-counter{0%0.1.Age} controller && life:-counter{0%0.1.Age} controller text=Cumulative upkeep {B} (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.) -- At the beginning of your end step, draw a card for each age counter on Phyrexian Etchings. -- When Phyrexian Etchings is put into a graveyard from the battlefield, you lose 2 life for each age counter on it. mana={B}{B}{B} @@ -87332,7 +87332,7 @@ type=Artifact [/card] [card] name=Planar Guide -auto={3}{W}{E}:all(creature) transforms((,newability[moveto(exile)],newability[if cantargetcard(*[-token]|*) then phaseactionmulti[endofturn once] moveto(ownerbattlefield)])) +auto={3}{W}{E}:all(creature) transforms((,newability[moveto(exile)],newability[if cantargetcard(*[-token]|*) then phaseactionmulti[end once] moveto(ownerbattlefield)])) text={3}{W}, Exile Planar Guide: Exile all creatures. At the beginning of the next end step, return those cards to the battlefield under their owners' control. mana={W} type=Creature @@ -88157,7 +88157,7 @@ type=Instant [/card] [card] name=Predatory Advantage -auto=@each opponent endofturn restriction{thisturn(creature|opponentstack)~lessthan~1}:token(Lizard,Creature Lizard,2/2,green) controller +auto=@each opponent end restriction{thisturn(creature|opponentstack)~lessthan~1}:token(Lizard,Creature Lizard,2/2,green) controller text=At the beginning of each opponent's end step, if that player didn't cast a creature spell this turn, put a 2/2 green Lizard creature token onto the battlefield. mana={3}{R}{G} type=Enchantment @@ -88980,8 +88980,8 @@ type=Enchantment [/card] [card] name=Prized Amalgam -autograveyard=@movedto(other creature|mybattlefield) from(mygraveyard) once:phaseactionmulti[endofturn once] moveto(mybattlefield) && tap(noevent) -autograveyard=@movedto(other creature|mystack) from(mygraveyard) once:phaseactionmulti[endofturn once] moveto(mybattlefield) && tap(noevent) +autograveyard=@movedto(other creature|mybattlefield) from(mygraveyard) once:phaseactionmulti[end once] moveto(mybattlefield) && tap(noevent) +autograveyard=@movedto(other creature|mystack) from(mygraveyard) once:phaseactionmulti[end once] moveto(mybattlefield) && tap(noevent) text=Whenever a creature enters, if it entered from your graveyard or you cast it from your graveyard, return Prized Amalgam from your graveyard to the battlefield tapped at the beginning of the next end step. mana={1}{U}{B} type=Creature @@ -89274,7 +89274,7 @@ toughness=5 name=Protean Hydra abilities=hydra auto=counter(1/1,X) -auto=@counterremoved(1/1) from(this):phaseaction[next,once,endofturn] counter(1/1,2) all(this) +auto=@counterremoved(1/1) from(this):phaseaction[next,once,end] counter(1/1,2) all(this) text=Protean Hydra enters with X +1/+1 counters on it. -- If damage would be dealt to Protean Hydra, prevent that damage and remove that many +1/+1 counters from it. -- Whenever a +1/+1 counter is removed from Protean Hydra, put two +1/+1 counters on it at the beginning of the next end step. mana={X}{G} type=Creature @@ -89523,8 +89523,8 @@ subtype=Aura [card] name=Psychic Vortex auto=@each my upkeep:counter(0/0,1,Age) && all(this) transforms((,newability[choice draw:counter{0%0.1.Age} controller],newability[choice sacrifice])) -auto=@each my endofturn:sacrifice notatarget(land|myBattlefield) -auto=@each my endofturn:reject all(*|myhand) +auto=@each my end:sacrifice notatarget(land|myBattlefield) +auto=@each my end:reject all(*|myhand) text=Cumulative upkeep - Draw 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.) -- At the beginning of your end step, sacrifice a land and discard your hand. mana={2}{U}{U} type=Enchantment @@ -89591,7 +89591,7 @@ type=Instant [/card] [card] name=Puffer Extract -auto={X}{T}:X/X target(creature|mybattlefield) && transforms((,newability[phaseaction[endofturn once] destroy])) ueot +auto={X}{T}:X/X target(creature|mybattlefield) && transforms((,newability[phaseaction[end once] destroy])) ueot text={X}, {T}: Target creature you control gets +X/+X until end of turn. Destroy it at the beginning of the next end step. mana={5} type=Artifact @@ -89782,7 +89782,7 @@ type=Artifact [card] name=Puppeteer Clique abilities=flying,persist -auto=moveto(mybattlefield) and!(transforms((,haste,newability[@my next endofturn:moveTo(exile)])) forever)! target(creature|opponentgraveyard) +auto=moveto(mybattlefield) and!(transforms((,haste,newability[@my next end:moveTo(exile)])) forever)! target(creature|opponentgraveyard) text=Flying -- When Puppeteer Clique enters, put target creature card in an opponent's graveyard onto the battlefield under your control. It has haste. At the beginning of your next end step, exile it. -- Persist (When this creature dies, if it had no -1/-1 counters on it, return it to the battlefield under its owner's control with a -1/-1 counter on it.) mana={3}{B}{B} type=Creature @@ -90243,7 +90243,7 @@ type=Enchantment [card] name=Pyrohemia auto={R}:damage:1 all(creature) && damage:1 all(player) -auto=@each endofturn restriction{type(creature|battlefield)~lessthan~1}:sacrifice +auto=@each end restriction{type(creature|battlefield)~lessthan~1}:sacrifice text=At the beginning of the end step, if no creatures are on the battlefield, sacrifice Pyrohemia. -- {R}: Pyrohemia deals 1 damage to each creature and each player. mana={2}{R}{R} type=Enchantment @@ -90469,7 +90469,7 @@ type=Enchantment name=Quest for Ula's Temple aicode=activate moveto(mylibrary) and!(moveto(mylibrary))! target(creature[zpos=1]|mylibrary) auto=@each my upkeep:reveal:1 optionone if type(creature|reveal)~morethan~0 then all(this) counter(0/0,1,quest) optiononeend optiontwo name(Put Back On Top) target(<1>*|reveal) moveto(mylibrary) optiontwoend revealend -auto=@each my endofturn restriction{compare(hascntQuest)~morethan~2}:may moveto(mybattlefield) target(Kraken,Leviathan,Octopus,Serpent|myhand) +auto=@each my end restriction{compare(hascntQuest)~morethan~2}:may moveto(mybattlefield) target(Kraken,Leviathan,Octopus,Serpent|myhand) text=At the beginning of your upkeep, you may look at the top card of your library. If it's a creature card, you may reveal it and put a quest counter on Quest for Ula's Temple. -- At the beginning of each end step, if there are three or more quest counters on Quest for Ula's Temple, you may put a Kraken, Leviathan, Octopus, or Serpent creature card from your hand onto the battlefield. mana={U} type=Enchantment @@ -91335,7 +91335,7 @@ auto={T}:Add{W} auto={T}:Add{U} auto={T}:Add{B} auto={T}:Add{R} -auto=@tappedformana(this):phaseaction[endofturn once,sourceinplay] moveTo(opponentbattlefield) +auto=@tappedformana(this):phaseaction[end once,sourceinplay] moveTo(opponentbattlefield) text={T}: Add one mana of any color. An opponent gains control of Rainbow Vale at the beginning of the next end step. type=Land [/card] @@ -91386,7 +91386,7 @@ type=Enchantment [/card] [card] name=Rakalite -auto={2}:prevent:1 target(anytarget) && all(this) transforms((,newability[@next endofturn:moveTo(ownerhand)])) +auto={2}:prevent:1 target(anytarget) && all(this) transforms((,newability[@next end:moveTo(ownerhand)])) text={2}: Prevent the next 1 damage that would be dealt to any target this turn. Return Rakalite to its owner's hand at the beginning of the next end step. mana={6} type=Artifact @@ -92452,7 +92452,7 @@ toughness=3 [card] name=Ray of Command target=creature|opponentBattlefield -auto=moveto(mybattlefield) and!( transforms((,newability[phaseactionmulti[endofturn once sourceinplay] moveTo(previousbattlefield) && tap],newability[untap],haste)) ueot )! +auto=moveto(mybattlefield) and!( transforms((,newability[phaseactionmulti[end once sourceinplay] moveTo(previousbattlefield) && tap],newability[untap],haste)) ueot )! text=Untap target creature an opponent controls and gain control of it until end of turn. That creature gains haste until end of turn. When you lose control of the creature, tap it. mana={3}{U} type=Instant @@ -96305,7 +96305,7 @@ toughness=7 [/card] [card] name=Rocket Launcher -auto=@each my beginofturn:all(this) transforms((,newability[{2}:damage:1 target(anytarget) && all(this) phaseaction[endofturn sourceinplay] destroy])) forever +auto=@each my beginofturn:all(this) transforms((,newability[{2}:damage:1 target(anytarget) && all(this) phaseaction[end sourceinplay] destroy])) forever text={2}: Rocket Launcher deals 1 damage to any target. Destroy Rocket Launcher at the beginning of the next end step. Activate this ability only if you've controlled Rocket Launcher continuously since the beginning of your most recent turn. mana={4} type=Artifact @@ -96638,7 +96638,7 @@ type=Enchantment [card] name=Roon of the Hidden Realm abilities=vigilance,trample -auto={2}{T}:name(exile) target(other creature) transforms((,newability[moveto(exile)],newability[phaseaction[endofturn once checkex] moveto(ownerbattlefield)])) forever +auto={2}{T}:name(exile) target(other creature) transforms((,newability[moveto(exile)],newability[phaseaction[end once checkex] moveto(ownerbattlefield)])) forever text=Vigilance, trample -- {2}, {T}: Exile another target creature. Return that card to the battlefield under its owner's control at the beginning of the next end step. mana={2}{G}{W}{U} type=Legendary Creature @@ -97334,7 +97334,7 @@ type=Land [/card] [card] name=Rukh Egg -auto=_DIES_phaseaction[endofturn once] token(Bird,Creature Bird,4/4,red,flying) +auto=_DIES_phaseaction[end once] token(Bird,Creature Bird,4/4,red,flying) text=When Rukh Egg dies, put a 4/4 red Bird creature token with flying onto the battlefield at the beginning of the next end step. mana={3}{R} type=Creature @@ -98525,7 +98525,7 @@ toughness=2 [/card] [card] name=Saltskitter -auto=@movedTo(other creature|battlefield):transforms((,newability[moveto(exile)],newability[phaseactionmulti[endofturn] moveto(ownerbattlefield)])) +auto=@movedTo(other creature|battlefield):transforms((,newability[moveto(exile)],newability[phaseactionmulti[end] moveto(ownerbattlefield)])) text=Whenever another creature enters, exile Saltskitter. Return Saltskitter to the battlefield under its owner's control at the beginning of the next end step. mana={3}{W} type=Creature @@ -98763,7 +98763,7 @@ toughness=6 [/card] [card] name=Sand Golem -autograveyard=while(restriction{discardbyopponent}) moveto(ownerbattlefield) and!( transforms((,newability[phaseaction[endofturn once sourceinplay] counter(1/1) all(this)])) forever)! +autograveyard=while(restriction{discardbyopponent}) moveto(ownerbattlefield) and!( transforms((,newability[phaseaction[end once sourceinplay] counter(1/1) all(this)])) forever)! text=When a spell or ability an opponent controls causes you to discard Sand Golem, return Sand Golem from your graveyard to the battlefield with a +1/+1 counter on it at the beginning of the next end step. mana={5} type=Artifact Creature @@ -99985,7 +99985,7 @@ toughness=1 [/card] [card] name=Scavenging Ghoul -auto=@each endofturn:counter(0/0,type:creature[fresh]:graveyard,Corpse) +auto=@each end:counter(0/0,type:creature[fresh]:graveyard,Corpse) auto={C(0/0,-1,Corpse)}:regenerate text=At the beginning of each end step, put a corpse counter on Scavenging Ghoul for each creature put into a graveyard from the battlefield this turn. -- Remove a corpse counter from Scavenging Ghoul: Regenerate Scavenging Ghoul. mana={3}{B} @@ -101453,10 +101453,10 @@ type=Land [card] name=Season of the Witch auto=upcost[{L:2}] sacrifice -auto=@each my combatends:all(creature[-fresh;-attacking;-defender;-cantattack;-tapped]|mybattlefield) phaseaction[endofturn once] destroy -auto=@each my combatends:all(creature[fresh;haste;-attacking;-defender;-cantattack;-tapped]|mybattlefield) phaseaction[endofturn once] destroy -auto=@each opponent combatends:all(creature[-fresh;-attacking;-defender;-cantattack]|opponentbattlefield) phaseaction[endofturn once] destroy -auto=@each opponent combatends:all(creature[fresh;haste;-attacking;-defender;-cantattack]|opponentbattlefield) phaseaction[endofturn once] destroy +auto=@each my combatends:all(creature[-fresh;-attacking;-defender;-cantattack;-tapped]|mybattlefield) phaseaction[end once] destroy +auto=@each my combatends:all(creature[fresh;haste;-attacking;-defender;-cantattack;-tapped]|mybattlefield) phaseaction[end once] destroy +auto=@each opponent combatends:all(creature[-fresh;-attacking;-defender;-cantattack]|opponentbattlefield) phaseaction[end once] destroy +auto=@each opponent combatends:all(creature[fresh;haste;-attacking;-defender;-cantattack]|opponentbattlefield) phaseaction[end once] destroy text=At the beginning of your upkeep, sacrifice Season of the Witch unless you pay 2 life. -- At the beginning of the end step, destroy all untapped creatures that didn't attack this turn, except for creatures that couldn't attack. mana={B}{B}{B} type=Enchantment @@ -106209,7 +106209,7 @@ toughness=7 [/card] [card] name=Sire of Insanity -auto=@each endofturn:reject all(*|hand) +auto=@each end:reject all(*|hand) text=At the beginning of each end step, each player discards their hand. mana={4}{R}{B} type=Creature @@ -110848,8 +110848,8 @@ toughness=6 [card] name=Sphinx Sovereign abilities=flying -auto=@each my endofturn sourcenottap:life:3 controller -auto=@each my endofturn sourcetap:life:-3 opponent +auto=@each my end sourcenottap:life:3 controller +auto=@each my end sourcetap:life:-3 opponent text=Flying -- At the beginning of your end step, you gain 3 life if Sphinx Sovereign is untapped. Otherwise, each opponent loses 3 life. mana={4}{W}{U}{U}{B} type=Artifact Creature @@ -111193,8 +111193,8 @@ type=Instant name=Spinal Embrace target=creature|opponentbattlefield restriction=during battle -auto=moveto(mybattlefield) and!(transforms((,newability[phaseactionmulti[endofturn sourceinplay] sacrifice && life:toughness],newability[untap],haste)) ueot)! -auto=transforms((,newability[phaseactionmulti[endofturn once] sacrifice && life:toughness controller])) +auto=moveto(mybattlefield) and!(transforms((,newability[phaseactionmulti[end sourceinplay] sacrifice && life:toughness],newability[untap],haste)) ueot)! +auto=transforms((,newability[phaseactionmulti[end once] sacrifice && life:toughness controller])) text=Cast Spinal Embrace only during combat. -- Untap target creature you don't control and gain control of it. It gains haste until end of turn. At the beginning of the next end step, sacrifice it. If you do, you gain life equal to its toughness. mana={3}{U}{U}{B} type=Instant @@ -113282,7 +113282,7 @@ type=Instant [card] name=Stenchskipper abilities=flying -auto=@each endofturn restriction{type(goblin|myBattlefield)~lessthan~1}:sacrifice +auto=@each end restriction{type(goblin|myBattlefield)~lessthan~1}:sacrifice text=Flying -- At the beginning of the end step, if you control no Goblins, sacrifice Stenchskipper. mana={3}{B} type=Creature @@ -113739,7 +113739,7 @@ toughness=2 [card] name=Stone Idol Trap abilities=affinityattackingcreatures -auto=token(Construct,Artifact Creature Construct,6/12,trample) and!( transforms((,newability[@next endofturn:moveTo(exile)])) forever )! +auto=token(Construct,Artifact Creature Construct,6/12,trample) and!( transforms((,newability[@next end:moveTo(exile)])) forever )! text=Stone Idol Trap costs {1} less to cast for each attacking creature. -- Put a 6/12 colorless Construct artifact creature token with trample onto the battlefield. Exile it at the beginning of your next end step. mana={5}{R} type=Instant @@ -113924,8 +113924,8 @@ toughness=1 [/card] [card] name=Stoneshaker Shaman -auto=@each opponent endofturn:ability$!name(sacrifice untapped land) notatarget(land[-tapped]|mybattlefield) sacrifice!$ opponent -auto=@each my endofturn:notatarget(land[-tapped]|mybattlefield) sacrifice +auto=@each opponent end:ability$!name(sacrifice untapped land) notatarget(land[-tapped]|mybattlefield) sacrifice!$ opponent +auto=@each my end:notatarget(land[-tapped]|mybattlefield) sacrifice text=At the beginning of each player's end step, that player sacrifices an untapped land. mana={2}{R} type=Creature @@ -116153,7 +116153,7 @@ toughness=1 name=Surprise Deployment target=creature[-white]|myhand auto=moveTo(mybattlefield) -auto=transforms((,newability[phaseaction[endofturn once] moveTo(ownerhand)])) +auto=transforms((,newability[phaseaction[end once] moveTo(ownerhand)])) restriction=during battle text=Cast Surprise Deployment only during combat. -- You may put a nonwhite creature card from your hand onto the battlefield. At the beginning of the next end step, return that creature to your hand. (Return it only if it's on the battlefield.) mana={3}{W} @@ -116828,7 +116828,7 @@ toughness=2 [/card] [card] name=Sygg, River Cutthroat -auto=@each endofturn foelost(3):may draw:1 controller +auto=@each end foelost(3):may draw:1 controller text=At the beginning of each end step, if an opponent lost 3 or more life this turn, you may draw a card. (Damage causes loss of life.) mana={UB}{UB} type=Legendary Creature @@ -119492,8 +119492,8 @@ subtype=Aura [card] name=Thada Adel, Acquisitor abilities=islandwalk -aicode=activate notatarget(artifact|opponentlibrary) moveto(myexile) and!( transforms((,canplayfromexile,newability[phaseactionmulti[endofturn once] moveto(ownerexile) all(this|exile)])) ueot)! -auto=@combatdamaged(player) from(this):name(exile artifact) Reveal:olibrarycount revealzone(opponentlibrary) optionone name(choose card) target(<1>artifact|reveal) moveto(myexile) and!( transforms((,canplayfromexile,newability[phaseactionmulti[endofturn once] moveto(ownerexile) all(this|exile)],newability[all(other *|reveal) moveto(ownerlibrary) and!(shuffle)!])) ueot)! optiononeend optiontwo name(shuffle) bottomoflibrary target(<1>*|reveal) and!( all(*|reveal) bottomoflibrary and!(shuffle)! )! optiontwoend revealend +aicode=activate notatarget(artifact|opponentlibrary) moveto(myexile) and!( transforms((,canplayfromexile,newability[phaseactionmulti[end once] moveto(ownerexile) all(this|exile)])) ueot)! +auto=@combatdamaged(player) from(this):name(exile artifact) Reveal:olibrarycount revealzone(opponentlibrary) optionone name(choose card) target(<1>artifact|reveal) moveto(myexile) and!( transforms((,canplayfromexile,newability[phaseactionmulti[end once] moveto(ownerexile) all(this|exile)],newability[all(other *|reveal) moveto(ownerlibrary) and!(shuffle)!])) ueot)! optiononeend optiontwo name(shuffle) bottomoflibrary target(<1>*|reveal) and!( all(*|reveal) bottomoflibrary and!(shuffle)! )! optiontwoend revealend text=Islandwalk -- Whenever Thada Adel, Acquisitor deals combat damage to a player, search that player's library for an artifact card and exile it. Then that player shuffles their library. Until end of turn, you may play that card. mana={1}{U}{U} type=Legendary Creature @@ -120786,7 +120786,7 @@ auto={T}:add{U} auto={T}:add{B} auto={T}:add{R} auto={T}:add{G} -auto=@each endofturn restriction{type(creature|myBattlefield)~lessthan~1}:sacrifice +auto=@each end restriction{type(creature|myBattlefield)~lessthan~1}:sacrifice text=At the beginning of the end step, if you control no creatures, sacrifice Thran Quarry. -- {T}: Add one mana of any color. type=Land [/card] @@ -122726,7 +122726,7 @@ type=Instant [card] name=Torture Chamber auto=@each my upkeep:counter(0/0,1,Pain) -auto=@each my endofturn:thisforeach(counter{0/0.1.Pain}) damage:1 controller +auto=@each my end:thisforeach(counter{0/0.1.Pain}) damage:1 controller auto={T}{C(0/0,-1,Pain)}:damage:1 target(creature) auto={T}{C(0/0,-2,Pain)}:damage:2 target(creature) auto={T}{C(0/0,-3,Pain)}:damage:3 target(creature) @@ -123441,7 +123441,7 @@ type=Land [/card] [card] name=Transluminant -auto={W}{S}:phaseaction[endofturn once] token(Spirit,creature spirit, 1/1,flying white) +auto={W}{S}:phaseaction[end once] token(Spirit,creature spirit, 1/1,flying white) text={W}, Sacrifice Transluminant: Put a 1/1 white Spirit creature token with flying onto the battlefield at the beginning of the next end step. mana={1}{G} type=Creature @@ -123619,8 +123619,8 @@ type=Sorcery [card] name=Treacherous Urge target=opponent -aicode=activate notatarget(creature|targetedpersonshand) moveto(mybattlefield) and!( transforms((,newability[phaseaction[endofturn] sacrifice all(this)],newability[haste all(this)])) ueot )! -auto=Reveal:type:*:targetedpersonshand revealzone(targetedpersonshand) revealtype(*|targetedpersonshand) optionone name(Get Creature) notatarget(creature|reveal) transforms((,newability[moveto(opponentbattlefield)],newability[phaseaction[endofturn] sacrifice all(this)],newability[haste all(this)])) ueot optiononeend optiontwo name(Put Back) target(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend +aicode=activate notatarget(creature|targetedpersonshand) moveto(mybattlefield) and!( transforms((,newability[phaseaction[end] sacrifice all(this)],newability[haste all(this)])) ueot )! +auto=Reveal:type:*:targetedpersonshand revealzone(targetedpersonshand) revealtype(*|targetedpersonshand) optionone name(Get Creature) notatarget(creature|reveal) transforms((,newability[moveto(opponentbattlefield)],newability[phaseaction[end] sacrifice all(this)],newability[haste all(this)])) ueot optiononeend optiontwo name(Put Back) target(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend text=Target opponent reveals their hand. You may put a creature card from it onto the battlefield under your control. That creature gains haste. Sacrifice it at the beginning of the next end step. mana={4}{B} type=Instant @@ -128590,7 +128590,7 @@ toughness=1 [card] name=Viashino Cutthroat abilities=haste -auto=@each endofturn:moveTo(ownerhand) +auto=@each end:moveTo(ownerhand) text=Haste -- At the beginning of the end step, return Viashino Cutthroat to its owner's hand. mana={2}{R}{R} type=Creature @@ -128672,7 +128672,7 @@ toughness=2 [card] name=Viashino Sandscout abilities=haste -auto=@each endofturn:moveTo(ownerhand) +auto=@each end:moveTo(ownerhand) text=Haste (This creature can attack and {T} as soon as it comes under your control.) -- At the beginning of the end step, return Viashino Sandscout to its owner's hand. (Return it only if it's on the battlefield.) mana={1}{R} type=Creature @@ -128683,7 +128683,7 @@ toughness=1 [card] name=Viashino Sandstalker abilities=haste -auto=@each endofturn:moveTo(ownerhand) +auto=@each end:moveTo(ownerhand) text=Haste (This creature can attack the turn it comes under your control.) -- At the beginning of the end step, return Viashino Sandstalker to its owner's hand. (Return it only if it's on the battlefield.) mana={1}{R}{R} type=Creature @@ -130403,7 +130403,7 @@ toughness=2 [card] name=Voodoo Doll auto=@each my upkeep:counter(0/0,1,Pin) -auto=this(counter{0/0.1.Pin}>0) transforms((,newability[@each my endofturn sourcenottap:damage:counter{0%0.1.Pin} controller && destroy all(this)])) +auto=this(counter{0/0.1.Pin}>0) transforms((,newability[@each my end sourcenottap:damage:counter{0%0.1.Pin} controller && destroy all(this)])) auto=this(counter{0/0.1.Pin}<1) {0}{T}:damage:0 target(anytarget) auto=this(counter{0/0.1.Pin}=) {2}{T}:damage:1 target(anytarget) auto=this(counter{0/0.2.Pin}=) {4}{T}:damage:2 target(anytarget) @@ -131376,7 +131376,7 @@ toughness=6 [card] name=Wall of Reverence abilities=defender,flying -auto=@each my endofturn:may target(creature|myBattlefield) dynamicability +auto=@each my end:may target(creature|myBattlefield) dynamicability text=Defender, flying -- At the beginning of your end step, you may gain life equal to the power of target creature you control. mana={3}{W} type=Creature @@ -132191,7 +132191,7 @@ type=Instant [card] name=Warrior's Oath auto=turns:+1 controller -auto=transforms((,newability[@each my upkeep:phaseaction[endofturn once] winGame opponent])) forever +auto=transforms((,newability[@each my upkeep:phaseaction[end once] winGame opponent])) forever text=Take an extra turn after this one. At the beginning of that turn's end step, you lose the game. mana={R}{R} type=Sorcery @@ -133071,7 +133071,7 @@ toughness=1 [/card] [card] name=Well of Discovery -auto=@each my endofturn restriction{type(land[-tapped]|myBattlefield)~lessthan~1}:draw:1 +auto=@each my end restriction{type(land[-tapped]|myBattlefield)~lessthan~1}:draw:1 text=At the beginning of your end step, if you control no untapped lands, draw a card. mana={6} type=Artifact @@ -133087,7 +133087,7 @@ type=Enchantment [/card] [card] name=Well of Life -auto=@each my endofturn restriction{type(land[-tapped]|myBattlefield)~lessthan~1}:life:2 <1 +auto=@each my end restriction{type(land[-tapped]|myBattlefield)~lessthan~1}:life:2 <1 text=At the beginning of your end step, if you control no untapped lands, you gain 2 life. mana={4} type=Artifact @@ -133194,7 +133194,7 @@ type=Land name=Westvale Cult Leader backside=Hanweir Militia Captain anyzone=type:creature:mybattlefield/type:creature:mybattlefield cdaactive -auto=@each my endofturn:token(Human Cleric,Creature Human Cleric,1/1,white,black) +auto=@each my end:token(Human Cleric,Creature Human Cleric,1/1,white,black) text=Westvale Cult Leader's power and toughness are each equal to the number of creatures you control. -- At the beginning of your end step, put a 1/1 white and black Human Cleric creature token onto the battlefield. // Hanweir Militia Captain type=Creature subtype=Human Cleric @@ -133452,7 +133452,7 @@ type=Artifact [card] name=Whirling Dervish abilities=protection from black -auto=@damagefoeof(player) from(this):all(trigger[from]) phaseaction[endofturn once] counter(1/1) +auto=@damagefoeof(player) from(this):all(trigger[from]) phaseaction[end once] counter(1/1) text=Protection from black -- At the beginning of each end step, if Whirling Dervish dealt damage to an opponent this turn, put a +1/+1 counter on it. mana={G}{G} type=Creature @@ -135030,7 +135030,7 @@ subtype=Aura [card] name=Withering Wisps auto={B}:damage:1 all(creature) && damage:1 all(player) limit:type:swamp[snow]:mybattlefield -auto=@each endofturn restriction{type(creature|battlefield)~lessthan~1}:sacrifice +auto=@each end restriction{type(creature|battlefield)~lessthan~1}:sacrifice text=At the beginning of the end step, if no creatures are on the battlefield, sacrifice Withering Wisps. -- {B}: Withering Wisps deals 1 damage to each creature and each player. Activate this ability no more times each turn than the number of snow Swamps you control. mana={1}{B}{B} type=Enchantment @@ -135892,7 +135892,7 @@ type=Instant [/card] [card] name=Wound Reflection -auto=@each endofturn:life:-oplifelost opponent +auto=@each end:life:-oplifelost opponent text=At the beginning of each end step, each opponent loses life equal to the life they lost this turn. (Damage causes loss of life.) mana={5}{B} type=Enchantment @@ -136907,7 +136907,7 @@ toughness=4 [card] name=Zealous Conscripts abilities=haste -auto=name(gain control) target(*) moveto(mybattlefield) and!(transforms((,newability[untap],haste,newability[phaseaction[endofturn sourceinplay once] moveTo(ownerbattlefield)])) oneshot)! +auto=name(gain control) target(*) moveto(mybattlefield) and!(transforms((,newability[untap],haste,newability[phaseaction[end sourceinplay once] moveTo(ownerbattlefield)])) oneshot)! text=Haste -- When Zealous Conscripts enters, gain control of target permanent until end of turn. Untap that permanent. It gains haste until end of turn. mana={4}{R} type=Creature diff --git a/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt b/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt index 9eaf8416f..40fc90621 100644 --- a/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt +++ b/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt @@ -85,7 +85,7 @@ name=Ajani, Adversary of Tyrants auto=counter(0/0,4,loyalty) auto={C(0/0,+1,Loyalty)}:name(+1: Put a +1/+1 counter on up to two...) target(other creature|battlefield) counter(1/1) auto={C(0/0,-2,Loyalty)}:name(-2: Return target creature from graveyard) moveTo(mybattlefield) target(creature[manacost<=2]|mygraveyard) -auto={C(0/0,-7,Loyalty)}:name(-7: Emblem: Create three tokens) emblem transforms((,newability[@each my endofturn:create(Cat:Creature Cat:1/1:lifelink:white)*3] )) forever dontremove +auto={C(0/0,-7,Loyalty)}:name(-7: Emblem: Create three tokens) emblem transforms((,newability[@each my end:create(Cat:Creature Cat:1/1:lifelink:white)*3] )) forever dontremove text=+1: Put a +1/+1 counter on each of up to two target creatures. -- -2: Return target creature card with mana value 2 or less from your graveyard to the battlefield. -- -7: You get an emblem with "At the beginning of your end step, create three 1/1 white Cat creature tokens with lifelink." mana={2}{W}{W} type=Legendary Planeswalker @@ -643,7 +643,7 @@ auto={C(0/0,0,Loyalty)}:name(+0: Remove 7 loyalty) name(+0: Remove 7 loyalty) ta auto={C(0/0,0,Loyalty)}:name(+0: Remove 8 loyalty) name(+0: Remove 8 loyalty) target(<8>*[counter{0/0.1.Loyalty}]|mybattlefield) counter(0/0.-1.Loyalty) && all(*[zpos<=8]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile ueot])) ueot )! auto={C(0/0,0,Loyalty)}:name(+0: Remove 9 loyalty) name(+0: Remove 9 loyalty) target(<9>*[counter{0/0.1.Loyalty}]|mybattlefield) counter(0/0.-1.Loyalty) && all(*[zpos<=9]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile ueot])) ueot )! auto={C(0/0,0,Loyalty)}:name(+0: Remove 10 loyalty) name(+0: Remove 10 loyalty) target(<10>*[counter{0/0.1.Loyalty}]|mybattlefield) counter(0/0.-1.Loyalty) && all(*[zpos<=10]|mylibrary) moveto(myexile) and!( transforms((,newability[canplayfromexile ueot])) ueot )! -auto=@each my endofturn:name(Deal damage) foreach(planeswalker|mybattlefield) damage:1 opponent +auto=@each my end:name(Deal damage) foreach(planeswalker|mybattlefield) damage:1 opponent text=At the beginning of your end step, Chandra, Legacy of Fire deals X damage to each opponent, where X is the number of planeswalkers you control. -- [+1]: Add {R} for each planeswalker you control. -- [0]: Remove a loyalty counter from each of any number of permanents you control. Exile that many cards from the top of your library. You may play them this turn. mana={4}{R} type=Legendary Planeswalker @@ -702,8 +702,8 @@ name=Chandra, Torch of Defiance auto=counter(0/0,4,loyalty) auto={C(0/0,1,Loyalty)}:name(+1: Exile Top Card) all(*[zpos=1]|mylibrary) moveto(myexile) and!( transforms((,newability[choice name(Deals 2 damage) name(Deals 2 damage) damage:2 opponent],newability[if cantargetcard(*[-land]|*) then choice name(Cast card from exile) name(Cast card from exile) counter(0/0.1.ChandraEffect) notrg])) ueot )! auto=lord(*[counter{0/0.1.ChandraEffect}]|myexile) canplayfromexile -auto=@each endofturn:if type(*[counter{0/0.1.ChandraEffect}]|myexile)~morethan~0 then name(Effect ends) name(Effect ends) all(*[counter{0/0.1.ChandraEffect}]|myexile) removeallcounters(0/0.1.ChandraEffect) -auto=@each endofturn:if type(*[counter{0/0.1.ChandraEffect}]|myexile)~morethan~0 then name(Deals 2 damage) name(Deals 2 damage) damage:2 opponent +auto=@each end:if type(*[counter{0/0.1.ChandraEffect}]|myexile)~morethan~0 then name(Effect ends) name(Effect ends) all(*[counter{0/0.1.ChandraEffect}]|myexile) removeallcounters(0/0.1.ChandraEffect) +auto=@each end:if type(*[counter{0/0.1.ChandraEffect}]|myexile)~morethan~0 then name(Deals 2 damage) name(Deals 2 damage) damage:2 opponent auto={C(0/0,1,Loyalty)}:name(+1: Add two red mana) add{R}{R} auto={C(0/0,-3,Loyalty)}:name(-3: Deals 4 damage to target creature) damage:4 target(creature) auto={C(0/0,-7,Loyalty)}:name(-7: Emblem: Deals 5 damage when casting a spell) emblem transforms((,newability[@movedTo(*|mystack):damage:5 target(anytarget)])) forever dontremove @@ -729,7 +729,7 @@ abilities=canbecommander auto=counter(0/0,5,loyalty) auto={C(0/0,+1,Loyalty)}:name(+1: Create wizard) token(Wizard,Creature Wizard,1/1,red) and!( transforms((,newability[this(variable{type:planeswalker:myrestrictedcastingzone}>0) {T}:add{R}])) forever )! auto={C(0/0,-3,Loyalty)}:name(-3: Draw and damage) draw:type:planeswalker:mybattlefield controller && damage:type:planeswalker:mybattlefield opponent -auto=@each my endofturn:name(Put loyalty counter) target(other planeswalker|myBattlefield) counter(0/0,1,Loyalty) +auto=@each my end:name(Put loyalty counter) target(other planeswalker|myBattlefield) counter(0/0,1,Loyalty) text=At the beginning of your end step, put a loyalty counter on another target planeswalker you control. -- [+1]: Create a 1/1 red Wizard creature token with "{T}: Add {R}. Spend this mana only to cast a planeswalker spell." -- [-3]: You draw X cards and Commodore Guff deals X damage to each opponent, where X is the number of planeswalkers you control. -- Commodore Guff can be your commander. mana={1}{U}{R}{W} type=Legendary Planeswalker @@ -776,7 +776,7 @@ auto=counter(0/0,3,loyalty) auto={C(0/0,2,Loyalty)}:name(+2: Discard and Draw) reject notatarget(*|myhand) and!( draw:1 controller )! auto={C(0/0,2,Loyalty)}:name(+2: Don't discard) donothing auto={C(0/0,-2,Loyalty)}:name(-2: Sacrifice an Artifact) sacrifice notatarget(artifact|mybattlefield) and!( moveto(mybattlefield) target(artifact|mygraveyard) )! -auto={C(0/0,-10,Loyalty)}:name(-10: Emblem: "Reanimate artifacts") emblem transforms((,newability[@movedTo(artifact|mygraveyard) from(battlefield):all(trigger[to]) phaseaction[endofturn once] moveTo(mybattlefield)])) forever dontremove +auto={C(0/0,-10,Loyalty)}:name(-10: Emblem: "Reanimate artifacts") emblem transforms((,newability[@movedTo(artifact|mygraveyard) from(battlefield):all(trigger[to]) phaseaction[end once] moveTo(mybattlefield)])) forever dontremove text=+2: Discard up to two cards, then draw that many cards. -- -2: Sacrifice an artifact. If you do, return target artifact card from your graveyard to the battlefield. -- -10: You get an emblem with "Whenever an artifact is put into your graveyard from the battlefield, return that card to the battlefield at the beginning of the next end step." -- Daretti, Scrap Savant can be your commander. mana={3}{R} type=Legendary Planeswalker @@ -849,7 +849,7 @@ aicode=activate moveto(myHand) target(creature[zpos=2]|myLibrary) auto={C(0/0,1,Loyalty)}:name(+1: Add red if its a creature, Riot) add{R} && if type(creature|myStack)~morethan~0 then ability$!name(Choose one) choice name(Put a +1/1 counter) counter(1/1) target(creature[fresh]|myBattlefield) _ choice name(Gain Haste) haste target(creature[fresh]|myBattlefield)!$ controller auto={C(0/0,1,Loyalty)}:name(+1: Add green if its a creature, Riot) add{G} && if type(creature|myStack)~morethan~0 then ability$!name(Choose one) choice name(Put a +1/1 counter) counter(1/1) target(creature[fresh]|myBattlefield) _ choice name(Gain Haste) haste target(creature[fresh]|myBattlefield)!$ controller auto={C(0/0,-3,Loyalty)}:name(-3: Reveal four and put up to two creature) name(Look your Library) reveal:4 optionone name(Get a card) target(*[creature]|reveal) moveto(myhand) optiononeend optiontwo name(put on bottom) target(<4>*|reveal) bottomoflibrary optiontwoend revealend -auto={C(0/0,-8,Loyalty)}:name(-8: Emblem: "Each end of turn create a 4/4 Beast) emblem transforms((,newability[@each endofturn: create(Beast:Creature Beast:4/4:red:green:trample)])) forever dontremove +auto={C(0/0,-8,Loyalty)}:name(-8: Emblem: "Each end of turn create a 4/4 Beast) emblem transforms((,newability[@each end: create(Beast:Creature Beast:4/4:red:green:trample)])) forever dontremove text=+1: Add {R} or {G}. If that mana is spent on a creature spell, it gains riot. (It enters with your choice of a +1/+1 counter or haste.) -- -3: Look at the top four cards of your library. You may reveal up to two creature cards from among them and put them into your hand. Put the rest on the bottom of your library in a random order. -- -8: You get an emblem with "At the beginning of each end step, create a 4/4 red and green Beast creature token with trample." mana={2}{R}{G} type=Legendary Planeswalker @@ -1113,7 +1113,7 @@ name=Garruk, Unleashed auto=counter(0/0,4,loyalty) auto={C(0/0,1,Loyalty)}:name(+1: Target creature gets +3/+3 and trample) target(creature) 3/3 ueot && trample ueot auto={C(0/0,-2,Loyalty)}:name(-2: Create a Beast 3/3) _BEASTTOKEN_ && transforms((,newability[if type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield) then counter(0/0,1,Loyalty) all(this)])) oneshot -auto={C(0/0,-7,Loyalty)}:name(-7: Emblem: "Search a creature") emblem transforms((,newability[@each my endofturn:may target(creature|myLibrary) moveTo(myBattlefield) && shuffle])) forever dontremove +auto={C(0/0,-7,Loyalty)}:name(-7: Emblem: "Search a creature") emblem transforms((,newability[@each my end:may target(creature|myLibrary) moveTo(myBattlefield) && shuffle])) forever dontremove text=+1: Up to one target creature gets +3/+3 and gains trample until end of turn. -- -2: Create a 3/3 green Beast creature token. Then if an opponent controls more creatures than you, put a loyalty counter on Garruk, Unleashed. -- -7: You get an emblem with "At the beginning of your end step, you may search your library for a creature card, put it onto the battlefield, then shuffle." mana={2}{G}{G} type=Legendary Planeswalker @@ -1161,7 +1161,7 @@ auto=counter(0/0,4,loyalty) auto=protection from(*[-instant;-sorcery;counter{0/0.1.corruption}]) auto={C(0/0,1,Loyalty)}:name(+1: Gain 2 life) life:2 controller && life:-2 opponent auto={C(0/0,1,Loyalty)}:name(+1: Gain 2 life and put counter) target(*[creature;planeswalker]|battlefield) counter(0/0,1,corruption) && life:2 controller && life:-2 opponent -auto={C(0/0,-3,Loyalty)}:name(-3: Gain control of creature or planeswalker) target(*[creature;planeswalker]|battlefield) moveto(mybattlefield) and!(transforms((,newability[phaseaction[endofturn once sourceinplay] moveTo(previousbattlefield)],newability[counter(0/0.1.corruption)],newability[untap],haste)) ueot)! +auto={C(0/0,-3,Loyalty)}:name(-3: Gain control of creature or planeswalker) target(*[creature;planeswalker]|battlefield) moveto(mybattlefield) and!(transforms((,newability[phaseaction[end once sourceinplay] moveTo(previousbattlefield)],newability[counter(0/0.1.corruption)],newability[untap],haste)) ueot)! auto={C(0/0,-7,Loyalty)}:name(-7: Gain control of all corrupted) all(*[counter{0/0.1.corruption}]|battlefield) moveto(mybattlefield) text=Protection from permanents with corruption counters on them -- +1: Each opponent loses 2 life and you gain 2 life. Put a corruption counter on up to one other target creature or planeswalker. -- -3: Gain control of target creature or planeswalker until end of turn. Untap it and put a corruption counter on it. It gains haste until end of turn. -- -7: Gain control of each permanent with a corruption counter on it. mana={1}{U}{B}{R} @@ -1404,7 +1404,7 @@ subtype=Jace name=Jace, Cunning Castaway auto=counter(0/0,3,loyalty) auto=@combatdamaged(player) from(creature|mybattlefield) restriction{compare(hascntjaceeffect)~morethan~0} turnlimited:draw:1 controller && transforms((,newability[name(Discard a card) reject notatarget(*|myhand) ueot])) ueot -auto=@each endofturn restriction{compare(hascntjaceeffect)~morethan~0}:name(Effect Ends) removeallcounters(0/0.1.JaceEffect) +auto=@each end restriction{compare(hascntjaceeffect)~morethan~0}:name(Effect Ends) removeallcounters(0/0.1.JaceEffect) auto={C(0/0,1,Loyalty)}:name(+1: Draw on damage) counter(0/0.1.JaceEffect) notrg auto={C(0/0,-2,Loyalty)}:name(-2: Create Illusion) token(Illusion,Creature Illusion,2/2,blue) and!( transforms((,newability[@targeted(this) from(*|stack):name(Sacrifice) sacrifice])) forever )! auto={C(0/0,-5,Loyalty)}:name(-5: Create two copy) clone options(nolegend) && clone options(nolegend) @@ -1686,7 +1686,7 @@ subtype=Yanggu [card] name=Kaito Shizuki auto=counter(0/0,3,loyalty) -auto=transforms((,newability[@each my endofturn:name(Phaseout) phaseout])) ueot +auto=transforms((,newability[@each my end:name(Phaseout) phaseout])) ueot auto={C(0/0,+1,Loyalty)}:name(+1: Draw and discard) draw:1 && ifnot raid then name(Discard a card) name(Discard a card) ability$!name(Discard a card) name(Discard a card) notatarget(*|myhand) reject !$ controller auto={C(0/0,-2,Loyalty)}:name(-2: Create ninja) token(Ninja,Creature Ninja,1/1,blue,unblockable) auto={C(0/0,-7,Loyalty)}:name(-7: Emblem search creature) emblem transforms((,newability[@combatdamaged(player) from(creature|myBattlefield):name(Search creature) target(creature[black;blue]|mylibrary) moveto(mybattlefield) and!( shuffle )!])) forever dontremove @@ -1843,8 +1843,8 @@ subtype=Kaya [card] name=Kaya, Ghost Assassin auto=counter(0/0,5,loyalty) -auto={C(0/0,0,Loyalty)}:name(+0: Exile creature) target(creature|battlefield) moveto(exile) and!( life:-2 controller && transforms((,newability[phaseaction[endofturn once checkex] moveto(ownerbattlefield)])) forever )! -auto={C(0/0,0,Loyalty)}:name(+0: Exile kaya) moveto(exile) and!( life:-2 controller && counter(0/0,hascntloyalty,Loyalty) && transforms((,newability[@next endofturn:name(Return to battlefield) moveto(ownerbattlefield) and!( counter(0/0.hascntloyalty.Loyalty) notrg && counter(0/0.-5.Loyalty) notrg)! ])) forever )! +auto={C(0/0,0,Loyalty)}:name(+0: Exile creature) target(creature|battlefield) moveto(exile) and!( life:-2 controller && transforms((,newability[phaseaction[end once checkex] moveto(ownerbattlefield)])) forever )! +auto={C(0/0,0,Loyalty)}:name(+0: Exile kaya) moveto(exile) and!( life:-2 controller && counter(0/0,hascntloyalty,Loyalty) && transforms((,newability[@next end:name(Return to battlefield) moveto(ownerbattlefield) and!( counter(0/0.hascntloyalty.Loyalty) notrg && counter(0/0.-5.Loyalty) notrg)! ])) forever )! auto={C(0/0,0,Loyalty)}:name(+0: Don't exile anything) life:-2 controller auto={C(0/0,-1,Loyalty)}:name(-1: Opponent loses life) lifeleech:-2 opponent auto={C(0/0,-2,Loyalty)}:name(-2: Each opponent discard and draw) ability$!name(Discard a card) notatarget(*|myHand) reject!$ opponent && draw:1 controller @@ -1891,7 +1891,7 @@ name=Kiora, the Crashing Wave auto=counter(0/0,2,loyalty) auto={C(0/0,1,Loyalty)}:name(+1: Prevention all damage dealt by and to) target(*|opponentbattlefield) transforms((,newability[preventalldamage from(this)],newability[preventalldamage to(this)])) uynt auto={C(0/0,-1,Loyalty)}:name(-1: Draw a card and may play additional land) draw:1 controller && maxPlay(land)+1 ueot -auto={C(0/0,-5,Loyalty)}:name(-5: Emblem: "Each my end of turn create a 9/9 Kraken") emblem transforms((,newability[@each my endofturn:token(Kraken^Creature Kraken^9/9^blue) controller])) forever dontremove +auto={C(0/0,-5,Loyalty)}:name(-5: Emblem: "Each my end of turn create a 9/9 Kraken") emblem transforms((,newability[@each my end:token(Kraken^Creature Kraken^9/9^blue) controller])) forever dontremove text=+1: Until your next turn, prevent all damage that would be dealt to and dealt by target permanent an opponent controls. -- -1: Draw a card. You may play an additional land this turn. -- -5: You get an emblem with "At the beginning of your end step, put a 9/9 blue Kraken creature token onto the battlefield." mana={2}{G}{U} type=Legendary Planeswalker @@ -2026,7 +2026,7 @@ auto={C(0/0,-17,Loyalty)}:name(-17: Reanimate non-legendary creature with manaco auto={C(0/0,-18,Loyalty)}:name(-18: Reanimate non-legendary creature with manacost 18) moveto(mybattlefield) target(creature[-legendary;manacost=18]|mygraveyard) auto={C(0/0,-19,Loyalty)}:name(-19: Reanimate non-legendary creature with manacost 19) moveto(mybattlefield) target(creature[-legendary;manacost=19]|mygraveyard) auto={C(0/0,-20,Loyalty)}:name(-20: Reanimate non-legendary creature with manacost 20) moveto(mybattlefield) target(creature[-legendary;manacost>=20]|mygraveyard) -auto={C(0/0,-8,Loyalty)}:name(-8: Emblem: "Whenever a creature dies, reanimate it") emblem transforms((,newability[@movedTo(creature|mygraveyard) from(battlefield):all(trigger[to]) phaseaction[endofturn once] moveTo(myBattlefield)],newability[@movedTo(creature|opponentgraveyard) from(battlefield):all(trigger[to]) phaseaction[endofturn once] moveTo(opponentBattlefield)])) forever dontremove +auto={C(0/0,-8,Loyalty)}:name(-8: Emblem: "Whenever a creature dies, reanimate it") emblem transforms((,newability[@movedTo(creature|mygraveyard) from(battlefield):all(trigger[to]) phaseaction[end once] moveTo(myBattlefield)],newability[@movedTo(creature|opponentgraveyard) from(battlefield):all(trigger[to]) phaseaction[end once] moveTo(opponentBattlefield)])) forever dontremove text=+2: Each player discards a card. -- -X: Return target nonlegendary creature card with mana value X from your graveyard to the battlefield. -- -8: You get an emblem with "Whenever a creature dies, return it to the battlefield under your control at the beginning of the next end step." type=Legendary Planeswalker subtype=Liliana @@ -2071,7 +2071,7 @@ name=Liliana, the Last Hope auto=counter(0/0,3,Loyalty) auto={C(0/0,1,Loyalty)}:name(+1: Target creature gets -2/-1) ability$! may target(creature) transforms((,newability[-2/-1])) uynt !$ controller auto={C(0/0,-2,Loyalty)}:name(-2: Mils two and return a creature) deplete:2 controller && ability$!may name(Move to hand) moveto(myhand) target(creature|mygraveyard)!$ controller -auto={C(0/0,-7,Loyalty)}:name(-7: Emblem: "Each my end of turn create X 2/2 Zombie plus two") emblem transforms((,newability[phaseactionmulti[my endofturn] foreach(zombie|mybattlefield) _ZOMBIETOKEN_ && _ZOMBIETOKEN_*2])) forever dontremove +auto={C(0/0,-7,Loyalty)}:name(-7: Emblem: "Each my end of turn create X 2/2 Zombie plus two") emblem transforms((,newability[phaseactionmulti[my end] foreach(zombie|mybattlefield) _ZOMBIETOKEN_ && _ZOMBIETOKEN_*2])) forever dontremove text=+1: Up to one target creature gets -2/-1 until your next turn. -- -2: Put the top two cards of your library into your graveyard, then you may return a creature card from your graveyard to your hand. -- -7: You get an emblem with "At the beginning of your end step, put X 2/2 black Zombie creature tokens onto the battlefield, where X is two plus the number of Zombies you control." mana={1}{B}{B} type=Legendary Planeswalker @@ -2263,11 +2263,11 @@ subtype=Nahiri [card] name=Nahiri, the Harbinger auto=counter(0/0,4,loyalty) -aicode=activate target(*[artifact;creature]|myLibrary) moveto(myBattlefield) and!( transforms((,haste,newability[phaseaction[endofturn once sourceinplay] moveTo(ownerhand)])) ueot )! +aicode=activate target(*[artifact;creature]|myLibrary) moveto(myBattlefield) and!( transforms((,haste,newability[phaseaction[end once sourceinplay] moveTo(ownerhand)])) ueot )! auto={C(0/0,2,Loyalty)}:name(+2: Don't discard any card) donothing auto={C(0/0,2,Loyalty)}:name(+2: Discard and draw a card) target(*|myHand) reject and!( draw:1 controller )! auto={C(0/0,-2,Loyalty)}:name(-2: Exile target enchantment, tapped Artifact or Creature) ability$!name(Choose one) choice name(Exile target enchantment) moveTo(exile) target(enchantment) _ choice name(Exile target tapped creature) moveTo(exile) target(creature[tapped]) _ choice name(Exile target tapped artifact) moveTo(exile) target(artifact[tapped])!$ controller -auto={C(0/0,-8,Loyalty)}:name(-8: Search a creature or artifact) reveal:plibrarycount optionone name(choose a creature or artifact) target(*[artifact;creature]|reveal) moveTo(ownerlibrary) and!( becomes(tobecast) ueot )! optiononeend optiontwo name(put back) target(*|reveal) moveTo(ownerlibrary) and!( all(*|reveal) moveto(ownerlibrary) and!( shuffle )! )! optiontwoend afterrevealed all(tobecast|mylibrary) moveto(myBattlefield) and!( transforms((,haste,newability[phaseaction[endofturn once sourceinplay] moveTo(ownerhand)])) ueot )! afterrevealedend revealend +auto={C(0/0,-8,Loyalty)}:name(-8: Search a creature or artifact) reveal:plibrarycount optionone name(choose a creature or artifact) target(*[artifact;creature]|reveal) moveTo(ownerlibrary) and!( becomes(tobecast) ueot )! optiononeend optiontwo name(put back) target(*|reveal) moveTo(ownerlibrary) and!( all(*|reveal) moveto(ownerlibrary) and!( shuffle )! )! optiontwoend afterrevealed all(tobecast|mylibrary) moveto(myBattlefield) and!( transforms((,haste,newability[phaseaction[end once sourceinplay] moveTo(ownerhand)])) ueot )! afterrevealedend revealend text=+2: You may discard a card. If you do, draw a card. -- -2: Exile target enchantment, tapped artifact, or tapped creature. -- -8: Search your library for an artifact or creature card, put it onto the battlefield, then shuffle. It gains haste. Return it to your hand at the beginning of the next end step. mana={2}{R}{W} type=Legendary Planeswalker @@ -2391,8 +2391,8 @@ subtype=Bolas [card] name=Nicol Bolas, God-Pharaoh auto=counter(0/0,7,loyalty) -aicode=activate transforms((,newability[all(*[zpos=oppofindfirsttypenonland]|opponentlibrary) moveto(myexile) and!( transforms((,newability[zerocast],newability[canplayfromexile],newability[phaseaction[my endofturn once checkex] moveto(ownerExile)],newability[all(*[zpos<=oppofindfirsttypenonland]|opponentlibrary) moveto(ownerExile)])) ueot )!])) oneshot -auto={C(0/0,2,Loyalty)}:name(+2: Exile cards from top and may cast it) reveal:1 revealzone(opponentlibrary) revealuntil(*[-land]|opponentlibrary) optionone name(Move to your exile for cast) target(*[-land]|reveal) moveto(myexile) and!( transforms((,newability[zerocast],newability[canplayfromexile],newability[phaseaction[my endofturn once checkex] moveto(ownerExile)])) ueot )! optiononeend optiontwo name(Exile other cards) all(*|reveal) moveto(ownerExile) oneshot optiontwoend revealend +aicode=activate transforms((,newability[all(*[zpos=oppofindfirsttypenonland]|opponentlibrary) moveto(myexile) and!( transforms((,newability[zerocast],newability[canplayfromexile],newability[phaseaction[my end once checkex] moveto(ownerExile)],newability[all(*[zpos<=oppofindfirsttypenonland]|opponentlibrary) moveto(ownerExile)])) ueot )!])) oneshot +auto={C(0/0,2,Loyalty)}:name(+2: Exile cards from top and may cast it) reveal:1 revealzone(opponentlibrary) revealuntil(*[-land]|opponentlibrary) optionone name(Move to your exile for cast) target(*[-land]|reveal) moveto(myexile) and!( transforms((,newability[zerocast],newability[canplayfromexile],newability[phaseaction[my end once checkex] moveto(ownerExile)])) ueot )! optiononeend optiontwo name(Exile other cards) all(*|reveal) moveto(ownerExile) oneshot optiontwoend revealend auto={C(0/0,1,Loyalty)}:name(+1: Opponent exiles two cards from hand) ability$!name(Move to exile) name(Move to exile) moveto(exile) notatarget(<2>*|myhand)!$ opponent auto={C(0/0,-4,Loyalty)}:name(-4: Deals 7 damage) ability$!name(Choose one) choice name(Damage opponent) damage:7 opponent _ choice name(Damage creature or planeswalker) damage:7 target(*[creature;planeswalker]|opponentbattlefield)!$ controller auto={C(0/0,-12,Loyalty)}:name(-12: Exile all non-land permanents) moveTo(exile) all(*[-land]|opponentbattlefield) @@ -3184,7 +3184,7 @@ subtype=Teferi [card] name=Teferi, Hero of Dominaria auto=counter(0/0,4,loyalty) -auto={C(0/0,1,Loyalty)}:name(+1: Draw a card and untap two lands) draw:1 controller && phaseaction[endofturn once] untap target(<2>land) +auto={C(0/0,1,Loyalty)}:name(+1: Draw a card and untap two lands) draw:1 controller && phaseaction[end once] untap target(<2>land) auto={C(0/0,-3,Loyalty)}:name(-3: Return target nonland to library) target(*[-land]) placefromthetop(3) auto={C(0/0,-8,Loyalty)}:name(-8: Emblem: "Whenever draw, exile permanent") emblem transforms((,newability[@drawof(player):moveTo(exile) target(*|opponentBattlefield)])) forever dontremove text=+1: Draw a card. At the beginning of the next end step, untap up to two lands. -- -3: Put target nonland permanent into its owner's library third from the top. -- -8: You get an emblem with "Whenever you draw a card, exile target permanent an opponent controls." @@ -3298,7 +3298,7 @@ auto=counter(0/0,4,Loyalty) auto={C(0/0,1,Loyalty)}:name(+1: Don't target any creature) donothing auto={C(0/0,1,Loyalty)}:name(+1: Creature can attack) target(creature) counter(0/0.1.PerpetualTeyoEffect) auto={C(0/0,-2,Loyalty)}:name(-2: Conjure a Lumbering Lightshield) conjure cards(Lumbering Lightshield) zone(mybattlefield) -auto={C(0/0,-6,Loyalty)}:name(-6: Emblem Return creature) ability$!emblem transforms((,newability[@each my endofturn:name(Return white creature) name(Return white creature) target(creature[white]|mygraveyard) moveto(mybattlefield) and!( transforms((,newability[life:toughness controller])) oneshot )!])) forever dontremove!$ controller +auto={C(0/0,-6,Loyalty)}:name(-6: Emblem Return creature) ability$!emblem transforms((,newability[@each my end:name(Return white creature) name(Return white creature) target(creature[white]|mygraveyard) moveto(mybattlefield) and!( transforms((,newability[life:toughness controller])) oneshot )!])) forever dontremove!$ controller auto=emblem transforms((,newability[lord(*[counter{0/0.1.PerpetualTeyoEffect}]|myzones) transforms((,setpower=t,newability[canattack]))])) forever dontremove text=+1: Up to one target creature's base power perpetually becomes equal to its toughness. It perpetually gains "This creature can attack as though it didn't have defender." -- -2: Conjure a Lumbering Lightshield card onto the battlefield. -6: You get an emblem with "At the beginning of your end step, return target white creature card from your graveyard to the battlefield. You gain life equal to its toughness." mana={2}{W}{W} @@ -3386,7 +3386,7 @@ name=Tezzeret, Artifice Master auto=counter(0/0,5,loyalty) auto={C(0/0,1,Loyalty)}:name(+1: Create a 1/1 Thopter) _THOPTERTOKEN_ auto={C(0/0,0,Loyalty)}:name(+0: Draw a card or two) if type(artifact|myBattlefield)~morethan~2 then draw:2 controller else draw:1 controller -auto={C(0/0,-9,Loyalty)}:name(-9: Emblem: Each end of turn search a permanent) emblem transforms((,newability[@each my endofturn:moveTo(myBattlefield) target(*[-instant;-sorcery]|myLibrary) && shuffle controller])) forever dontremove +auto={C(0/0,-9,Loyalty)}:name(-9: Emblem: Each end of turn search a permanent) emblem transforms((,newability[@each my end:moveTo(myBattlefield) target(*[-instant;-sorcery]|myLibrary) && shuffle controller])) forever dontremove text=+1: Create a 1/1 colorless Thopter artifact creature token with flying. -- 0: Draw a card. If you control three or more artifacts, draw two cards instead. -- -9: You get an emblem with "At the beginning of your end step, search your library for a permanent card, put it onto the battlefield, then shuffle." mana={3}{U}{U} type=Legendary Planeswalker @@ -3443,7 +3443,7 @@ subtype=Tezzeret name=The Eternal Wanderer #MISSING: No more than one creature can attack The Eternal Wanderer each combat auto=counter(0/0,5,loyalty) -auto={C(0/0,+1,Loyalty)}:name(+1: Exile creature or artifact) target(*[artifact;creature]|battlefield) moveto(ownerexile) and!( transforms((,newability[phaseaction[my endofturn once sourceinplay] moveto(ownerbattlefield)])) forever )! +auto={C(0/0,+1,Loyalty)}:name(+1: Exile creature or artifact) target(*[artifact;creature]|battlefield) moveto(ownerexile) and!( transforms((,newability[phaseaction[my end once sourceinplay] moveto(ownerbattlefield)])) forever )! auto={C(0/0,+1,Loyalty)}:name(+1: Don't exile creature or artifact) donothing auto={C(0/0,0,Loyalty)}:name(+0: Create a samurai) token(Samurai,Creature Samurai,2/2,white,double strike) auto=this(variable{type:creature:mybattlefield}>0) {C(0/0,-4,Loyalty)}:name(-4: Sacrifice creatures) name(-4: Sacrifice creatures) target(creature|mybattlefield) transforms((,newability[all(other creature|mybattlefield) sacrifice],newability[name(Choose opponent creature) name(Choose opponent creature) target(creature|opponentbattlefield) transforms((,newability[all(other creature|mybattlefield) sacrifice])) ueot])) ueot @@ -3490,7 +3490,7 @@ type=Legendary Planeswalker name=Tibalt, Cosmic Impostor backside=Valki, God of Lies auto=counter(0/0,5,Loyalty) -auto=token(Tibalt Emblem,Emblem,0/0,shroud,indestructible,notrigger) and!( transforms((,newability[lord(*[counter{0/0.1.TibaltExiled}]|myexile) canplayfromexile],newability[lord(*[counter{0/0.1.TibaltExiled}]|myexile) anytypeofmana],newability[{0}:name(Cast from opponent exile) target(*[counter{0/0.1.TibaltExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.TibaltExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[endofturn once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.TibaltExiled)])) ueot )!])) forever )! +auto=token(Tibalt Emblem,Emblem,0/0,shroud,indestructible,notrigger) and!( transforms((,newability[lord(*[counter{0/0.1.TibaltExiled}]|myexile) canplayfromexile],newability[lord(*[counter{0/0.1.TibaltExiled}]|myexile) anytypeofmana],newability[{0}:name(Cast from opponent exile) target(*[counter{0/0.1.TibaltExiled}]|opponentexile) moveto(myexile) and!( transforms((,newability[counter(0/0.1.TibaltExiled)],newability[canplayfromexile],newability[anytypeofmana],newability[phaseaction[end once checkex] moveTo(ownerexile)],newability[phaseaction[untap once checkex] counter(0/0.1.TibaltExiled)])) ueot )!])) forever )! auto={C(0/0,2,Loyalty)}:name(+2: Exile the top card) all(*[zpos=1]|library) moveto(ownerexile) and!( counter(0/0,1,TibaltExiled) )! auto={C(0/0,-3,Loyalty)}:name(-3: Exile target artifact or creature) target(*[artifact;creature]|battlefield) moveto(ownerexile) and!( counter(0/0,1,TibaltExiled) )! auto={C(0/0,-8,Loyalty)}:name(-8: Exile all cards from all graveyards) add{R}{R}{R} && ability$!all(*|graveyard) moveto(ownerexile) and!( counter(0/0.1.TibaltExiled) )! !$ controller @@ -3559,7 +3559,7 @@ name=Tibalt, the Fiend-Blooded auto=counter(0/0,2,Loyalty) auto={C(0/0,1,Loyalty)}:name(+1: Draw and discard) draw:1 controller && discard:1 controller auto={C(0/0,-4,Loyalty)}:name(-4: Deal damage to player) target(player) damage:type:*:targetedpersonshand -auto={C(0/0,-6,Loyalty)}:name(-6: Gain control of creatures) all(creature|battlefield) moveTo(mybattlefield) and!( transforms((,newability[untap],haste,newability[phaseaction[endofturn once sourceinplay] moveTo(ownerbattlefield)])) ueot )! +auto={C(0/0,-6,Loyalty)}:name(-6: Gain control of creatures) all(creature|battlefield) moveTo(mybattlefield) and!( transforms((,newability[untap],haste,newability[phaseaction[end once sourceinplay] moveTo(ownerbattlefield)])) ueot )! text=+1: Draw a card, then discard a card at random. -- -4: Tibalt, the Fiend-Blooded deals damage equal to the number of cards in target player's hand to that player. -- -6: Gain control of all creatures until end of turn. Untap them. They gain haste until end of turn. mana={R}{R} type=Legendary Planeswalker @@ -3806,7 +3806,7 @@ subtype=Vraska [card] name=Vronos, Masked Inquisitor auto=counter(0/0,5,loyalty) -auto={C(0/0,+1,Loyalty)}:name(+1: Phase out) target(other planeswalker|myBattlefield) transforms((,newability[phaseaction[endofturn once sourceinplay] phaseout])) forever +auto={C(0/0,+1,Loyalty)}:name(+1: Phase out) target(other planeswalker|myBattlefield) transforms((,newability[phaseaction[end once sourceinplay] phaseout])) forever auto={C(0/0,+1,Loyalty)}:name(+1: Don't phase out) donothing auto={C(0/0,-2,Loyalty)}:name(-2: Return nonland permanent) target(*[-land]|opponentbattlefield) moveto(ownerhand) auto={C(0/0,-7,Loyalty)}:name(-7: Artifact becomes construct) target(artifact|myBattlefield) transforms((Creature Artifact Construct,setpower=9,settoughness=9,vigilance,indestructible,unblockable)) forever