diff --git a/projects/mtg/bin/Res/ai/baka/deck130.txt b/projects/mtg/bin/Res/ai/baka/deck130.txt index 8c0195881..479ac264d 100644 --- a/projects/mtg/bin/Res/ai/baka/deck130.txt +++ b/projects/mtg/bin/Res/ai/baka/deck130.txt @@ -1,27 +1,19 @@ -#NAME: Kai Buide 1999 -#DESC: 1999 World Championship Deck -#DESC: by Kai Buide -Mountain (*) *13 -Voltaic Key (*) * 4 -Thran Dynamo (*) * 4 -Grim Monolith (*) * 4 -Fire Diamond (*) *4 -Mishra's Helix (*) *2 -Worn Powerstone (*) *2 -City of Traitors (*) *4 -Wildfire (*) *4 -Masticore (*) *3 -Ancient Tomb (*) *3 -Karn, Silver Golem (*) *1 -Covetous Dragon (*) *4 -Earthquake (*) *4 -Temporal Aperture (*) * 4 - - -#SB: Mishra's Helix (*) *1 -#SB: Spellshock (*) *4 -#SB: Boil (*) *2 -#SB: Phyrexian Processor (*) *1 -#SB: Cursed Scroll (*) *4 -#SB: Rack and Ruin (*) *2 -#SB: Shattering Pulse (*) *2 +#NAME:Budde's Ponza +#DESC:Deck by Kai Budde, 2003 +Dwarven Blastminer *2 +Rorix Bladewing *2 +Siege-Gang Commander *3 +Hammer of Bogardan *2 +Lay Waste *4 +Molten Rain *4 +Pyrite Spellbomb *4 +Spark Spray *3 +Starstorm *4 +Stone Rain (8ED) *4 +Talisman of Impulse *4 +Mountain (8ED) *4 +Mountain (7ED) *4 +Mountain (MRD) *4 +Mountain (ONS) *4 +Mountain (ODY) *4 +Forgotten Cave (ONS) *4 \ No newline at end of file diff --git a/projects/mtg/bin/Res/ai/baka/deck139.txt b/projects/mtg/bin/Res/ai/baka/deck139.txt index 2db9ff50d..08ce2aed7 100644 --- a/projects/mtg/bin/Res/ai/baka/deck139.txt +++ b/projects/mtg/bin/Res/ai/baka/deck139.txt @@ -1,4 +1,4 @@ -#NAME: The New Mutatants +#NAME:Mutants #DESC: The First Ikoria Mutation Deck Arboreal Grazer (*) *4 Pollywog Symbiote (*) *3 diff --git a/projects/mtg/bin/Res/ai/baka/deck153.txt b/projects/mtg/bin/Res/ai/baka/deck153.txt index 6a1e4b575..967ae7cca 100644 --- a/projects/mtg/bin/Res/ai/baka/deck153.txt +++ b/projects/mtg/bin/Res/ai/baka/deck153.txt @@ -1,50 +1,135 @@ -#NAME:Krenko Commander 2023 #DESC:Original Deck by AGunWithLegs (tappedout.net), #DESC:refined for Wagic by Bob #HINT:castpriority(commander,creature,*) #HINT:dontattackwith(Krenko, Mob Boss) #HINT:dontblockwith(Krenko, Mob Boss) -Basilisk Collar (*) * 1 Battle Cry Goblin (*) * 1 Blasphemous Act (*) * 1 Blood Moon (*) * 1 Bloodmark Mentor (SHM) (*) * 1 Boggart Shenanigans (*) * 1 Chancellor of the Forge (*) * 1 Coat of Arms (*) * 1 Dragon Fodder (ALA) (*) * 1 Flamekin Village (*) * 1 Foundry Street Denizen (*) * 1 Goblin Assassin (*) * 1 Goblin Burrows (*) * 1 Goblin Caves (*) * 1 Goblin Chieftain (*) * 1 Goblin Chirurgeon (*) * 1 Goblin Dark-Dwellers (*) * 1 Goblin General (*) * 1 Goblin Grenade (*) * 1 Goblin King (*) * 1 Goblin Lackey (*) * 1 Goblin Oriflamme (*) * 1 Goblin Matron (*) * 1 Goblin Piledriver (*) * 1 Goblin Rally (*) * 1 Goblin Recruiter (*) * 1 Goblin Sharpshooter (*) * 1 Goblin Snowman (*) * 1 Goblin War Strike (*) * 1 Goblin Warchief (*) * 1 Goblin Wardriver (*) * 1 Goblin War Drums (*) * 1 Goblin Wizard (*) * 1 -Homeward Path (*) * 1 -Horde of Boggarts (*) * 1 -Hordeling Outburst (*) * 1 -Impact Tremors (*) * 1 -Intimidator Initiate (*) * 1 -Krenko's Enforcer (*) * 1 -Krenko's Command (*) * 1 -Krenko, Tin Street Kingpin (*) * 1 -Legion Loyalist (*) * 1 -Legion Warboss (*) * 1 -Lightning Greaves (MRD) (*) * 1 -Madblind Mountain (*) * 1 -Mask of Avacyn (*) * 1 -Mob Justice (*) * 1 -Mogg Alarm (*) * 1 -Mogg Flunkies (*) * 1 -Mogg Maniac (*) * 1 -Mogg Raider (*) * 1 -Moggcatcher (*) * 1 -Mons's Goblin Raiders (*) * 1 -Mountain (4ED) (*) * 4 -Mountain (M10) (*) * 4 -Mountain (ICE) (*) * 4 -Mountain (M20) (*) * 4 -Mountain (MIR) (*) * 4 -Mountain (LEA) (*) * 3 -Mountain (5ED) (*) * 3 -Pashalik Mons (*) * 1 -Prophetic Ravings (*) * 1 -Purphoros, God of the Forge (*) * 1 -Quest for the Goblin Lord (*) * 1 -Rising of the Day (*) * 1 -Reckless Bushwhacker (*) * 1 -Reckless One (*) * 1 -Reliquary Tower (*) * 1 -Ruby Medallion (*) * 1 -Shared Animosity (*) * 1 -Siege-Gang Commander (*) * 1 -Skirk Commando (*) * 1 -Smash (*) * 1 -Smoldering Spires (*) * 1 -Sol Ring (*) * 1 -Swiftfoot Boots (*) * 1 -Valakut, the Molten Pinnacle (*) * 1 -Vandalblast (*) * 1 -Warren Instigator (*) * 1 -Whispersilk Cloak (*) * 1 +#NAME:Krenko Commander 2023 +#DESC:Original Deck by AGunWithLegs (tappedout.net), +#DESC:refined for Wagic by Bob +#HINT:castpriority(commander,creature,*) +#HINT:dontattackwith(Krenko, Mob Boss) +#HINT:dontblockwith(Krenko, Mob Boss) +Basilisk Collar (*) * 1 +Battle Cry Goblin (*) * 1 +Blasphemous Act (*) * 1 +Blood Moon (*) * 1 +Bloodmark Mentor (SHM) (*) * 1 +Boggart Shenanigans (*) * 1 +Chancellor of the Forge (*) * 1 +Coat of Arms (*) * 1 +Dragon Fodder (ALA) (*) * 1 +Flamekin Village (*) * 1 +Foundry Street Denizen (*) * 1 +Goblin Assassin (*) * 1 +Goblin Burrows (*) * 1 +Goblin Caves (*) * 1 +Goblin Chieftain (*) * 1 +Goblin Chirurgeon (*) * 1 +Goblin Dark-Dwellers (*) * 1 +Goblin General (*) * 1 +Goblin Grenade (*) * 1 +Goblin King (*) * 1 +Goblin Lackey (*) * 1 +Goblin Oriflamme (*) * 1 +Goblin Matron (*) * 1 +Goblin Piledriver (*) * 1 +Goblin Rally (*) * 1 +Goblin Recruiter (*) * 1 +Goblin Sharpshooter (*) * 1 +Goblin Snowman (*) * 1 +Goblin War Strike (*) * 1 +Goblin Warchief (*) * 1 +Goblin Wardriver (*) * 1 +Goblin War Drums (*) * 1 +Goblin Wizard (*) * 1 + +Homeward Path (*) * 1 + +Horde of Boggarts (*) * 1 + +Hordeling Outburst (*) * 1 + +Impact Tremors (*) * 1 + +Intimidator Initiate (*) * 1 + +Krenko's Enforcer (*) * 1 + +Krenko's Command (*) * 1 + +Krenko, Tin Street Kingpin (*) * 1 + +Legion Loyalist (*) * 1 + +Legion Warboss (*) * 1 + +Lightning Greaves (MRD) (*) * 1 + +Madblind Mountain (*) * 1 + +Mask of Avacyn (*) * 1 + +Mob Justice (*) * 1 + +Mogg Alarm (*) * 1 + +Mogg Flunkies (*) * 1 + +Mogg Maniac (*) * 1 + +Mogg Raider (*) * 1 + +Moggcatcher (*) * 1 + +Mons's Goblin Raiders (*) * 1 + +Mountain (4ED) (*) * 4 + +Mountain (M10) (*) * 4 + +Mountain (ICE) (*) * 4 + +Mountain (M20) (*) * 4 + +Mountain (MIR) (*) * 4 + +Mountain (LEA) (*) * 3 + +Mountain (5ED) (*) * 3 + +Pashalik Mons (*) * 1 + +Prophetic Ravings (*) * 1 + +Purphoros, God of the Forge (*) * 1 + +Quest for the Goblin Lord (*) * 1 + +Rising of the Day (*) * 1 + +Reckless Bushwhacker (*) * 1 + +Reckless One (*) * 1 + +Reliquary Tower (*) * 1 + +Ruby Medallion (*) * 1 + +Shared Animosity (*) * 1 + +Siege-Gang Commander (*) * 1 + +Skirk Commando (*) * 1 + +Smash (*) * 1 + +Smoldering Spires (*) * 1 + +Sol Ring (*) * 1 + +Swiftfoot Boots (*) * 1 + +Valakut, the Molten Pinnacle (*) * 1 + +Vandalblast (*) * 1 + +Warren Instigator (*) * 1 + +Whispersilk Cloak (*) * 1 + #CMD:Krenko, Mob Boss (*) * 1 \ No newline at end of file diff --git a/projects/mtg/bin/Res/sets/primitives/borderline.txt b/projects/mtg/bin/Res/sets/primitives/borderline.txt index d9eccfdef..3ae9aa1a3 100644 --- a/projects/mtg/bin/Res/sets/primitives/borderline.txt +++ b/projects/mtg/bin/Res/sets/primitives/borderline.txt @@ -1,7 +1,7 @@ grade=borderline #Bordeline 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 programmatically - Thanks to Vitty85 13-07-2023 +#I sorted this programmatically - Thanks to Vitty85 17-07-2023 [card] name=+2 Mace auto={3}:equip @@ -21861,7 +21861,7 @@ type=Sorcery [card] name=Deadbridge Chant auto=deplete:10 controller -auto=@each my upkeep restriction{if type(creature|mygraveyard)~morethan~0}:moveTo(myBattlefield) target(creature|myGraveyard) ifnot moveTo(*[-creature]|myHand) +auto=@each my upkeep:name(Choose a random card) moverandom(*) from(mygraveyard) to(myhand) and!( if cantargetcard(*[creature]|*) then moveto(mybattlefield) )! text=When Deadbridge Chant enters the battlefield, put the top ten cards of your library into your graveyard. -- At the beginning of your upkeep, choose a card at random in your graveyard. If it's a creature card, put it onto the battlefield. Otherwise, put it into your hand. mana={4}{B}{G} type=Enchantment @@ -24366,8 +24366,9 @@ toughness=2 [/card] [card] name=Display of Dominance -auto=choice name(Destroy) destroy target(*[blue;black;-creature]) -auto=choice name(Protection) lord(*|mybattlefield) cantbetargetof(*[blue;black]|opponentstack) +auto=if type(*[blue&-creature]|battlefield)~morethan~0 then choice name(Destroy blue permanent) name(Destroy blue permanent) destroy target(*[blue&-creature]|battlefield) +auto=if type(*[black&-creature]|battlefield)~morethan~0 then choice name(Destroy black permanent) name(Destroy black permanent) destroy target(*[black&-creature]|battlefield) +auto=choice name(Gain protection) all(*|mybattlefield) transforms((,newability[cantbetargetof(*[blue;black]|opponentcastingzone)])) ueot text=Choose one -- Destroy target blue or black noncreature permanent. -- Permanents you control can't be the targets of blue or black spells your opponents control this turn. mana={1}{G} type=Instant @@ -25942,7 +25943,7 @@ toughness=4 [card] name=Dream Coat target=creature -auto=teach(creature) {0}:name(change color/s) ability$!name(choose color/s) choice name(white) becomes(,white) ueot _ choice name(blue) becomes(,blue) ueot _ choice name(black) becomes(,black) ueot _ choice name(red) becomes(,red) ueot _ choice name(green) becomes(,green) ueot _ choice name(white & blue) becomes(,white,blue) ueot _ choice name(blue & black) becomes(,black,blue) ueot _ choice name(black & red) becomes(,black,red) ueot _ choice name(red & green) becomes(,red,green) ueot _ choice name(green & white) becomes(,white,green) ueot _ choice name(white & black) becomes(,white,black) ueot _ choice name(blue & red) becomes(,red,blue) ueot _ choice name(black & green) becomes(,black,green) ueot _ choice name(red & white) becomes(,white,red) ueot _ choice name(green & blue) becomes(,green,blue) ueot _ choice name(green & white & blue) becomes(,green,white,blue) ueot _ choice name(white & blue & black) becomes(,black,white,blue) ueot _ choice name(blue & black & red) becomes(,black,red,blue) ueot _ choice name(black & red & green) becomes(,green,black,red) ueot _ choice name(red & green & white) becomes(,green,white,red) ueot _ choice name(white & black & green) becomes(,green,white,black) ueot _ choice name(blue & red & white) becomes(,red,white,blue) ueot _ choice name(black & green & blue) becomes(,green,black,blue) ueot _ choice name(red & white & black) becomes(,black,white,red) ueot _ choice name(green & blue & red) becomes(,green,red,blue) ueot _ choice name(green & red & blue & black) becomes(,green,red,blue,black) ueot _ choice name(green & red & blue & white) becomes(,green,red,blue,white) ueot _ choice name(white & blue & black & red) becomes(,white,red,blue,black) ueot _ choice name(white & blue & black & green) becomes(,white,green,blue,black) ueot _ choice name(all colors) becomes(,white,red,blue,black,green) ueot!$ controller limit:1 +auto=teach(creature) transforms((,newability[{0}:name(change colors) ability$!name(choose colors) choice name(white) all(mysource) becomes(^white) forever _ choice name(blue) all(mysource) becomes(^blue) forever _ choice name(black) all(mysource) becomes(^black) forever _ choice name(red) all(mysource) becomes(^red) forever _ choice name(green) all(mysource) becomes(^green) forever _ choice name(white & blue) all(mysource) becomes(^white^blue) forever _ choice name(blue & black) all(mysource) becomes(^black^blue) forever _ choice name(black & red) all(mysource) becomes(^black^red) forever _ choice name(red & green) all(mysource) becomes(^red^green) forever _ choice name(green & white) all(mysource) becomes(^white^green) forever _ choice name(white & black) all(mysource) becomes(^white^black) forever _ choice name(blue & red) all(mysource) becomes(^red^blue) forever _ choice name(black & green) all(mysource) becomes(^black^green) forever _ choice name(red & white) all(mysource) becomes(^white^red) forever _ choice name(green & blue) all(mysource) becomes(^green^blue) forever _ choice name(green & white & blue) all(mysource) becomes(^green^white^blue) forever _ choice name(white & blue & black) all(mysource) becomes(^black^white^blue) forever _ choice name(blue & black & red) all(mysource) becomes(^black^red^blue) forever _ choice name(black & red & green) all(mysource) becomes(^green^black^red) forever _ choice name(red & green & white) all(mysource) becomes(^green^white^red) forever _ choice name(white & black & green) all(mysource) becomes(^green^white^black) forever _ choice name(blue & red & white) all(mysource) becomes(^red^white^blue) forever _ choice name(black & green & blue) all(mysource) becomes(^green^black^blue) forever _ choice name(red & white & black) all(mysource) becomes(^black^white^red) forever _ choice name(green & blue & red) all(mysource) becomes(^green^red^blue) forever _ choice name(green & red & blue & black) all(mysource) becomes(^green^red^blue^black) forever _ choice name(green & red & blue & white) all(mysource) becomes(^green^red^blue^white) forever _ choice name(white & blue & black & red) all(mysource) becomes(^white^red^blue^black) forever _ choice name(white & blue & black & green) all(mysource) becomes(^white^green^blue^black) forever _ choice name(all colors) all(mysource) becomes(^white^red^blue^black^green) forever!$ controller limit:1])) text=Enchant creature -- {0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn. mana={U} type=Enchantment @@ -26023,11 +26024,14 @@ toughness=5 [/card] [card] name=Dream's Grip -target=*|battlefield +restriction=type(*|battlefield)~morethan~0 +otherrestriction=type(*|battlefield)~morethan~0 other={1}{U} name(Entwine) -auto=ifnot paid(alternative) then transforms((,newability[choice tap(noevent)],newability[choice untap])) -auto=if paid(alternative) then tap(noevent) && untap target(*|battlefield) -text=Choose one Tap target permanent; or untap target permanent. -- Entwine {1} (Choose both if you pay the entwine cost.) +auto=ifnot paid(alternative) then choice name(Tap permanent) name(Tap permanent) target(*|battlefield) tap +auto=ifnot paid(alternative) then choice name(Untap permanent) name(Untap permanent) target(*|battlefield) untap +auto=if paid(alternative) then if type(*|opponentbattlefield)~morethan~0 then choice name(Tap opponent permanent) name(Tap opponent permanent) target(*|opponentbattlefield) transforms((,newability[tap],newability[ability$!name(Untap permanent) name(Untap permanent) target(*|battlefield) untap!$ opponent])) oneshot +auto=if paid(alternative) then if type(*|mybattlefield)~morethan~0 then choice name(Tap your permanent) name(Tap your permanent) target(*|mybattlefield) transforms((,newability[tap],newability[name(Untap permanent) name(Untap permanent) target(*|battlefield) untap])) oneshot +text=Choose one -- Tap target permanent -- Untap target permanent. -- Entwine {1} (Choose both if you pay the entwine cost.) mana={U} type=Instant [/card] @@ -26071,7 +26075,8 @@ toughness=1 [/card] [card] name=Dreamshaper Shaman -auto=@each my endofturn:pay({2}{R}):Reveal:1 revealzone(mylibrary) revealuntil(*[-land;-instant;-sorcery]|mylibrary) optionone target(*[-land]|reveal) moveto(battlefield) optiononeend optiontwo choice name(Put on Bottom) all(*|reveal) bottomoflibrary optiontwoend revealend +aicode=activate transforms((,newability[all(*[zpos=findfirsttypepermanent]|mylibrary) moveto(myreveal) and!( transforms((,newability[if cantargetcard(*[-land]|*) then moveto(mybattlefield) else bottomoflibrary],newability[all(*[zpos<=findfirsttypepermanent]|mylibrary) moveto(myreveal) and!( bottomoflibrary )!])) oneshot )!])) oneshot +auto=@each my endofturn restriction{type(*[-land]|mybattlefield)~morethan~0}:may name(Sacrifice nonland and pay) target(*[-land]|mybattlefield) sacrifice and!( name(Pay 2R) pay({2}{R}) name(Pay 2R) reveal:1 revealzone(mylibrary) revealuntil(*[-land;-instant;-sorcery]|mylibrary) optionone name(Choose nonland permanent) target(*[-land;-instant;-sorcery]|reveal) moveto(mylibrary) and!( becomes(tobedre) ueot )! optiononeend optiontwo name(Put on Bottom) all(*|reveal) bottomoflibrary optiontwoend afterrevealed all(tobedre|mylibrary) moveto(mybattlefield) afterrevealedend revealend )! text=At the beginning of your end step, you may pay {2}{R} and sacrifice a nonland permanent. If you do, reveal cards from the top of your library until you reveal a nonland permanent card. Put that card onto the battlefield and the rest on the bottom of your library in a random order. mana={5}{R} type=Enchantment Creature @@ -26932,7 +26937,216 @@ toughness=1 [/card] [card] name=Dwarven Catapult -auto=thisforeach(X) ability$!name(Choose a creature) damage:1 target(creature|opponentBattlefield)!$ controller +auto=if compare(fullpaid)~equalto~1 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~2 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~2 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~3 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~3 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~3 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~4 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~4 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~4 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~4 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~5 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:5 +auto=if compare(fullpaid)~equalto~5 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~5 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~5 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~5 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~6 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:6 +auto=if compare(fullpaid)~equalto~6 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~6 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~6 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~6 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~6 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~7 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:7 +auto=if compare(fullpaid)~equalto~7 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~7 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~7 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~7 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~7 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~7 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~8 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:8 +auto=if compare(fullpaid)~equalto~8 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~8 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~8 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~8 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~8 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~8 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~8 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:9 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~9 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:10 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:5 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~10 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:11 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:5 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~11 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:12 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:6 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~12 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:13 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:6 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~13 then if type(creature|opponentBattlefield)~equalto~13 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:14 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:7 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~13 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~14 then if type(creature|opponentBattlefield)~equalto~14 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:15 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:7 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:5 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~13 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~14 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~15 then if type(creature|opponentBattlefield)~equalto~15 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:16 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:8 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:5 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~13 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~14 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~15 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~16 then if type(creature|opponentBattlefield)~equalto~16 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:17 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:8 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:5 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~13 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~14 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~15 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~16 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~17 then if type(creature|opponentBattlefield)~equalto~17 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:18 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:9 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:6 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~13 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~14 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~15 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~16 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~17 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~18 then if type(creature|opponentBattlefield)~equalto~18 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:19 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:9 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:6 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~13 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~14 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~15 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~16 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~17 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~18 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~equalto~19 then if type(creature|opponentBattlefield)~equalto~19 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~1 then all(creature|opponentBattlefield) damage:20 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~2 then all(creature|opponentBattlefield) damage:10 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~3 then all(creature|opponentBattlefield) damage:6 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~4 then all(creature|opponentBattlefield) damage:5 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~5 then all(creature|opponentBattlefield) damage:4 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~6 then all(creature|opponentBattlefield) damage:3 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~7 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~8 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~9 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~10 then all(creature|opponentBattlefield) damage:2 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~11 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~12 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~13 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~14 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~15 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~16 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~17 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~18 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~19 then all(creature|opponentBattlefield) damage:1 +auto=if compare(fullpaid)~morethan~19 then if type(creature|opponentBattlefield)~equalto~20 then all(creature|opponentBattlefield) damage:1 text=Dwarven Catapult deals X damage divided evenly, rounded down, among all creatures target opponent controls. mana={X}{R} type=Instant @@ -91438,8 +91652,8 @@ type=Instant [/card] [card] name=Spiteful Banditry -auto=name(Damage all creatures) damage:fullpaid all(creature|battlefield) auto=@movedto(creature|graveyard) from(opponentbattlefield) turnlimited:name(Create treasure) token(Treasure) +auto=name(Damage all creatures) damage:fullpaid all(creature|battlefield) text=When Spiteful Banditry enters the battlefield, it deals X damage to each creature. -- Whenever one or more creatures your opponents control die, you create a Treasure token. This ability triggers only once each turn. mana={X}{R}{R} type=Enchantment diff --git a/projects/mtg/bin/Res/sets/primitives/mtg.txt b/projects/mtg/bin/Res/sets/primitives/mtg.txt index f21d64483..e47de3b11 100644 --- a/projects/mtg/bin/Res/sets/primitives/mtg.txt +++ b/projects/mtg/bin/Res/sets/primitives/mtg.txt @@ -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 programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 13-07-2023 +#I sorted this programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 17-07-2023 [card] name=Abandon Reason target=creature @@ -28568,9 +28568,9 @@ type=Sorcery name=Depala, Pilot Exemplar auto=lord(other dwarf|mybattlefield) 1/1 auto=lord(creature[vehicle]|mybattlefield) 1/1 -aicode=activate target(*[zpos<=x]|mylibrary) name(revealed card) moveto(myhand) name(revealed card) and!(if cantargetcard(*[-dwarf;-vehicle]|*) then bottomoflibrary)! -auto=@tapped(this):may pay({1}) name(Pay 1) Reveal:1 revealzone(mylibrary) optionone all(*[dwarf;vehicle]|reveal) moveto(ownerhand) optiononeend optiontwo all(*|reveal) bottomoflibrary optiontwoend revealend -text=Other Dwarves you control get +1/+1. -- Each Vehicle you control gets +1/+1 as long as it's a creature. -- Whenever Depala, Pilot Exemplar becomes tapped, you may pay {X}. If you do, reveal the top X cards of your library, put all Dwarf and Vehicle cards from among them into your hand, then put the rest on the bottom of your library in a random order. -- +aicode=activate target(*[zpos<=x]|mylibrary) moveto(myhand) and!( if cantargetcard(*[-dwarf&-vehicle]|*) then bottomoflibrary )! +auto=@tapped(this):may name(Pay and reveal) pay({X}) name(Pay and reveal) reveal:x optionone name(Get dwarves and vehicles) target(*[dwarf;vehicle]|reveal) moveto(ownerhand) optiononeend optiontwo name(Put on bottom) target(*|reveal) bottomoflibrary and!( all(*|reveal) bottomoflibrary )! optiontwoend revealend +text=Other Dwarves you control get +1/+1. -- Each Vehicle you control gets +1/+1 as long as it's a creature. -- Whenever Depala, Pilot Exemplar becomes tapped, you may pay {X}. If you do, reveal the top X cards of your library, put all Dwarf and Vehicle cards from among them into your hand, then put the rest on the bottom of your library in a random order. mana={1}{R}{W} type=Legendary Creature subtype=Dwarf Pilot @@ -28705,7 +28705,8 @@ toughness=3 [/card] [card] name=Descendants' Path -auto=@each my upkeep:reveal:1 optionone name(Reveal)if type(creature|reveal)~morethan~0 then name(Check to cast) target(creature|reveal) transforms((,newability[if type(*[share!types!]|mybattlefield)~morethan~0 then castcard(putinplay)])) forever else name(not a creature) target(*|reveal) donothing optiononeend optiontwo choice all(*|reveal) bottomoflibrary optiontwoend revealend +aicode=activate transforms((,newability[if type(creature[zpos=1]|mylibrary)~equalto~0 then all(*|mylibrary) moveto(myreveal) and!( bottomoflibrary )!],newability[if type(creature[zpos=1]|mylibrary)~morethan~0 then target(creature[zpos=1]|mylibrary) moveto(myreveal) and!( bottomoflibrary and!( transforms((,newability[if type(*[creature;share!types!]|mybattlefield)~morethan~0 then activate castcard(normal)])) oneshot )! )!])) oneshot +auto=@each my upkeep:name(Look top card) reveal:1 optionone name(Choose a creature) target(*[creature]|reveal) bottomoflibrary and!( becomes(tobede) ueot )! optiononeend optiontwo name(Put on bottom) target(*|reveal) bottomoflibrary optiontwoend optiontwoend afterrevealed all(tobede|mylibrary) transforms((,newability[if type(*[creature;share!types!]|mybattlefield)~morethan~0 then choice name(Cast creature) name(Cast creature) activate castcard(normal)],newability[choice name(Don't cast creature) losesatype(tobede)])) oneshot afterrevealedend revealend text=At the beginning of your upkeep, reveal the top card of your library. If it's a creature card that shares a creature type with a creature you control, you may cast that card without paying its mana cost. Otherwise, put that card on the bottom of your library. mana={2}{G} type=Enchantment @@ -30215,7 +30216,7 @@ text=Whenever a permanent deals damage to you, return it to its owner's hand. name=Dissolve target=*|stack auto=fizzle -aicode=activate transforms((,newability[all(*[zpos<=1]|mylibrary) transforms((,newability[may name(Put on bottom of library) moveto(myreveal) and!( bottomoflibrary )!])) oneshot])) oneshot +aicode=activate transforms((,newability[donothing])) oneshot auto=_SCRY1_ text=Counter target spell. Scry 1. (Look at the top card of your library. You may put that card on the bottom of your library.) mana={1}{U}{U} @@ -32388,7 +32389,9 @@ toughness=3 [/card] [card] name=Drop of Honey -auto=@each my upkeep:bury notatarget(creature[power=power:lowest:creature:battlefield]) +auto=@each my upkeep:name(Destroy creature) ability$!name(Destroy creature) name(Destroy creature) notatarget(creature[power=power:lowest:creature:battlefield]|battlefield) bury!$ controller +auto=@movedto(creature|nonbattlezone) from(battlefield):if type(creature|battlefield)~equalto~0 then name(Sacrifice) name(Sacrifice) sacrifice +auto=if type(creature|battlefield)~equalto~0 then name(Sacrifice) name(Sacrifice) sacrifice text=At the beginning of your upkeep, destroy the creature with the least power. It can't be regenerated. If two or more creatures are tied for least power, you choose one of them. -- When there are no creatures on the battlefield, sacrifice Drop of Honey. mana={G} type=Enchantment