From d6ebdf4f779d6dea0300f3a81bae748c0513d169 Mon Sep 17 00:00:00 2001 From: Agetian Date: Thu, 22 Jan 2015 15:28:07 +0000 Subject: [PATCH] - Updated the Imprint scripts to properly clean up upon leaving the battlefield (please review). --- forge-gui/res/cardsfolder/c/chrome_mox.txt | 2 ++ forge-gui/res/cardsfolder/e/exclusion_ritual.txt | 2 ++ forge-gui/res/cardsfolder/e/extraplanar_lens.txt | 2 ++ forge-gui/res/cardsfolder/i/invader_parasite.txt | 2 ++ forge-gui/res/cardsfolder/m/mimic_vat.txt | 2 ++ forge-gui/res/cardsfolder/m/mourners_shield.txt | 2 ++ forge-gui/res/cardsfolder/m/myr_welder.txt | 2 ++ forge-gui/res/cardsfolder/p/panoptic_mirror.txt | 2 ++ forge-gui/res/cardsfolder/p/prototype_portal.txt | 2 ++ forge-gui/res/cardsfolder/s/semblance_anvil.txt | 2 ++ forge-gui/res/cardsfolder/s/soul_foundry.txt | 2 ++ forge-gui/res/cardsfolder/s/spellweaver_helix.txt | 2 ++ forge-gui/res/cardsfolder/s/strata_scythe.txt | 2 ++ forge-gui/res/cardsfolder/t/thought_prison.txt | 2 ++ 14 files changed, 28 insertions(+) diff --git a/forge-gui/res/cardsfolder/c/chrome_mox.txt b/forge-gui/res/cardsfolder/c/chrome_mox.txt index fa515b99a93..ec885235862 100644 --- a/forge-gui/res/cardsfolder/c/chrome_mox.txt +++ b/forge-gui/res/cardsfolder/c/chrome_mox.txt @@ -4,6 +4,8 @@ Types:Artifact T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | OptionalDecider$ You | Execute$ TrigExile | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, you may exile a nonartifact, nonland card from your hand. SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | Origin$ Hand | Destination$ Exile | ChangeType$ Card.nonArtifact+nonLand | ChangeNum$ 1 A:AB$ ManaReflected | Cost$ T | Valid$ Defined.Imprinted | ColorOrType$ Color | ReflectProperty$ Is | SpellDescription$ Add one mana of any of the exiled card's colors to your mana pool. +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/chrome_mox.jpg Oracle:Imprint - When Chrome Mox enters the battlefield, you may exile a nonartifact, nonland card from your hand.\n{T}: Add one mana of any of the exiled card's colors to your mana pool. diff --git a/forge-gui/res/cardsfolder/e/exclusion_ritual.txt b/forge-gui/res/cardsfolder/e/exclusion_ritual.txt index 55a25e71f2e..6aac36540ef 100644 --- a/forge-gui/res/cardsfolder/e/exclusion_ritual.txt +++ b/forge-gui/res/cardsfolder/e/exclusion_ritual.txt @@ -4,5 +4,7 @@ Types:Enchantment T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigExile | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, exile target nonland permanent. SVar:TrigExile:DB$ ChangeZone | Cost$ 0 | Imprint$ True | ValidTgts$ Permanent.nonLand | TgtPrompt$ Select target nonland permanent | Origin$ Battlefield | Destination$ Exile S:Mode$ CantBeCast | ValidCard$ Card.sharesNameWith Imprinted | Description$ Players can't cast spells with the same name as the exiled card. +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:Picture:http://www.wizards.com/global/images/magic/general/exclusion_ritual.jpg Oracle:Imprint - When Exclusion Ritual enters the battlefield, exile target nonland permanent.\nPlayers can't cast spells with the same name as the exiled card. diff --git a/forge-gui/res/cardsfolder/e/extraplanar_lens.txt b/forge-gui/res/cardsfolder/e/extraplanar_lens.txt index d884e908dd3..7cb2d0e9078 100644 --- a/forge-gui/res/cardsfolder/e/extraplanar_lens.txt +++ b/forge-gui/res/cardsfolder/e/extraplanar_lens.txt @@ -5,6 +5,8 @@ T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefi SVar:TrigExile:AB$ ChangeZone | Cost$ 0 | Imprint$ True | Origin$ Battlefield | Destination$ Exile | ValidTgts$ Land.YouCtrl | TgtPrompt$ Select a target land you control T:Mode$ TapsForMana | ValidCard$ Land.sharesNameWith Imprinted | Execute$ TrigMana | TriggerZones$ Battlefield | Static$ True | TriggerDescription$ Whenever a land with the same name as the exiled card is tapped for mana, its controller adds one mana to his or her mana pool of any type that land produced. SVar:TrigMana:AB$ ManaReflected | Cost$ 0 | Valid$ Defined.Triggered | ColorOrType$ Type | ReflectProperty$ Produced | Defined$ TriggeredPlayer +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/extraplanar_lens.jpg Oracle:Imprint - When Extraplanar Lens enters the battlefield, you may exile target land you control.\nWhenever a land with the same name as the exiled card is tapped for mana, its controller adds one mana to his or her mana pool of any type that land produced. diff --git a/forge-gui/res/cardsfolder/i/invader_parasite.txt b/forge-gui/res/cardsfolder/i/invader_parasite.txt index 95a56e1ed2e..f0e2a6fa55e 100644 --- a/forge-gui/res/cardsfolder/i/invader_parasite.txt +++ b/forge-gui/res/cardsfolder/i/invader_parasite.txt @@ -6,5 +6,7 @@ T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefi SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | ValidTgts$ Land | TgtPrompt$ Select target land | Origin$ Battlefield | Destination$ Exile T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Land.sharesNameWith Imprinted+OppCtrl | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ Whenever a land with the same name as the exiled card enters the battlefield under an opponent's control, CARDNAME deals 2 damage to that player. SVar:TrigDamage:AB$DealDamage | Cost$ 0 | Defined$ TriggeredCardController | NumDmg$ 2 +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:Picture:http://www.wizards.com/global/images/magic/general/invader_parasite.jpg Oracle:Imprint - When Invader Parasite enters the battlefield, exile target land.\nWhenever a land with the same name as the exiled card enters the battlefield under an opponent's control, Invader Parasite deals 2 damage to that player. diff --git a/forge-gui/res/cardsfolder/m/mimic_vat.txt b/forge-gui/res/cardsfolder/m/mimic_vat.txt index 3e34df0650a..755a6302280 100644 --- a/forge-gui/res/cardsfolder/m/mimic_vat.txt +++ b/forge-gui/res/cardsfolder/m/mimic_vat.txt @@ -10,6 +10,8 @@ SVar:DBPump:DB$ Pump | Cost$ 0 | Defined$ Clones | KW$ Haste | Permanent$ True | SVar:DelTrig:DB$ DelayedTrigger | Mode$ Phase | Phase$ End Of Turn | Execute$ TrigExile | RememberObjects$ Clones | TriggerDescription$ Exile the token at the beginning of the next end step. | AILogic$ Always SVar:TrigExile:AB$ ChangeZone | Cost$ 0 | Defined$ DelayTriggerRemembered | Origin$ Battlefield | Destination$ Exile SVar:NonStackingEffect:True +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanImprinted | Static$ True +SVar:DBCleanImprinted:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/mimic_vat.jpg Oracle:Imprint - Whenever a nontoken creature dies, you may exile that card. If you do, return each other card exiled with Mimic Vat to its owner's graveyard.\n{3}, {T}: Put a token onto the battlefield that's a copy of the exiled card. It gains haste. Exile it at the beginning of the next end step. diff --git a/forge-gui/res/cardsfolder/m/mourners_shield.txt b/forge-gui/res/cardsfolder/m/mourners_shield.txt index d8a9dc502ef..b0ff5546329 100644 --- a/forge-gui/res/cardsfolder/m/mourners_shield.txt +++ b/forge-gui/res/cardsfolder/m/mourners_shield.txt @@ -7,5 +7,7 @@ A:AB$ ChooseSource | Cost$ 2 T | Choices$ Card.SharesColorWith Imprinted | Choic SVar:DBEffect:DB$ Effect | StaticAbilities$ PreventFromSource | References$ PreventFromSource | RememberObjects$ Remembered | SubAbility$ DBCleanup | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup SVar:PreventFromSource:Mode$ PreventDamage | EffectZone$ Command | Source$ Card.IsRemembered | Description$ Prevent all damage that would be dealt by a source of your choice that shares a color with the exiled card. SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanImprinted | Static$ True +SVar:DBCleanImprinted:DB$ Cleanup | ClearImprinted$ True SVar:Picture:http://www.wizards.com/global/images/magic/general/mourners_shield.jpg Oracle:Imprint - When Mourner's Shield enters the battlefield, you may exile target card from a graveyard.\n{2}, {T}: Prevent all damage that would be dealt this turn by a source of your choice that shares a color with the exiled card. diff --git a/forge-gui/res/cardsfolder/m/myr_welder.txt b/forge-gui/res/cardsfolder/m/myr_welder.txt index 37af58b3226..a011c63b6ee 100644 --- a/forge-gui/res/cardsfolder/m/myr_welder.txt +++ b/forge-gui/res/cardsfolder/m/myr_welder.txt @@ -4,5 +4,7 @@ Types:Artifact Creature Myr PT:1/4 S:Mode$ Continuous | Affected$ Card.Self | EffectZone$ Battlefield | GainsAbilitiesOf$ Card.IsRemembered | GainsAbilitiesOfZones$ Exile | Description$ CARDNAME has all activated abilities of all cards exiled with it. A:AB$ ChangeZone | Cost$ T | ValidTgts$ Artifact | Origin$ Graveyard | Destination$ Exile | TgtPrompt$ Select target artifact | RememberChanged$ True | PrecostDesc$ Imprint - | SpellDescription$ Exile target artifact card from a graveyard. +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:Picture:http://www.wizards.com/global/images/magic/general/myr_welder.jpg Oracle:Imprint - {T}: Exile target artifact card from a graveyard.\nMyr Welder has all activated abilities of all cards exiled with it. diff --git a/forge-gui/res/cardsfolder/p/panoptic_mirror.txt b/forge-gui/res/cardsfolder/p/panoptic_mirror.txt index a46173bb5a7..b1bafec63e0 100644 --- a/forge-gui/res/cardsfolder/p/panoptic_mirror.txt +++ b/forge-gui/res/cardsfolder/p/panoptic_mirror.txt @@ -5,6 +5,8 @@ A:AB$ ChangeZone | Cost$ X T | Imprint$ True | Origin$ Hand | Destination$ Exile SVar:X:Count$xPaid T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | OptionalDecider$ You | TriggerZones$ Battlefield | Execute$ TrigCopy | TriggerDescription$ At the beginning of your upkeep, you may copy a card exiled with Panoptic Mirror. If you do, you may cast the copy without paying its mana cost. SVar:TrigCopy:AB$ Play | Cost$ 0 | Defined$ Imprinted | WithoutManaCost$ True | Optional$ True | CopyCard$ True +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/panoptic_mirror.jpg Oracle:Imprint - {X}, {T}: You may exile an instant or sorcery card with converted mana cost X from your hand.\nAt the beginning of your upkeep, you may copy a card exiled with Panoptic Mirror. If you do, you may cast the copy without paying its mana cost. diff --git a/forge-gui/res/cardsfolder/p/prototype_portal.txt b/forge-gui/res/cardsfolder/p/prototype_portal.txt index 226c728ebaf..e45bd8be0aa 100644 --- a/forge-gui/res/cardsfolder/p/prototype_portal.txt +++ b/forge-gui/res/cardsfolder/p/prototype_portal.txt @@ -6,5 +6,7 @@ SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | Origin$ Hand | Destinat A:AB$CopyPermanent | Cost$ X T | Defined$ Imprinted | References$ X | SpellDescription$ Put a token that's a copy of the exiled card onto the battlefield. X is the converted mana cost of that card. SVar:X:Imprinted$CardManaCost SVar:RemAIDeck:True +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:Picture:http://www.wizards.com/global/images/magic/general/prototype_portal.jpg Oracle:Imprint - When Prototype Portal enters the battlefield, you may exile an artifact card from your hand.\n{X}, {T}: Put a token that's a copy of the exiled card onto the battlefield. X is the converted mana cost of that card. diff --git a/forge-gui/res/cardsfolder/s/semblance_anvil.txt b/forge-gui/res/cardsfolder/s/semblance_anvil.txt index 0dcf6fe3c46..95ef55d9a0e 100644 --- a/forge-gui/res/cardsfolder/s/semblance_anvil.txt +++ b/forge-gui/res/cardsfolder/s/semblance_anvil.txt @@ -4,6 +4,8 @@ Types:Artifact T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | OptionalDecider$ You | Execute$ TrigExile | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, you may exile a nonland card from your hand. SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | Origin$ Hand | Destination$ Exile | ChangeType$ Card.nonLand | ChangeNum$ 1 S:Mode$ ReduceCost | ValidCard$ Card.sharesCardTypeWith Imprinted | Type$ Spell | Activator$ You | Amount$ 2 | Description$ Spells you cast that share a card type with the exiled card cost {2} less to cast. +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/semblance_anvil.jpg Oracle:Imprint - When Semblance Anvil enters the battlefield, you may exile a nonland card from your hand.\nSpells you cast that share a card type with the exiled card cost {2} less to cast. diff --git a/forge-gui/res/cardsfolder/s/soul_foundry.txt b/forge-gui/res/cardsfolder/s/soul_foundry.txt index 37e419aa9c5..fb90f7cf3dc 100644 --- a/forge-gui/res/cardsfolder/s/soul_foundry.txt +++ b/forge-gui/res/cardsfolder/s/soul_foundry.txt @@ -5,6 +5,8 @@ T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefi SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | Origin$ Hand | Destination$ Exile | ChangeType$ Creature | ChangeNum$ 1 A:AB$CopyPermanent | Cost$ X T | Defined$ Imprinted | SpellDescription$ Put a token that's a copy of the exiled card onto the battlefield. X is the converted mana cost of that card. SVar:X:Imprinted$CardManaCost +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/soul_foundry.jpg Oracle:Imprint - When Soul Foundry enters the battlefield, you may exile a creature card from your hand.\n{X}, {T}: Put a token that's a copy of the exiled card onto the battlefield. X is the converted mana cost of that card. diff --git a/forge-gui/res/cardsfolder/s/spellweaver_helix.txt b/forge-gui/res/cardsfolder/s/spellweaver_helix.txt index ac15ee2787a..79937052900 100644 --- a/forge-gui/res/cardsfolder/s/spellweaver_helix.txt +++ b/forge-gui/res/cardsfolder/s/spellweaver_helix.txt @@ -7,6 +7,8 @@ T:Mode$ SpellCast | ValidCard$ Card.sharesNameWith Imprinted+nonToken | Execute$ SVar:TrigSpellweaverCopy:AB$ Pump | Cost$ 0 | RememberObjects$ TriggeredCard | SubAbility$ DBPlay SVar:DBPlay:DB$ Play | Defined$ ValidAll Card.IsImprinted+doesNotShareNameWith Remembered+inZoneExile | WithoutManaCost$ True | Optional$ True | CopyCard$ True | SubAbility$ DBCleanup SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanImprinted | Static$ True +SVar:DBCleanImprinted:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/spellweaver_helix.jpg diff --git a/forge-gui/res/cardsfolder/s/strata_scythe.txt b/forge-gui/res/cardsfolder/s/strata_scythe.txt index 0ba15bdb3dc..79ffb92056c 100644 --- a/forge-gui/res/cardsfolder/s/strata_scythe.txt +++ b/forge-gui/res/cardsfolder/s/strata_scythe.txt @@ -6,6 +6,8 @@ T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefi SVar:TrigExile:AB$ ChangeZone | Cost$ 0 | Imprint$ True | Origin$ Library | Destination$ Exile | ChangeType$ Land | ChangeNum$ 1 S:Mode$ Continuous | Affected$ Card.EquippedBy | AddPower$ X | AddToughness$ X | Description$ Equipped creature gets +1/+1 for each land on the battlefield with the same name as the exiled card. SVar:X:Count$Valid Land.sharesNameWith Imprinted +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/strata_scythe.jpg Oracle:Imprint - When Strata Scythe enters the battlefield, search your library for a land card, exile it, then shuffle your library.\nEquipped creature gets +1/+1 for each land on the battlefield with the same name as the exiled card.\nEquip {3} diff --git a/forge-gui/res/cardsfolder/t/thought_prison.txt b/forge-gui/res/cardsfolder/t/thought_prison.txt index 0c383c612f6..267cd008ca7 100644 --- a/forge-gui/res/cardsfolder/t/thought_prison.txt +++ b/forge-gui/res/cardsfolder/t/thought_prison.txt @@ -6,6 +6,8 @@ SVar:TrigChangeZone:AB$ ChangeZone | Cost$ 0 | Origin$ Hand | Destination$ Exile T:Mode$ SpellCast | ValidCard$ Card.cmcEQThoughtX,Card.SharesColorWith Imprinted | Execute$ TrigDamage | TriggerZones$ Battlefield | TriggerDescription$ Whenever a player casts a spell that shares a color or converted mana cost with the exiled card, CARDNAME deals 2 damage to that player. SVar:TrigDamage:AB$ DealDamage | Cost$ 0 | NumDmg$ 2 | Defined$ TriggeredActivator SVar:ThoughtX:Count$ImprintedCardManaCost +T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanup | Static$ True +SVar:DBCleanup:DB$ Cleanup | ClearImprinted$ True SVar:RemAIDeck:True SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/thought_prison.jpg