Skip to content

Commit

Permalink
Fixed some primitives from issue #1085 and updated some AI decks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitty85 committed Jul 20, 2023
1 parent ab9002b commit 7c697eb
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 24 deletions.
2 changes: 1 addition & 1 deletion projects/mtg/bin/Res/ai/baka/deck138.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#NAME:Turbo Stasi
#NAME:Turbo Stasis
#DESC:Black Summer 1996
City of Brass (*) *4
Island (*) *13
Expand Down
2 changes: 1 addition & 1 deletion projects/mtg/bin/Res/ai/baka/deck60.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#NAME:No Bushwhacked
#NAME:Bushwhacked
#DESC:"Attack! Heal! Attack! Heal!
#DESC: And again and again and again.
#DESC: Oh, how I miss my days
Expand Down
4 changes: 2 additions & 2 deletions projects/mtg/bin/Res/ai/baka/deck67.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NAME:Plane of the Apes
#DESC:A plane where apes
#NAME:Planet of the Apes
#DESC:A planet where apes
#DESC:evolved from men?
#DESC:There's got to be an answer!
Tree Monkey (P02) *4
Expand Down
2 changes: 1 addition & 1 deletion projects/mtg/bin/Res/ai/baka/deck68.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#NAME:Shocking M'taurs
#NAME:Shocking Minotaurs
#DESC:The bright flash
#DESC: of the opening attacks
#DESC:is followed by the deafening thunder
Expand Down
18 changes: 10 additions & 8 deletions projects/mtg/bin/Res/sets/primitives/borderline.txt
Original file line number Diff line number Diff line change
@@ -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 18-07-2023
#I sorted this programmatically - Thanks to Vitty85 20-07-2023
[card]
name=+2 Mace
auto={3}:equip
Expand Down Expand Up @@ -31571,8 +31571,8 @@ type=Instant
[/card]
[card]
name=Fade Away
auto=foreach(creature|myBattlefield) transforms((,newability[pay[[{1}]] name(pay 1 mana) donothing?sacrifice notAtarget(*|mybattlefield) controller]))
auto=foreach(creature|opponentBattlefield) transforms((,newability[pay[[{1}]] name(pay 1 mana) donothing?sacrifice notAtarget(*|mybattlefield) opponent]))
auto=all(creature|myBattlefield) transforms((,newability[name(pay 1 mana) pay[[{1}]] name(pay 1 mana) donothing?sacrifice notAtarget(*|mybattlefield)])) oneshot
auto=all(creature|opponentBattlefield) transforms((,newability[name(pay 1 mana) pay[[{1}]] name(pay 1 mana) donothing?sacrifice notAtarget(*|mybattlefield)])) oneshot
text=For each creature, its controller sacrifices a permanent unless he or she pays {1}.
mana={2}{U}
type=Sorcery
Expand Down Expand Up @@ -34023,7 +34023,8 @@ type=Enchantment
[/card]
[card]
name=First Sliver's Chosen
auto=lord(sliver|mybattlefield) exalted
abilities=exalted
auto=lord(creature[sliver&-exalted]|mybattlefield) transforms((,newability[exalted],newability[@combat(attackedalone) source(creature|mybattlefield):name(Exalted) name(Exalted) all(trigger[to]) name(Exalted) 1/1 ueot]))
text=Sliver creatures you control have exalted. (Whenever a creature you control attacks alone, it gets +1/+1 until end of turn for each instance of exalted among permanents you control.)
mana={4}{W}
type=Creature
Expand Down Expand Up @@ -34432,8 +34433,9 @@ toughness=2
[/card]
[card]
name=Flay Essence
auto=choice name(Exile opponent's creature or planeswalker) target(*[creature;planeswalker]|opponentbattlefield) transforms((,newability[life:hascntanycnt opponent],newability[moveto(exile)])) forever
auto=choice name(Exile your creature or planeswalker) target(*[creature;planeswalker]|mybattlefield) transforms((,newability[life:hascntanycnt controller],newability[moveto(exile)])) forever
restriction=type(*[creature;planeswalker]|battlefield)~morethan~0
auto=if type(*[creature;planeswalker]|opponentbattlefield)~morethan~0 then choice name(Exile opponent's creature or planeswalker) name(Exile opponent's creature or planeswalker) target(*[creature;planeswalker]|opponentbattlefield) transforms((,newability[life:hascntanycnt opponent],newability[moveto(exile)])) oneshot
auto=if type(*[creature;planeswalker]|mybattlefield)~morethan~0 then choice name(Exile your creature or planeswalker) name(Exile your creature or planeswalker) target(*[creature;planeswalker]|mybattlefield) transforms((,newability[life:hascntanycnt controller],newability[moveto(exile)])) oneshot
text=Exile target creature or planeswalker. You gain life equal to the number of counters on it.
mana={1}{B}{B}
type=Sorcery
Expand Down Expand Up @@ -35032,10 +35034,10 @@ type=Instant
[/card]
[card]
name=Forebear's Blade
auto=teach(creature) +3/+0
auto=teach(creature) 3/0
auto=teach(creature) vigilance
auto=teach(creature) trample
auto=aslongas(parents) rehook target(creature|myBattlefield) <1
auto=@movedto(mytgt|graveyard):all(this) transforms((,newability[name(Attach to creature) target(creature|myBattlefield) rehook])) oneshot
auto={3}:equip
text=Equipped creature gets +3/+0 and has vigilance and trample. -- Whenever equipped creature dies, attach Forebear's Blade to target creature you control. -- Equip {3}
mana={3}
Expand Down
32 changes: 21 additions & 11 deletions projects/mtg/bin/Res/sets/primitives/mtg.txt
Original file line number Diff line number Diff line change
@@ -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 18-07-2023
#I sorted this programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 20-07-2023
[card]
name=Abandon Reason
target=<upto:2>creature
Expand Down Expand Up @@ -39963,15 +39963,25 @@ subtype=Aura
[/card]
[card]
name=Fertile Imagination
auto=choice name(Artifact) target(opponent) Reveal:type:*:opponenthand revealzone(opponenthand) revealtype(*|opponenthand) optionone choice name(Spawn) foreach(artifact|reveal) _SAPROLINGTOKEN_*2 optiononeend optiontwo name(Put Back) all(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend
auto=choice name(creature) target(opponent) Reveal:type:*:opponenthand revealzone(opponenthand) revealtype(*|opponenthand) optionone choice name(Spawn) foreach(creature|reveal) _SAPROLINGTOKEN_*2 optiononeend optiontwo name(Put Back) all(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend
auto=choice name(enchantment) target(opponent) Reveal:type:*:opponenthand revealzone(opponenthand) revealtype(*|opponenthand) optionone choice name(Spawn) foreach(enchantment|reveal) _SAPROLINGTOKEN_*2 optiononeend optiontwo name(Put Back) all(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend
auto=choice name(instant) target(opponent) Reveal:type:*:opponenthand revealzone(opponenthand) revealtype(*|opponenthand) optionone choice name(Spawn) foreach(instant|reveal) _SAPROLINGTOKEN_*2 optiononeend optiontwo name(Put Back) all(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend
auto=choice name(land) target(opponent) Reveal:type:*:opponenthand revealzone(opponenthand) revealtype(*|opponenthand) optionone choice name(Spawn) foreach(land|reveal) _SAPROLINGTOKEN_*2 optiononeend optiontwo name(Put Back) all(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend
auto=choice name(planeswalker) target(opponent) Reveal:type:*:opponenthand revealzone(opponenthand) revealtype(*|opponenthand) optionone choice name(Spawn) foreach(planeswalker|reveal) _SAPROLINGTOKEN_*2 optiononeend optiontwo name(Put Back) all(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend
auto=choice name(sorcery) target(opponent) Reveal:type:*:opponenthand revealzone(opponenthand) revealtype(*|opponenthand) optionone choice name(Spawn) foreach(sorcery|reveal) _SAPROLINGTOKEN_*2 optiononeend optiontwo name(Put Back) all(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend
auto=choice name(tribal) target(opponent) Reveal:type:*:opponenthand revealzone(opponenthand) revealtype(*|opponenthand) optionone choice name(Spawn) foreach(tribal|reveal) _SAPROLINGTOKEN_*2 optiononeend optiontwo name(Put Back) all(*|reveal) transforms((,newability[all(*|reveal) moveto(ownerhand)])) ueot optiontwoend revealend
text=Choose a card type. Target opponent reveals his or her hand. Put two 1/1 green Saproling creature tokens onto the battlefield for each card of the chosen type revealed this way. (Artifact, creature, enchantment, instant, land, planeswalker, sorcery, and tribal are card types.)
auto=if type(artifact|opponenthand)~morethan~0 then choice name(Artifact) name(Artifact) target(<type:*:opponenthand>artifact|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(artifact|opponenthand)~equalto~0 then choice name(Artifact) name(Artifact) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
auto=if type(creature|opponenthand)~morethan~0 then choice name(Creature) name(Creature) target(<type:*:opponenthand>creature|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(creature|opponenthand)~equalto~0 then choice name(Creature) name(Creature) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
auto=if type(enchantment|opponenthand)~morethan~0 then choice name(Enchantment) name(Enchantment) target(<type:*:opponenthand>enchantment|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(enchantment|opponenthand)~equalto~0 then choice name(Enchantment) name(Enchantment) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
auto=if type(land|opponenthand)~morethan~0 then choice name(Land) name(Land) target(<type:*:opponenthand>land|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(land|opponenthand)~equalto~0 then choice name(Land) name(Land) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
auto=if type(planeswalker|opponenthand)~morethan~0 then choice name(Planeswalker) name(Planeswalker) target(<type:*:opponenthand>planeswalker|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(planeswalker|opponenthand)~equalto~0 then choice name(Planeswalker) name(Planeswalker) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
auto=if type(sorcery|opponenthand)~morethan~0 then choice name(Sorcery) name(Sorcery) target(<type:*:opponenthand>sorcery|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(sorcery|opponenthand)~equalto~0 then choice name(Sorcery) name(Sorcery) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
auto=if type(instant|opponenthand)~morethan~0 then choice name(Instant) name(Instant) target(<type:*:opponenthand>instant|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(instant|opponenthand)~equalto~0 then choice name(Instant) name(Instant) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
auto=if type(battle|opponenthand)~morethan~0 then choice name(Battle) name(Battle) target(<type:*:opponenthand>battle|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(battle|opponenthand)~equalto~0 then choice name(Battle) name(Battle) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
auto=if type(tribal|opponenthand)~morethan~0 then choice name(Tribal) name(Tribal) target(<type:*:opponenthand>tribal|opponenthand) transforms((,newability[_SAPROLINGTOKEN_*2 opponent])) oneshot
auto=if type(tribal|opponenthand)~equalto~0 then choice name(Tribal) name(Tribal) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) )!
text=Choose a card type. Target opponent reveals his or her hand. Put two 1/1 green Saproling creature tokens onto the battlefield for each card of the chosen type revealed this way. (Artifact, creature, enchantment, instant, land, planeswalker, sorcery, battle and tribal are card types.)
mana={2}{G}{G}
type=Sorcery
[/card]
Expand Down Expand Up @@ -41215,7 +41225,7 @@ toughness=4
[card]
name=Flameblast Dragon
abilities=flying
auto=_ATTACKING_may pay({X}{R}) name(Deals X damages) damage:x target(anytarget)
auto=_ATTACKING_may name(Deals X damages) pay({X}{R}) name(Deals X damages) damage:x target(anytarget)
text=Flying -- Whenever Flameblast Dragon attacks, you may pay {X}{R}. If you do, Flameblast Dragon deals X damage to target creature or player.
mana={4}{R}{R}
type=Creature
Expand Down

0 comments on commit 7c697eb

Please sign in to comment.