Completed STX set, fixed/added primitives, improved Android downloader, implemented the usage of ^ instead of , char (e.g. target multiple zones within transforms keyword), improved the code to avoid the multiple triggers in case of abilities gained from other cards (e.g. Kasmina, Enigma Sage).

This commit is contained in:
Vittorio Alfieri
2021-04-26 19:23:31 +02:00
parent 68a64238cb
commit e265dc3e7f
8 changed files with 2662 additions and 108 deletions

View File

@@ -1,6 +1,6 @@
#Primitives Pack for Wagic the Homebrew.
#Please keep these card alphabetized, and try to have the "name=" line at the top of each card
#I sorted this programatically so the other comments are removed except for AUTO_DEFINE - Vitty85 30-11-2020
#I sorted this programatically so the other comments are removed except for AUTO_DEFINE - Vitty85 25-04-2021
[card]
name=Abandon Reason
target=<upto:2>creature
@@ -1975,7 +1975,7 @@ type=Enchantment
[/card]
[card]
name=Ajani's Pridemate
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):counter(1/1,1)
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):counter(1/1,1)
text=Whenever you gain life, put a +1/+1 counter on Ajani's Pridemate.
mana={1}{W}
type=Creature
@@ -3466,8 +3466,7 @@ type=Sorcery
[/card]
[card]
name=Ancient Amphitheater
auto=tap(noevent)
auto=aslongas(giant|myHand) untap
auto=if type(*[giant]|myhand)~equalto~0 then tap(noevent)
auto={T}:Add{R}
auto={T}:Add{W}
text=As Ancient Amphitheater enters the battlefield, you may reveal a Giant card from your hand. If you don't, Ancient Amphitheater enters the battlefield tapped. -- {T}: Add {R} or {W} to your mana pool.
@@ -5144,7 +5143,7 @@ toughness=4
[card]
name=Archangel of Thune
abilities=flying,lifelink
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):all(creature|mybattlefield) counter(1/1,1)
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):all(creature|mybattlefield) counter(1/1,1)
text=Flying. -- Lifelink. -- Whenever you gain life, put a +1/+1 counter on each creature you control.
mana={3}{W}{W}
type=Creature
@@ -6907,8 +6906,7 @@ toughness=1
[/card]
[card]
name=Auntie's Hovel
auto=tap(noevent)
auto=aslongas(goblin|myHand) untap
auto=if type(*[goblin]|myhand)~equalto~0 then tap(noevent)
auto={T}:Add{B}
auto={T}:Add{R}
text=As Auntie's Hovel enters the battlefield, you may reveal a Goblin card from your hand. If you don't, Auntie's Hovel enters the battlefield tapped. -- {T}: Add {B} or {R} to your mana pool.
@@ -12219,7 +12217,7 @@ type=Enchantment
[/card]
[card]
name=Bloodbond Vampire
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):counter(1/1,1)
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):counter(1/1,1)
text=Whenever you gain life, put a +1/+1 counter on Bloodbond Vampire.
mana={2}{B}{B}
type=Creature
@@ -19444,7 +19442,7 @@ toughness=2
[/card]
[card]
name=Choked Estuary
auto=aslongas(island,swamp|myhand) tap(noevent) <1
auto=if type(*[island;swamp]|myhand)~equalto~0 then tap(noevent)
auto={T}:add{U}
auto={T}:add{B}
text=As Choked Estuary enters the battlefield, you may reveal an Island or Swamp card from your hand. If you don't, Choked Estuary enters the battlefield tapped. -- {T}: Add {U} or {B} to your mana pool.
@@ -20323,7 +20321,7 @@ toughness=1
[card]
name=Cliffhaven Vampire
abilities=flying
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):life:-1 opponent
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):life:-1 opponent
text=Flying -- Whenever you gain life, each opponent loses 1 life.
mana={2}{W}{B}
type=Creature
@@ -32126,7 +32124,7 @@ toughness=4
[card]
name=Drogskol Reaver
abilities=flying,double strike,lifelink
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):draw:1 controller
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):draw:1 controller
text=Flying, double strike, lifelink -- Whenever you gain life, draw a card.
mana={5}{W}{U}
type=Creature
@@ -41212,8 +41210,7 @@ toughness=1
[/card]
[card]
name=Flamekin Village
auto=tap(noevent)
auto=aslongas(Elemental|myHand) untap
auto=if type(*[elemental]|myhand)~equalto~0 then tap(noevent)
auto={T}:Add{r}
auto={r}{t}:target(creature) haste ueot
text=As Flamekin Village enters the battlefield, you may reveal an Elemental card from your hand. If you don't, Flamekin Village enters the battlefield tapped. -- {T}: Add {R} to your mana pool. -- {R}, {T}: Target creature gains haste until end of turn.
@@ -42707,7 +42704,7 @@ toughness=1
[/card]
[card]
name=Foreboding Ruins
auto=aslongas(mountain,swamp|myhand) tap(noevent) <1
auto=if type(*[mountain;swamp]|myhand)~equalto~0 then tap(noevent)
auto={T}:add{B}
auto={T}:add{R}
text=As Foreboding Ruins enters the battlefield, you may reveal a Swamp or Mountain card from your hand. If you don't, Foreboding Ruins enters the battlefield tapped. -- {T}: Add {B} or {R} to your mana pool.
@@ -42962,7 +42959,7 @@ toughness=6
[/card]
[card]
name=Fortified Village
auto=aslongas(forest,plains|myhand) tap(noevent) <1
auto=if type(*[plains;forest]|myhand)~equalto~0 then tap(noevent)
auto={T}:add{G}
auto={T}:add{W}
text=As Fortified Village enters the battlefield, you may reveal a Forest or Plains card from your hand. If you don't, Fortified Village enters the battlefield tapped. -- {T}: Add {G} or {W} to your mana pool.
@@ -44475,7 +44472,7 @@ type=Sorcery
[/card]
[card]
name=Game Trail
auto=aslongas(mountain,forest|myhand) tap(noevent) <1
auto=if type(*[mountain;forest]|myhand)~equalto~0 then tap(noevent)
auto={T}:add{R}
auto={T}:add{G}
text=As Game Trail enters the battlefield, you may reveal a Mountain or Forest card from your hand. If you don't, Game Trail enters the battlefield tapped. -- {T}: Add {R} or {G} to your mana pool.
@@ -46418,8 +46415,7 @@ toughness=3
[/card]
[card]
name=Gilt-Leaf Palace
auto=tap(noevent)
auto=aslongas(elf|myHand) untap
auto=if type(*[elf]|myhand)~equalto~0 then tap(noevent)
auto={T}:Add{B}
auto={T}:Add{G}
text=As Gilt-Leaf Palace enters the battlefield, you may reveal an Elf card from your hand. If you don't, Gilt-Leaf Palace enters the battlefield tapped. -- {T}: Add {B} or {G} to your mana pool.
@@ -61152,7 +61148,7 @@ toughness=2
[/card]
[card]
name=Kalastria Nightwatch
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):flying ueot
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):flying ueot
text=Whenever you gain life, Kalastria Nightwatch gains flying until end of turn.
mana={4}{B}
type=Creature
@@ -61549,7 +61545,7 @@ type=Sorcery
[/card]
[card]
name=Karlov of the Ghost Council
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):counter(1/1,2)
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):counter(1/1,2)
auto={W}{B}{C(1/1,-6)}:moveto(exile) target(creature)
text=Whenever you gain life, put two +1/+1 counters on Karlov of the Ghost Council. -- {W}{B}, Remove six +1/+1 counters from Karlov of the Ghost Council: Exile target creature.
mana={W}{B}
@@ -70056,7 +70052,7 @@ toughness=1
[card]
name=Malakir Familiar
abilities=flying,deathtouch
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):1/1 ueot
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):1/1 ueot
text=Flying, deathtouch -- Whenever you gain life, Malakir Familiar gets +1/+1 until end of turn.
mana={2}{B}
type=Creature
@@ -77134,7 +77130,7 @@ toughness=4
[/card]
[card]
name=Murmuring Bosk
auto=if type(treefolk|myhand)~lessthan~1 then tap(noevent)
auto=if type(treefolk|myhand)~equalto~0 then tap(noevent)
auto={T}:Add{W} and!( damage:1 controller )!
auto={T}:Add{B} and!( damage:1 controller )!
text=({T}: Add {G} to your mana pool.) -- As Murmuring Bosk enters the battlefield, you may reveal a Treefolk card from your hand. If you don't, Murmuring Bosk enters the battlefield tapped. -- {T}: Add {W} or {B} to your mana pool. Murmuring Bosk deals 1 damage to you.
@@ -80038,7 +80034,7 @@ toughness=1
[/card]
[card]
name=Nirkana Assassin
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):deathtouch ueot
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):deathtouch ueot
text=Whenever you gain life, Nirkana Assassin gains deathtouch until end of turn. (Any amount of damage it deals to a creature is enough to destroy it.)
mana={2}{B}
type=Creature
@@ -87568,7 +87564,7 @@ toughness=2
[/card]
[card]
name=Port Town
auto=aslongas(island,plains|myhand) tap(noevent) <1
auto=if type(*[plains;island]|myhand)~equalto~0 then tap(noevent)
auto={T}:add{W}
auto={T}:add{U}
text=As Port Town enters the battlefield, you may reveal a Plains or Island card from your hand. If you don't, Port Town enters the battlefield tapped. -- {T}: Add {W} or {U} to your mana pool.
@@ -97604,8 +97600,7 @@ toughness=1
[/card]
[card]
name=Rustic Clachan
auto=tap(noevent)
auto=aslongas(kithkin|myHand) untap
auto=if type(*[kithkin]|myhand)~equalto~0 then tap(noevent)
auto={T}:Add{W}
autohand={1}{W}{discard}:counter(1/1,1) target(creature)
text=As Rustic Clachan enters the battlefield, you may reveal a Kithkin card from your hand. If you don't, Rustic Clachan enters the battlefield tapped. -- {T}: Add {W} to your mana pool. -- Reinforce 1 - {1}{W} ({1}{W}, Discard this card: Put a +1/+1 counter on target creature.)
@@ -101136,7 +101131,7 @@ type=Instant
[/card]
[card]
name=Searing Meditation
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):pay({2}) target(creature,player) damage:2
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):pay({2}) target(creature,player) damage:2
text=Whenever you gain life, you may pay {2}. If you do, Searing Meditation deals 2 damage to target creature or player.
mana={1}{R}{W}
type=Enchantment
@@ -101263,8 +101258,7 @@ type=Artifact Land
[/card]
[card]
name=Secluded Glen
auto=tap(noevent)
auto=aslongas(faerie|myHand) untap
auto=if type(*[faerie]|myhand)~equalto~0 then tap(noevent)
auto={T}:Add{U}
auto={T}:Add{B}
text=As Secluded Glen enters the battlefield, you may reveal a Faerie card from your hand. If you don't, Secluded Glen enters the battlefield tapped. -- {T}: Add {U} or {B} to your mana pool.
@@ -102343,7 +102337,7 @@ type=Sorcery
[/card]
[card]
name=Serene Steward
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):pay({W}) counter(1/1) target(creature)
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):pay({W}) counter(1/1) target(creature)
text=Whenever you gain life, you may pay {W}. If you do, put a +1/+1 counter on target creature.
mana={1}{W}
type=Creature
@@ -131082,7 +131076,7 @@ toughness=5
[card]
name=Wall of Limbs
abilities=defender
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection]):counter(1/1,1)
auto=@lifeof(player) from(*[-Alhammarret's Archive;-Angel of Vitality;-Boon Reflection;-Honor Troll]):counter(1/1,1)
auto={5}{B}{B}{S}:name(Lose Life) target(player) life:-storedpower
text=Defender (This creature can't attack.) -- Whenever you gain life, put a +1/+1 counter on Wall of Limbs. -- {5}{B}{B}, Sacrifice Wall of Limbs: Target player loses X life, where X is Wall of Limbs's power.
mana={2}{B}
@@ -131510,8 +131504,7 @@ subtype=Aura
[/card]
[card]
name=Wanderwine Hub
auto=tap(noevent)
auto=aslongas(merfolk|myHand) untap
auto=if type(*[merfolk]|myhand)~equalto~0 then tap(noevent)
auto={T}:Add{W}
auto={T}:Add{U}
text=As Wanderwine Hub enters the battlefield, you may reveal a Merfolk card from your hand. If you don't, Wanderwine Hub enters the battlefield tapped. -- {T}: Add {W} or {U} to your mana pool.