From 509e25d4ccbad9893c11d020e34ff2f13b4080d0 Mon Sep 17 00:00:00 2001 From: Vittorio Alfieri Date: Thu, 4 May 2023 14:34:02 +0200 Subject: [PATCH] Start to code "take the initiative" ability for CLB set. --- projects/mtg/bin/Res/sets/CLB/_cards.dat | 10 ++++++++++ projects/mtg/bin/Res/sets/primitives/_macros.txt | 4 ++++ projects/mtg/bin/Res/sets/primitives/borderline.txt | 1 + 3 files changed, 15 insertions(+) diff --git a/projects/mtg/bin/Res/sets/CLB/_cards.dat b/projects/mtg/bin/Res/sets/CLB/_cards.dat index fcec72d75..48f0d9e36 100644 --- a/projects/mtg/bin/Res/sets/CLB/_cards.dat +++ b/projects/mtg/bin/Res/sets/CLB/_cards.dat @@ -5,6 +5,16 @@ year=2022-06-10 total=849 [/meta] [card] +primitive=Undercity +id=57018400 +rarity=T +[/card] +[card] +primitive=The Initiative +id=57018401 +rarity=T +[/card] +[card] primitive=Faceless One id=570184 rarity=S diff --git a/projects/mtg/bin/Res/sets/primitives/_macros.txt b/projects/mtg/bin/Res/sets/primitives/_macros.txt index ee88d51e9..0db9c69ab 100644 --- a/projects/mtg/bin/Res/sets/primitives/_macros.txt +++ b/projects/mtg/bin/Res/sets/primitives/_macros.txt @@ -129,6 +129,10 @@ #AUTO_DEFINE _MONARCH_CONTROLLER_ if type(The Monarch|battlefield)~lessthan~1 then token(The Monarch) else all(The Monarch|battlefield) moveto(mybattlefield) and!( transforms((,newability[becomesmonarch controller])) forever )! #AUTO_DEFINE _MONARCH_OPPONENT_ if type(The Monarch|battlefield)~lessthan~1 then token(The Monarch) opponent else all(The Monarch|battlefield) moveto(opponentbattlefield) and!( transforms((,newability[becomesmonarch controller])) forever )! +# Initiative +#AUTO_DEFINE _INITIATIVE_CONTROLLER_ if type(The Initiative|battlefield)~lessthan~1 then token(The Initiative) else all(The Initiative|battlefield) moveto(mybattlefield) and!( transforms((,newability[takesinitiative controller])) forever )! +#AUTO_DEFINE _INITIATIVE_OPPONENT_ if type(The Initiative|battlefield)~lessthan~1 then token(The Initiative) opponent else all(The Initiative|battlefield) moveto(opponentbattlefield) and!( transforms((,newability[takesinitiative controller])) forever )! + # Explore, not implemented #AUTO_DEFINE _EXPLORE_ reveal:1 optionone if type(land|reveal)~lessthan~1 then transforms((,newability[counter(1/1)])) optiononeend optiontwo if type(land|reveal)~morethan~0 then name(move to Hand) target(<1>*|reveal) moveto(myHand) else transforms((,newability[Choice name(back to library) target(<1>*|reveal) moveto(mylibrary)],newability[Choice name(put into Graveyard) target(<1>*|reveal) moveto(myGraveyard)])) optiontwoend revealend limit:1 diff --git a/projects/mtg/bin/Res/sets/primitives/borderline.txt b/projects/mtg/bin/Res/sets/primitives/borderline.txt index 193a53c07..20ca10651 100644 --- a/projects/mtg/bin/Res/sets/primitives/borderline.txt +++ b/projects/mtg/bin/Res/sets/primitives/borderline.txt @@ -27624,6 +27624,7 @@ toughness=1 name=Fall from Favor target=creature auto=tap +auto=_MONARCH_CONTROLLER_ auto=this(variable{omonarch}<1) doesnotuntap text=Enchant creature -- When Fall from Favor enters the battlefield, tap enchanted creature and you become the monarch. -- Enchanted creature doesn't untap during its controller's untap step unless that player is the monarch. mana={2}{U}