From d11ea42d637a8c2bf94bee22a8cf86d03f0e3caf Mon Sep 17 00:00:00 2001 From: Sol Date: Thu, 27 Aug 2015 02:14:22 +0000 Subject: [PATCH] - Added Grinning Toem (Psychic Theft should use a bunch of similar elements) --- .gitattributes | 1 + .../res/cardsfolder/g/grinning_totem.txt | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 forge-gui/res/cardsfolder/g/grinning_totem.txt diff --git a/.gitattributes b/.gitattributes index d15a2514865..790c7aa054b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6824,6 +6824,7 @@ forge-gui/res/cardsfolder/g/grindstone.txt svneol=native#text/plain forge-gui/res/cardsfolder/g/grinning_demon.txt svneol=native#text/plain forge-gui/res/cardsfolder/g/grinning_demon_avatar.txt -text forge-gui/res/cardsfolder/g/grinning_ignus.txt svneol=native#text/plain +forge-gui/res/cardsfolder/g/grinning_totem.txt -text forge-gui/res/cardsfolder/g/grip_of_amnesia.txt -text forge-gui/res/cardsfolder/g/grip_of_chaos.txt -text forge-gui/res/cardsfolder/g/griptide.txt -text diff --git a/forge-gui/res/cardsfolder/g/grinning_totem.txt b/forge-gui/res/cardsfolder/g/grinning_totem.txt new file mode 100644 index 00000000000..4313e92ed4d --- /dev/null +++ b/forge-gui/res/cardsfolder/g/grinning_totem.txt @@ -0,0 +1,23 @@ +Name:Grinning Totem +ManaCost:4 +Types:Artifact +A:AB$ ChangeZone | Cost$ 2 T Sac<1/CARDNAME> | ValidTgts$ Player.Opponent | IsCurse$ True | Chooser$ You | Origin$ Library | Destination$ Exile | ChangeType$ Card | ChangeNum$ 1 | IsCurse$ True | RememberChanged$ True | SubAbility$ TotemEffect | SpellDescription$ Search target opponent's library for a card and exile it. Then that player shuffles his or her library. Until the beginning of your next upkeep, you may play that card. At the beginning of your next upkeep, if you haven't played it, put it into its owner's graveyard. | StackDescription$ SpellDescription +SVar:TotemEffect:DB$ Effect | StaticAbilities$ STGrinning | Duration$ Permanent | RememberObjects$ Remembered | Triggers$ TrigDuration,TrigReturn,TrigLandPlayed,TrigCast | SVars$ DBDuration,ActiveTotem,RemoveEffect,DBReturn | SubAbility$ DBResetSVar +# Even though the Effect is "Permanent", it's not really permanent +SVar:DBResetSVar:DB$ StoreSvar | SVar$ ActiveTotem | Type$ Number | Expression$ 1 | SubAbility$ DBCleanup +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:ActiveTotem:Number$1 +SVar:STGrinning:Mode$ Continuous | Affected$ Card.IsRemembered+OppOwn | MayPlay$ True | EffectZone$ Command | AffectedZone$ Exile | CheckSVar$ ActiveTotem | Description$ Until the beginning of your next upkeep, you may play that card. +# Turn off the duration at the beginning of the upkeep statically +SVar:TrigDuration:Mode$ Phase | Phase$ Upkeep | Player$ You | Static$ True | TriggerZones$ Command | Execute$ DBDuration +SVar:DBDuration:DB$ StoreSvar | SVar$ ActiveTotem | Type$ Number | Expression$ 0 +# Return the card as a normal trigger +SVar:TrigReturn:Mode$ Phase | Phase$ Upkeep | Player$ You | Static$ True | TriggerZones$ Command | Execute$ DBReturn +SVar:DBReturn:DB$ ChangeZone | Defined$ Remembered | Origin$ Exile | Destination$ Graveyard | SubAbility$ RemoveEffect +SVar:RemoveEffect:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile +# Remove Totem Effect when the card is played +SVar:TrigLandPlayed:Mode$ LandPlayed | ValidCard$ Land.IsRemembered | Static$ True | TriggerZones$ Command | Execute$ RemoveEffect +SVar:TrigCast:Mode$ SpellCast | ValidCard$ Card.IsRemembered | Static$ True | TriggerZones$ Command | Execute$ RemoveEffect +SVar:RemAIDeck:True +SVar:Picture:http://www.wizards.com/global/images/magic/general/grinning_totem.jpg +Oracle:{2}, {T}, Sacrifice Grinning Totem: Search target opponent's library for a card and exile it. Then that player shuffles his or her library. Until the beginning of your next upkeep, you may play that card. At the beginning of your next upkeep, if you haven't played it, put it into its owner's graveyard. \ No newline at end of file