Skip to content

Commit bf0d1be

Browse files
committed
Fixed some primitives from issue WagicProject#1085
1 parent 96f8bfe commit bf0d1be

File tree

2 files changed

+38
-17
lines changed

2 files changed

+38
-17
lines changed

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

Lines changed: 31 additions & 11 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 17-07-2023
4+
#I sorted this programmatically - Thanks to Vitty85 18-07-2023
55
[card]
66
name=+2 Mace
77
auto={3}:equip
@@ -28617,10 +28617,8 @@ toughness=2
2861728617
[card]
2861828618
name=Emberwilde Djinn
2861928619
abilities=flying
28620-
auto=@each opponent upkeep restriction{type(Emberwilde Djinn|opponentbattlefield)~morethan~0}:ability$!name(Pay RR) pay[[{R}{R}]] name(Gain Control) notatarget(Emberwilde Djinn|opponentbattlefield) moveto(mybattlefield)!$ opponent
28621-
auto=@each opponent upkeep restriction{type(Emberwilde Djinn|opponentbattlefield)~morethan~0}:ability$!name(Pay 2 life) pay[[{L:2}]] name(Gain Control) notatarget(Emberwilde Djinn|opponentbattlefield) moveto(mybattlefield)!$ opponent
28622-
auto=@each my upkeep restriction{type(Emberwilde Djinn|opponentbattlefield)~morethan~0}:ability$!name(Pay RR) pay[[{R}{R}]] name(Gain Control) notatarget(Emberwilde Djinn|opponentbattlefield) moveto(mybattlefield)!$ controller
28623-
auto=@each my upkeep restriction{type(Emberwilde Djinn|opponentbattlefield)~morethan~0}:ability$!name(Pay 2 Life) pay[[{L:2}]] name(Gain Control) notatarget(Emberwilde Djinn|opponentbattlefield) moveto(mybattlefield)!$ controller
28620+
auto=@each my upkeep:name(Choose one) ability$!name(Choose one) choice name(Don't pay anything) donothing _ choice name(Pay 2 life and gain control) notatarget(Emberwilde Djinn|battlefield) moveto(mybattlefield) and!( life:-2 controller )! _ choice name(Pay RR and gain control) pay[[{R}{R}]] name(Pay RR and gain control) notatarget(Emberwilde Djinn|battlefield) moveto(mybattlefield)!$ controller
28621+
auto=@each opponent upkeep:name(Choose one) ability$!name(Choose one) choice name(Pay RR and gain control) pay[[{R}{R}]] name(Pay RR and gain control) notatarget(Emberwilde Djinn|battlefield) moveto(mybattlefield) _ choice name(Pay 2 life and gain control) notatarget(Emberwilde Djinn|battlefield) moveto(mybattlefield) and!( life:-2 controller )! _ choice name(Don't pay anything) donothing!$ opponent
2862428622
text=Flying -- At the beginning of each player's upkeep, that player may pay {R}{R} or 2 life. If he or she does, the player gains control of Emberwilde Djinn.
2862528623
mana={2}{R}{R}
2862628624
type=Creature
@@ -29317,9 +29315,29 @@ toughness=4
2931729315
[card]
2931829316
name=Entrancing Lyre
2931929317
abilities=shackler
29320-
auto={X}{T}:shackle target(creature[power<=X])
2932129318
auto=@each my untap restriction{canuntap}:may untap
29322-
text=You may choose not to untap Entrancing Lyre during your untap step. -- Variable Colorless , {T}: Tap target creature with power X or less. It doesn't untap during its controller's untap step for as long as Entrancing Lyre remains tapped.
29319+
auto={T}:name(X=0) target(creature[power=0]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29320+
auto={1}{T}:name(X=1) target(creature[power<=1]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29321+
auto={2}{T}:name(X=2) target(creature[power<=2]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29322+
auto={3}{T}:name(X=3) target(creature[power<=3]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29323+
auto={4}{T}:name(X=4) target(creature[power<=4]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29324+
auto={5}{T}:name(X=5) target(creature[power<=5]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29325+
auto={6}{T}:name(X=6) target(creature[power<=6]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29326+
auto={7}{T}:name(X=7) target(creature[power<=7]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29327+
auto={8}{T}:name(X=8) target(creature[power<=8]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29328+
auto={9}{T}:name(X=9) target(creature[power<=9]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29329+
auto={10}{T}:name(X=10) target(creature[power<=10]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29330+
auto={11}{T}:name(X=11) target(creature[power<=11]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29331+
auto={12}{T}:name(X=12) target(creature[power<=12]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29332+
auto={13}{T}:name(X=13) target(creature[power<=13]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29333+
auto={14}{T}:name(X=14) target(creature[power<=14]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29334+
auto={15}{T}:name(X=15) target(creature[power<=15]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29335+
auto={16}{T}:name(X=16) target(creature[power<=16]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29336+
auto={17}{T}:name(X=17) target(creature[power<=17]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29337+
auto={18}{T}:name(X=18) target(creature[power<=18]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29338+
auto={19}{T}:name(X=19) target(creature[power<=19]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29339+
auto={20}{T}:name(X=20) target(creature[power<=20]|battlefield) grant transforms((,newability[tap],newability[doesnotuntap])) grantend
29340+
text=You may choose not to untap Entrancing Lyre during your untap step. -- {X}, {T}: Tap target creature with power X or less. It doesn't untap during its controller's untap step for as long as Entrancing Lyre remains tapped.
2932329341
mana={3}
2932429342
type=Artifact
2932529343
[/card]
@@ -29333,7 +29351,8 @@ type=Sorcery
2933329351
[/card]
2933429352
[card]
2933529353
name=Entrapment Maneuver
29336-
auto=target(player) ability$!name(sacrifice attacker) notatarget(creature[attacking]|mybattlefield) sacrifice!$ targetedplayer then _SOLDIERTOKEN_*storedtoughness
29354+
auto=choice name(Target opponent) ability$!name(Sacrifice attacker) name(Sacrifice attacker) notatarget(creature[attacking]|mybattlefield) sacrifice and!( transforms((,newability[_SOLDIERTOKEN_*toughness opponent])) oneshot )!!$ opponent
29355+
auto=choice name(Target yourself) ability$!name(Sacrifice attacker) name(Sacrifice attacker) notatarget(creature[attacking]|mybattlefield) sacrifice and!( transforms((,newability[_SOLDIERTOKEN_*toughness])) oneshot )!!$ controller
2933729356
text=Target player sacrifices an attacking creature. You create X 1/1 white Soldier creature tokens, where X is that creature's toughness.
2933829357
mana={3}{W}
2933929358
type=Instant
@@ -30120,7 +30139,8 @@ toughness=4
3012030139
[card]
3012130140
name=Etrata, the Silencer
3012230141
abilities=unblockable
30123-
auto=@damagefoeof(player) from(this): transforms((,newability[moveTo(opponentExile) target(creature|opponentBattlefield) with counter{0/0.1.Hit}],newability[if restriction{type(creature[counter{0/0.1.Hit}]|opponentExile)~morethan~2} wingame controller])) && moveTo(ownerlibrary) all(this) && shuffle
30142+
auto=@combatdamagefoeof(player) from(this) restriction{type(creature|opponentBattlefield)~morethan~0}:name(Exile opponent creature) moveto(mylibrary) and!( transforms((,newability[shuffle],newability[name(Exile opponent creature) target(creature|opponentBattlefield) moveTo(opponentexile) and!( transforms((,newability[counter(0/0.1.Hit)],newability[if type(creature[counter{0/0.1.Hit}]|myexile)~morethan~2 then wingame opponent])) )!])) oneshot )!
30143+
auto=@combatdamageof(player) from(this) restriction{type(creature|myBattlefield)~morethan~0}:name(Exile your creature) moveto(mylibrary) and!( transforms((,newability[shuffle],newability[name(Exile your creature) target(creature|myBattlefield) moveTo(myexile) and!( transforms((,newability[counter(0/0.1.Hit)],newability[if type(creature[counter{0/0.1.Hit}]|myexile)~morethan~2 then wingame opponent])) )!])) oneshot )!
3012430144
text=Etrata, the Silencer can't be blocked. -- Whenever Etrata deals combat damage to a player, exile target creature that player controls and put a hit counter on that card. That player loses the game if they own three or more exiled cards with hit counters on them. Etrata's owner shuffles Etrata into their library.
3012530145
mana={2}{U}{B}
3012630146
type=Legendary Creature
@@ -31247,8 +31267,8 @@ type=Instant
3124731267
[/card]
3124831268
[card]
3124931269
name=Extract Brain
31250-
aicode=activate target(*[zpos<=fullpaid]|opponenthand) activate castcard(normal)
31251-
auto=name(Look opponent hand) reveal:x revealzone(opponenthand) optionone name(Cast card) target(<upto:1>*|reveal) activate castcard(normal) optiononeend optiontwo name(Put back) all(*|reveal) moveto(ownerhand) optiontwoend revealend
31270+
aicode=activate transforms((,newability[target(*[-land&zpos<=fullpaid]|opponenthand) activate castcard(normal)])) oneshot
31271+
auto=name(Look opponent hand) reveal:x revealzone(opponenthand) optionone name(Cast card) target(<upto:1>*[-land]|reveal) activate castcard(normal) optiononeend optiontwo name(Put back) target(*|reveal) moveto(ownerhand) and!( all(*|reveal) moveto(ownerhand) )! optiontwoend revealend
3125231272
text=Target opponent chooses X cards from their hand. Look at those cards. You may cast a spell from among them without paying its mana cost.
3125331273
mana={X}{U}{B}
3125431274
type=Sorcery

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

Lines changed: 7 additions & 6 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 17-07-2023
3+
#I sorted this programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 18-07-2023
44
[card]
55
name=Abandon Reason
66
target=<upto:2>creature
@@ -33641,7 +33641,8 @@ type=Enchantment
3364133641
[card]
3364233642
name=Earthbind
3364333643
target=creature
33644-
alias=1288
33644+
auto=teach(creature) -flying
33645+
auto=if cantargetcard(*[flying]|*) then damage:2
3364533646
text=Enchant creature -- When Earthbind enters the battlefield, if enchanted creature has flying, Earthbind deals 2 damage to that creature and Earthbind gains "Enchanted creature loses flying."
3364633647
mana={R}
3364733648
type=Enchantment
@@ -37401,9 +37402,9 @@ toughness=2
3740137402
[/card]
3740237403
[card]
3740337404
name=Etherwrought Page
37404-
aicode=activate name(look) donothing
37405-
auto=@each my upkeep:ability$!name(Reveal) reveal:1 optionone name(Choose to put in Graveyard) target(*|reveal) moveto(mygraveyard) optiononeend optiontwo target(<1>*|reveal) moveto(mylibrary) optiontwoend revealend _ choice name(opponent life loss) life:-1 opponent _ choice name(Gain Life) life:2 controller!$ controller
37406-
text=At the beginning of your upkeep, choose one - You gain 2 life; or look at the top card of your library, then you may put that card into your graveyard; or each opponent loses 1 life.
37405+
aicode=activate donothing
37406+
auto=@each my upkeep:name(Choose one) transforms((,newability[choice name(Gain 2 life) life:2 controller],newability[choice name(Reveal top card) reveal:1 optionone name(Put in graveyard) target(<upto:1>*|reveal) moveto(mygraveyard) optiononeend optiontwo target(*|reveal) moveto(mylibrary) optiontwoend revealend],newability[choice name(Opponent loses 1 life) life:-1 opponent])) oneshot
37407+
text=At the beginning of your upkeep, choose one -- You gain 2 life -- Look at the top card of your library, then you may put that card into your graveyard -- Each opponent loses 1 life.
3740737408
mana={1}{W}{U}{B}
3740837409
type=Artifact
3740937410
[/card]
@@ -44317,7 +44318,7 @@ toughness=1
4431744318
[card]
4431844319
name=Fyndhorn Pollen
4431944320
auto=lord(creature) -1/0
44320-
auto={1}{G}:-1/0 all(creature) ueot
44321+
auto={1}{G}:name(Creatures get -1/-0) all(creature) transforms((,newability[-1/0])) ueot
4432144322
auto=cumulativeupcost[{1}] sacrifice
4432244323
text=Cumulative upkeep {1} (At the beginning of your upkeep, put an age counter on this permanent, then sacrifice it unless you pay its upkeep cost for each age counter on it.) -- All creatures get -1/-0. -- {1}{G}: All creatures get -1/-0 until end of turn.
4432344324
mana={2}{G}

0 commit comments

Comments
 (0)