Skip to content

Commit 1f07c4a

Browse files
committed
Fixed some primitives from issue WagicProject#1085, fixed some primitives from Discord channel.
1 parent a40c98a commit 1f07c4a

File tree

3 files changed

+30
-32
lines changed

3 files changed

+30
-32
lines changed

projects/mtg/bin/Res/sets/primitives/borderline.txt

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
grade=borderline
22
#Bordeline Primitives Pack for Wagic the Homebrew.
33
#Please keep these card alphabetized, and try to have the "name=" line at the top of each card
4-
#I sorted this programmatically - Thanks to Vitty85 25-07-2023
4+
#I sorted this programmatically - Thanks to Vitty85 26-07-2023
55
[card]
66
name=+2 Mace
77
auto={3}:equip
@@ -42188,8 +42188,8 @@ type=Artifact
4218842188
[/card]
4218942189
[card]
4219042190
name=Guild Summit
42191-
auto=(<anyamount>gate[-tapped]|myBattlefield) draw:1
42192-
auto=@movedTo(*[Gate]|myBattlefield):draw:1
42191+
auto=may name(Tap gates) target(<anyamount>gate[-tapped]|myBattlefield) tap && draw:1 controller
42192+
auto=@movedTo(*[gate]|myBattlefield):name(Draw a card) draw:1 controller
4219342193
text=When Guild Summit enters the battlefield, you may tap any number of untapped Gates you control. Draw a card for each Gate tapped this way. -- Whenever a Gate enters the battlefield under your control, draw a card.
4219442194
mana={2}{U}
4219542195
type=Enchantment
@@ -50516,13 +50516,7 @@ toughness=2
5051650516
[/card]
5051750517
[card]
5051850518
name=Jack-in-the-Mox
50519-
auto={T}:all(this) rolld6 6 winability counter(0/0,1,JackEffect) winabilityend loseability counter(0/0,1,JackEffect) loseabilityend rolld6end
50520-
auto=@dierolled(this) result(1) from(controller):this(counter{0/0.1.JackEffect}=1) name(Sacrifice Jack-in-the-Mox) name(Sacrifice Jack-in-the-Mox) sacrifice && counter(0/0,-1,JackEffect) all(this)
50521-
auto=@dierolled(this) result(2) from(controller):this(counter{0/0.1.JackEffect}=1) name(Add white mana) name(Add white mana) add{W} && counter(0/0,-1,JackEffect) all(this)
50522-
auto=@dierolled(this) result(3) from(controller):this(counter{0/0.1.JackEffect}=1) name(Add blue mana) name(Add blue mana) add{U} && counter(0/0,-1,JackEffect) all(this)
50523-
auto=@dierolled(this) result(4) from(controller):this(counter{0/0.1.JackEffect}=1) name(Add black mana) name(Add black mana) add{B} && counter(0/0,-1,JackEffect) all(this)
50524-
auto=@dierolled(this) result(5) from(controller):this(counter{0/0.1.JackEffect}=1) name(Add red mana) name(Add red mana) add{R} && counter(0/0,-1,JackEffect) all(this)
50525-
auto=@dierolled(this) result(6) from(controller):this(counter{0/0.1.JackEffect}=1) name(Add green mana) name(Add green mana) add{G} && counter(0/0,-1,JackEffect) all(this)
50519+
auto={T}:name(Roll a die) all(this) rolld6 1 winability transforms((,newability[sacrifice],newability[life:-5 controller])) oneshot winabilityend loseability if compare(lastrollresult)~equalto~2 then add{W} else if compare(lastrollresult)~equalto~3 then add{U} else if compare(lastrollresult)~equalto~4 then add{B} else if compare(lastrollresult)~equalto~5 then add{R} else if compare(lastrollresult)~equalto~6 then add{G} loseabilityend rolld6end
5052650520
text={T}: Roll a six-sided die for Jack-in-the-Mox. On a 1, sacrifice Jack-in-the-Mox and lose 5 life. Otherwise, Jack-in-the-Mox has one of the following effects. Treat this ability as a mana source. -- 2 Add {W} to your mana pool. -- 3 Add {U} to your mana pool. -- 4 Add {B} to your mana pool. -- 5 Add {R} to your mana pool. -- 6 Add {G} to your mana pool.
5052750521
mana={0}
5052850522
type=Artifact
@@ -50868,10 +50862,11 @@ type=Instant
5086850862
[/card]
5086950863
[card]
5087050864
name=Jaya's Immolating Inferno
50871-
target=<upto:3>*
50872-
auto=damage:x
50865+
restriction=type(legendary[creature]|mybattlefield)~morethan~0,type(legendary[planeswalker]|mybattlefield)~equalto~0
50866+
otherrestriction=type(legendary[planeswalker]|mybattlefield)~morethan~0,type(legendary[creature]|mybattlefield)~equalto~0
50867+
other={X}{R}{R}
50868+
auto=target(<upto:3>anytarget) damage:fullpaid
5087350869
text=(You may cast a legendary sorcery only if you control a legendary creature or planeswalker.) -- Jaya's Immolating Inferno deals X damage to each of up to three targets.
50874-
restriction=type(legendary[-artifact;-enchantment;-land]|mybattlefield)~morethan~0
5087550870
mana={X}{R}{R}
5087650871
type=Legendary Sorcery
5087750872
[/card]
@@ -55544,8 +55539,8 @@ type=Instant
5554455539
[/card]
5554555540
[card]
5554655541
name=Ledev Champion
55547-
auto=_ATTACKING_(<anyamount>creature[-tapped]|mybattlefield) 1/1
55548-
auto={3}{G}{W}:create(soldier:creature soldier:1/1:white:lifelink)
55542+
auto=_ATTACKING_may name(Tap creatures) target(<anyamount>creature[-tapped]|mybattlefield) tap && all(this) 1/1 ueot
55543+
auto={3}{G}{W}:name(Create soldier) token(Soldier,Creature Soldier,1/1,white,lifelink)
5554955544
text=Whenever Ledev Champion attacks, you may tap any number of untapped creatures you control. Ledev Champion gets +1/+1 until end of turn for each creature tapped this way. -- {3}{G}{W}: Create a 1/1 white Soldier creature token with lifelink.
5555055545
mana={1}{G}{W}
5555155546
type=Creature
@@ -80393,10 +80388,11 @@ toughness=4
8039380388
[/card]
8039480389
[card]
8039580390
name=Rosie Cotton of South Lane
80396-
auto=token(Food) and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )!
80391+
#This card has been modded in order to allow specific combo when AI is using it, this mod is not effecting card when it is useb by a Human player.
80392+
auto=if compare(ishuman)~morethan~0 then name(Create food) name(Create food) token(Food) and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )!
80393+
auto=if compare(ishuman)~equalto~0 then transforms((,newability[if type(Scurry Oak|mybattlefield)~equalto~0 then token(Food) and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )!],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~equalto~0 then token(Food) and!( name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1) )!],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~morethan~0 then token(Food) and!( name(Put 1/1 counter) target(Scurry Oak|myBattlefield) counter(1/1) )!])) oneshot
8039780394
auto=@tokencreated(*|myBattlefield) restriction{compare(ishuman)~morethan~0}:name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1)
80398-
auto=@tokencreated(*|myBattlefield) restriction{compare(ishuman)~equalto~0,type(Scurry Oak|mybattlefield)~equalto~0}:name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1)
80399-
auto=@tokencreated(*|myBattlefield) restriction{compare(ishuman)~equalto~0,type(Scurry Oak|mybattlefield)~morethan~0}:name(Put 1/1 counter) name(Put 1/1 counter) name(Put 1/1 counter) target(Scurry Oak|mybattlefield) counter(1/1)
80395+
auto=@tokencreated(*|myBattlefield) restriction{compare(ishuman)~equalto~0}:name(Put 1/1 counter) name(Put 1/1 counter) transforms((,newability[if type(Scurry Oak|mybattlefield)~equalto~0 then name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1)],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~equalto~0 then name(Put 1/1 counter) name(Put 1/1 counter) name(Put 1/1 counter) target(other creature|myBattlefield) counter(1/1)],newability[if type(Scurry Oak|mybattlefield)~morethan~0 then if type(Shalai and Hallar|mybattlefield)~morethan~0 then name(Put 1/1 counter) name(Put 1/1 counter) name(Put 1/1 counter) target(Scurry Oak|myBattlefield) counter(1/1)])) oneshot
8040080396
text=When Rosie Cotton of South Lane enters the battlefield, create a Food token. (It's an artifact with "{2}, {T}, Sacrifice this artifact: You gain 3 life.") -- Whenever you create a token, put a +1/+1 counter on target creature you control other than Rosie.
8040180397
mana={2}{W}
8040280398
type=Legendary Creature
@@ -86901,7 +86897,7 @@ toughness=4
8690186897
[card]
8690286898
name=Siege Striker
8690386899
abilities=double strike
86904-
auto=_ATTACKING_foreach(creature[-tapped]|mybattlefield) may target(creature[-tapped]|mybattlefield) tap && all(this) 1/1 ueot
86900+
auto=_ATTACKING_may name(Tap creatures) target(<anyamount>creature[-tapped]|mybattlefield) tap && all(this) 1/1 ueot
8690586901
text=Double strike (This creature deals both first-strike and regular combat damage.) -- Whenever Siege Striker attacks, you may tap any number of untapped creatures you control. Siege Striker gets +1/+1 until end of turn for each creature tapped this way.
8690686902
mana={2}{W}
8690786903
type=Creature

projects/mtg/bin/Res/sets/primitives/mtg.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Primitives Pack for Wagic the Homebrew.
22
#Please keep these card alphabetized, and try to have the "name=" line at the top of each card
3-
#I sorted this programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 25-07-2023
3+
#I sorted this programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 26-07-2023
44
[card]
55
name=Abandon Reason
66
target=<upto:2>creature
@@ -59847,7 +59847,7 @@ toughness=2
5984759847
[card]
5984859848
name=Jaddi Lifestrider
5984959849
auto=may name(Tap creatures) target(<anyamount>creature[-tapped]|mybattlefield) tap && life:2 controller
59850-
text=tap any amount of creatures and gain 2 life for each creature tapped this way
59850+
text=When Jaddi Lifestrider enters the battlefield, you may tap any number of untapped creatures you control. You gain 2 life for each creature tapped this way.
5985159851
mana={4}{G}
5985259852
type=Creature
5985359853
subtype=Elemental
@@ -59857,7 +59857,7 @@ toughness=8
5985759857
[card]
5985859858
name=Jaddi Offshoot
5985959859
abilities=defender
59860-
auto=_LANDFALL_life:1 controller
59860+
auto=_LANDFALL_name(Gain 1 life) life:1 controller
5986159861
text=Defender -- Landfall -- Whenever a land enters the battlefield under your control, you gain 1 life.
5986259862
mana={G}
5986359863
type=Creature
@@ -61028,8 +61028,9 @@ toughness=1
6102861028
[card]
6102961029
name=Junk Golem
6103061030
auto=counter(1/1,3)
61031-
auto=upcost[{C(1/1,-1)}] sacrifice
61032-
auto={D(*|myhand)}:counter(1/1)
61031+
auto=if compare(ishuman)~morethan~0 then transforms((,newability[upcost[{C(1/1.-1)}] sacrifice])) forever
61032+
auto=@each my upkeep restriction{compare(ishuman)~equalto~0}:name(Choose one) name(Choose one) transforms((,newability[if compare(hascnt11)~morethan~0 then choice name(Remove 1/1 counter) name(Remove 1/1 counter) counter(1/1.-1)],newability[choice name(Sacrifice) sacrifice])) oneshot
61033+
auto={1}{D(*|myhand)}:name(Discard and put counter) counter(1/1)
6103361034
text=Junk Golem enters the battlefield with three +1/+1 counters on it. -- At the beginning of your upkeep, sacrifice Junk Golem unless you remove a +1/+1 counter from it. -- {1}, Discard a card: Put a +1/+1 counter on Junk Golem.
6103461035
mana={4}
6103561036
type=Artifact Creature
@@ -126754,8 +126755,8 @@ toughness=4
126754126755
[card]
126755126756
name=Urge to Feed
126756126757
target=creature
126757-
auto=-3/-3
126758-
auto=target(<anyamount>vampire[-tapped]|mybattlefield) transforms((,newability[tap],newability[counter(1/1)]))
126758+
auto=-3/-3 ueot
126759+
auto=may name(Tap vampires) target(<anyamount>vampire[-tapped]|mybattlefield) transforms((,newability[tap],newability[counter(1/1)])) ueot
126759126760
text=Target creature gets -3/-3 until end of turn. You may tap any number of untapped Vampire creatures you control. If you do, put a +1/+1 counter on each of those Vampires.
126760126761
mana={B}{B}
126761126762
type=Instant

projects/mtg/bin/Res/sets/primitives/planeswalkers.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Planeswalkers Primitives Pack for Wagic the Homebrew.
22
#Please keep these card alphabetized, and try to have the "name=" line at the top of each card
3-
#We sorted this in alphabetical order - Luruz & Vitty85 24-07-2023
3+
#We sorted this in alphabetical order - Luruz & Vitty85 26-07-2023
44
[card]
55
name=Abian, Luvion Usurper
66
auto=counter(0/0,5,loyalty)
@@ -1416,9 +1416,10 @@ subtype=Jace
14161416
[card]
14171417
name=Jace, the Living Guildpact
14181418
auto=counter(0/0,5,loyalty)
1419-
auto={C(0/0,1,Loyalty)}:name(+1: Look the top two and put one in graveyard) reveal:2 optionone name(put in graveyard) target(<1>*|reveal) moveto(ownergraveyard) optiononeend optiontwo name(put in library) target(<1>*|reveal) moveto(ownerlibrary) optiontwoend revealend
1420-
auto={C(0/0,-3,Loyalty)}:name(-3: Return another nonland permanent) target(other *[-land]) moveTo(ownerhand)
1421-
auto={C(0/0,-8,Loyalty)}:name(-8: Timetwister) moveto(opponentlibrary) all(*|opponenthand) && moveto(opponentlibrary) all(*|opponentgraveyard) && shuffle && moveto(mylibrary) all(*|myhand) && moveto(mylibrary) all(*|mygraveyard) && shuffle && draw:7
1419+
aicode=activate transforms((,newability[target(*[zpos<=2]|mylibrary) moveto(ownergraveyard)])) oneshot
1420+
auto={C(0/0,1,Loyalty)}:name(+1: Look the top two and put one in graveyard) reveal:2 optionone name(Put in graveyard) target(*|reveal) moveto(ownergraveyard) optiononeend optiontwo name(Put in library) target(*|reveal) moveto(ownerlibrary) optiontwoend revealend
1421+
auto={C(0/0,-3,Loyalty)}:name(-3: Return another nonland permanent) target(other *[-land]|battlefield) moveTo(ownerhand)
1422+
auto={C(0/0,-8,Loyalty)}:name(-8: Timetwister) moveto(opponentlibrary) all(*|opponenthand) && moveto(opponentlibrary) all(*|opponentgraveyard) && shuffle opponent && moveto(mylibrary) all(*|myhand) && moveto(mylibrary) all(*|mygraveyard) && shuffle controller && draw:7 controller
14221423
text=+1: Look at the top two cards of your library. Put one of them into your graveyard. -- -3: Return another target nonland permanent to its owner's hand. -- -8: Each player shuffles their hand and graveyard into their library. You draw seven cards.
14231424
mana={2}{U}{U}
14241425
type=Legendary Planeswalker
@@ -1508,9 +1509,9 @@ name=Jace, Telepath Unbound
15081509
backside=Jace, Vryn's Prodigy
15091510
auto=counter(0/0,5,loyalty)
15101511
auto={C(0/0,1,Loyalty)}:name(+1: don't target any creature) donothing
1511-
auto={C(0/0,1,Loyalty)}:name(+1: target creature gets -2/0) target(creature) -2/0 uynt
1512+
auto={C(0/0,1,Loyalty)}:name(+1: target creature gets -2/0) target(creature|battlefield) transforms((,newability[-2/0])) uynt
15121513
auto={C(0/0,-3,Loyalty)}:name(-3: choose an instant or sorcery you may from graveyard) target(*[instant;sorcery]|mygraveyard) transforms((,newability[canplayfromgraveyard],newability[gainedexiledeath])) ueot
1513-
auto={C(0/0,-9,Loyalty)}:name(-9: emblem mills opponent cards) emblem transforms((,newability[@movedTo(*|mystack):deplete:5 opponent])) forever dontremove
1514+
auto={C(0/0,-9,Loyalty)}:name(-9: emblem mills opponent cards) emblem transforms((,newability[@movedTo(*|mystack):name(Mill 5 cards) deplete:5 opponent])) forever dontremove
15141515
text=+1: Up to one target creature gets -2/-0 until your next turn. -- -3: You may cast target instant or sorcery card from your graveyard this turn. If that card would be put into your graveyard this turn, exile it instead. -- -9: You get an emblem with "Whenever you cast a spell, target opponent puts the top five cards of his or her library into his or her graveyard." // Jace, Vryn's Prodigy
15151516
type=Legendary Planeswalker
15161517
subtype=Jace

0 commit comments

Comments
 (0)