From d751ed3540bf35ae9a7657f7d95dfb638e41555c Mon Sep 17 00:00:00 2001 From: valfieri Date: Thu, 19 Nov 2020 14:12:44 +0100 Subject: [PATCH] Fixed and added some primitives. --- .../bin/Res/sets/primitives/borderline.txt | 14 +++++++--- projects/mtg/bin/Res/sets/primitives/mtg.txt | 26 ++++++++++++++++++- .../bin/Res/sets/primitives/planeswalkers.txt | 2 +- .../bin/Res/sets/primitives/unsupported.txt | 6 ----- 4 files changed, 37 insertions(+), 11 deletions(-) diff --git a/projects/mtg/bin/Res/sets/primitives/borderline.txt b/projects/mtg/bin/Res/sets/primitives/borderline.txt index e59aed4cf..3d7b85f3d 100644 --- a/projects/mtg/bin/Res/sets/primitives/borderline.txt +++ b/projects/mtg/bin/Res/sets/primitives/borderline.txt @@ -41128,8 +41128,8 @@ type=Sorcery [/card] [card] name=Splitting Slime -auto=this(cantargetcard(*[-monstrous]) {4}{G}{G}:becomes(monstrous) forever && counter(1/1,3) && transforms((,newAbility[token(Splitting Slime])) forever -text={G}{G}: Monstrosity 3. (If this creature isn’t monstrous, put three +1/+1 counters on it and it becomes monstrous.) -- When Splitting Slime becomes monstrous, create a token that’s a copy of Splitting Slime. (The token has no counters and isn’t monstrous.) +auto=this(cantargetcard(*[-monstrous]) {4}{G}{G}:becomes(monstrous) forever && counter(1/1,3) && clone all(this) +text={4}{G}{G}: Monstrosity 3. (If this creature isn’t monstrous, put three +1/+1 counters on it and it becomes monstrous.) -- When Splitting Slime becomes monstrous, create a token that’s a copy of Splitting Slime. (The token has no counters and isn’t monstrous.) mana={3}{G}{G} type=Creature subtype=Ooze @@ -45270,6 +45270,14 @@ power=4 toughness=5 [/card] [card] +name=Titania's Song +auto=lord(artifact[-creature]) transforms((creature,noactivatedability,newability[manacost/manacost])) +auto=@movedTo(this|myGraveyard) from(battlefield):all(artifact[-creature]|myBattlefield) transforms((creature,noactivatedability,newability[manacost/manacost])) ueot +text=Each noncreature artifact loses all abilities and becomes an artifact creature with power and toughness each equal to its converted mana cost. If Titania's Song leaves the battlefield, this effect continues until end of turn. +mana={3}{G} +type=Enchantment +[/card] +[card] name=Titanic Pelagosaur mana={3}{U}{U} type=Creature @@ -50166,7 +50174,7 @@ toughness=5 [/card] [card] name=Xenic Poltergeist -auto={T}:target(artifact[-creature]) transforms((creature,setpower=0,settoughness=1,newability[dynamicability becomes(creature) ueot],newability[0/-1 ueot all(this)],newability[@each opponent untap:dynamicability becomes(creature) ueot],newability[@each opponent upkeep:0/-1 ueot all(this)])) uynt +auto={T}:target(artifact[-creature]) transforms((creature,newability[manacost/manacost])) uynt text={T}: Until your next upkeep, target noncreature artifact becomes an artifact creature with power and toughness each equal to its converted mana cost. mana={1}{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 86b7cd17d..81128348c 100644 --- a/projects/mtg/bin/Res/sets/primitives/mtg.txt +++ b/projects/mtg/bin/Res/sets/primitives/mtg.txt @@ -82279,7 +82279,26 @@ toughness=4 [/card] [card] name=Opalescence -auto=lord(other enchantment[-aura]) transforms((creature,newability[manacost/manacost])) +auto=lord(other enchantment[-aura;manacost=1]) transforms((,newability[becomes(Creature)],setpower=1,settoughness=1)) +auto=lord(other enchantment[-aura;manacost=2]) transforms((,newability[becomes(Creature)],setpower=2,settoughness=2)) +auto=lord(other enchantment[-aura;manacost=3]) transforms((,newability[becomes(Creature)],setpower=3,settoughness=3)) +auto=lord(other enchantment[-aura;manacost=4]) transforms((,newability[becomes(Creature)],setpower=4,settoughness=4)) +auto=lord(other enchantment[-aura;manacost=5]) transforms((,newability[becomes(Creature)],setpower=5,settoughness=5)) +auto=lord(other enchantment[-aura;manacost=6]) transforms((,newability[becomes(Creature)],setpower=6,settoughness=6)) +auto=lord(other enchantment[-aura;manacost=7]) transforms((,newability[becomes(Creature)],setpower=7,settoughness=7)) +auto=lord(other enchantment[-aura;manacost=8]) transforms((,newability[becomes(Creature)],setpower=8,settoughness=8)) +auto=lord(other enchantment[-aura;manacost=9]) transforms((,newability[becomes(Creature)],setpower=9,settoughness=9)) +auto=lord(other enchantment[-aura;manacost=10]) transforms((,newability[becomes(Creature)],setpower=10,settoughness=10)) +auto=lord(other enchantment[-aura;manacost=11]) transforms((,newability[becomes(Creature)],setpower=11,settoughness=11)) +auto=lord(other enchantment[-aura;manacost=12]) transforms((,newability[becomes(Creature)],setpower=12,settoughness=12)) +auto=lord(other enchantment[-aura;manacost=13]) transforms((,newability[becomes(Creature)],setpower=13,settoughness=13)) +auto=lord(other enchantment[-aura;manacost=14]) transforms((,newability[becomes(Creature)],setpower=14,settoughness=14)) +auto=lord(other enchantment[-aura;manacost=15]) transforms((,newability[becomes(Creature)],setpower=15,settoughness=15)) +auto=lord(other enchantment[-aura;manacost=16]) transforms((,newability[becomes(Creature)],setpower=16,settoughness=16)) +auto=lord(other enchantment[-aura;manacost=17]) transforms((,newability[becomes(Creature)],setpower=17,settoughness=17)) +auto=lord(other enchantment[-aura;manacost=18]) transforms((,newability[becomes(Creature)],setpower=18,settoughness=18)) +auto=lord(other enchantment[-aura;manacost=19]) transforms((,newability[becomes(Creature)],setpower=19,settoughness=19)) +auto=lord(other enchantment[-aura;manacost=20]) transforms((,newability[becomes(Creature)],setpower=20,settoughness=20)) mana={2}{W}{W} type=Enchantment text=Each other non-Aura enchantment is a creature with power and toughness each equal to its converted mana cost. It's still an enchantment. @@ -112540,6 +112559,11 @@ auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=1 auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=13]) transforms((,newability[becomes(Creature)],setpower=13,settoughness=13)) >4 auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=14]) transforms((,newability[becomes(Creature)],setpower=14,settoughness=14)) >4 auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=15]) transforms((,newability[becomes(Creature)],setpower=15,settoughness=15)) >4 +auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=16]) transforms((,newability[becomes(Creature)],setpower=16,settoughness=16)) >4 +auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=17]) transforms((,newability[becomes(Creature)],setpower=17,settoughness=17)) >4 +auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=18]) transforms((,newability[becomes(Creature)],setpower=18,settoughness=18)) >4 +auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=19]) transforms((,newability[becomes(Creature)],setpower=19,settoughness=19)) >4 +auto=aslongas(enchantment|mybattlefield) lord(other enchantment[-aura;manacost=20]) transforms((,newability[becomes(Creature)],setpower=20,settoughness=20)) >4 text=At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield. As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost. mana={4}{W} type=Enchantment diff --git a/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt b/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt index 360820454..fb55b0a70 100644 --- a/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt +++ b/projects/mtg/bin/Res/sets/primitives/planeswalkers.txt @@ -1296,7 +1296,7 @@ subtype=Karn name=Karn, the Great Creator auto=counter(0/0,5,loyalty) auto=lord(artifact|opponentBattlefield) noactivatedability -auto={C(0/0,1,Loyalty)}:name(+1: Becomes a creature) target(artifact[-creature]) transforms((creature,setpower=0,settoughness=1,newability[dynamicability becomes(creature) ueot],newability[0/-1 ueot all(this)],newability[@each opponent untap:dynamicability becomes(creature) ueot],newability[@each opponent upkeep:0/-1 ueot all(this)])) uynt +auto={C(0/0,1,Loyalty)}:name(+1: Becomes a creature) target(artifact[-creature]) transforms((creature,newability[manacost/manacost])) uynt auto={C(0/0,1,Loyalty)}:name(+1: Loyalty counter) donothing restriction{compare(cantargetcre)~lessthan~1} auto={C(0/0,-2,Loyalty)}:name(-2: move a card from exile) moveto(ownerhand) target(artifact|myexile) auto={C(0/0,-2,Loyalty)}:name(-2: move a card from sideboard) reveal:type:*:mysideboard revealzone(mysideboard) optionone name(choose card) target(<1>*[artifact]|reveal) moveto(myhand) and!(all(other *|reveal) moveto(ownersideboard))! optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownersideboard) and!(all(other *|reveal) moveto(ownersideboard))! optiontwoend revealend diff --git a/projects/mtg/bin/Res/sets/primitives/unsupported.txt b/projects/mtg/bin/Res/sets/primitives/unsupported.txt index 740710e38..269f1287d 100644 --- a/projects/mtg/bin/Res/sets/primitives/unsupported.txt +++ b/projects/mtg/bin/Res/sets/primitives/unsupported.txt @@ -14260,12 +14260,6 @@ mana={X}{R}{R} type=Sorcery [/card] [card] -name=Titania's Song -text=Each noncreature artifact loses all abilities and becomes an artifact creature with power and toughness each equal to its converted mana cost. If Titania's Song leaves the battlefield, this effect continues until end of turn. -mana={3}{G} -type=Enchantment -[/card] -[card] name=Togglodyte text=Togglodyte comes into play turned on. -- Whenever a player plays a spell, toggle Togglodyte's ON/OFF switch. -- As long as Togglodyte is turned off, it can't attack or block, and all damage it would deal is prevented. mana={3}