Skip to content

Commit

Permalink
Added/fixed primitives.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitty85 committed Mar 12, 2021
1 parent cea4537 commit d783882
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 67 deletions.
88 changes: 88 additions & 0 deletions projects/mtg/bin/Res/sets/primitives/borderline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44225,6 +44225,15 @@ power=2
toughness=2
[/card]
[card]
name=Samite Blessing
target=creature
auto=teach(creature) transforms((,newability[{T}:name(Prevent 1 damage) target(creature) prevent:1]))
text=Enchant creature -- Enchanted creature has "{T}: The next time a source of your choice would deal damage to target creature this turn, prevent that damage."
mana={W}
type=Enchantment
subtype=Aura
[/card]
[card]
name=Samite Sanctuary
auto={2}:target(creature) absorb ueot
auto=foreach(land[-tapped]|opponentBattlefield) transforms((,newability[ability$!name(Pay 2) pay[[{2}]] name(Pay 2) notatarget(creature) absorb ueot?donothing!$ opponent])) forever
Expand Down Expand Up @@ -44287,6 +44296,16 @@ power=6
toughness=4
[/card]
[card]
name=Sanctum Guardian
auto={S}:name(Prevent all damage) target(player,creature) prevent:20
text=Sacrifice Sanctum Guardian: The next time a source of your choice would deal damage to target creature or player this turn, prevent that damage.
mana={1}{W}{W}
type=Creature
subtype=Human Cleric
power=1
toughness=4
[/card]
[card]
name=Sanctum Seeker
auto=@combat(attacking) source(vampire|mybattlefield):life:-1 opponent && life:1 controller
text=Whenever a Vampire you control attacks, each opponent loses 1 life and you gain 1 life.
Expand Down Expand Up @@ -44392,6 +44411,14 @@ power=3
toughness=3
[/card]
[card]
name=Sandals of Abdallah
auto={2}{T}:name(Target your creature) target(creature|mybattlefield) transforms((,newability[islandwalk],newability[@movedto(this|mygraveyard) from(mybattlefield):destroy target(Sandals of Abdallah|mybattlefield)])) ueot
auto={2}{T}:name(Target opponent's creature) target(creature|opponentbattlefield) transforms((,newability[islandwalk],newability[@movedto(this|mygraveyard) from(mybattlefield):destroy target(Sandals of Abdallah|opponentbattlefield)])) ueot
text={2}, {T}: Target creature gains islandwalk until end of turn. When that creature dies this turn, destroy Sandals of Abdallah.
mana={4}
type=Artifact
[/card]
[card]
name=Sandstone Oracle
abilities=flying
auto=foreach(*|targetedpersonshand) if type(*|targetedpersonshand)~morethan~type(*|myhand) then draw:1
Expand Down Expand Up @@ -44465,6 +44492,25 @@ toughness=1
color=green
[/card]
[card]
name=Saproling Burst
auto=fading:7
auto={C(0/0,-1,Fade)}:name(Create Saproling) token(Saproling,Creature Saproling Fade,0/0,green)
auto=thisforeach(variable{hascntfade}>=1) lord(saproling[fade]|mybattlefield) 1/1
auto=@counterremoved(0/0,1,Fade) from(this) restriction{compare(hascntfade)~equalto~0}:all(saproling[fade]|mybattlefield) -1/-1
auto=@movedto(this|nonbattlezone) from(mybattlefield) bury all(saproling[fade]|mybattlefield)
text=Fading 7 (This enchantment enters the battlefield with seven fade counters on it. At the beginning of your upkeep, remove a fade counter from it. If you can't, sacrifice it.) -- Remove a fade counter from Saproling Burst: Put a green Saproling creature token onto the battlefield. It has "This creature's power and toughness are each equal to the number of fade counters on Saproling Burst." -- When Saproling Burst leaves the battlefield, destroy all tokens put onto the battlefield with Saproling Burst. They can't be regenerated.
mana={4}{G}
type=Enchantment
[/card]
[card]
name=Saproling Cluster
auto={1}{D(*|myhand)}:token(Saproling,Creature Saproling,1/1,green)
auto=foreach(land[-tapped]|opponentBattlefield) transforms((,newability[if type(*|myhand)~morethan~0 then ability$!name(Pay 1 and discard) pay[[{1}]] name(Pay 1 and discard) discard:1 && token(Saproling^Creature Saproling^1/1^green)?donothing!$ opponent])) forever
text={1}, Discard a card: Put a 1/1 green Saproling creature token onto the battlefield. Any player may activate this ability.
mana={1}{G}
type=Enchantment
[/card]
[card]
name=Saproling Fun
type=Creature
subtype=Saproling
Expand All @@ -44473,6 +44519,13 @@ toughness=1
color=green
[/card]
[card]
name=Saproling Infestation
auto=@movedTo(*[kicked>=1]|stack):token(Saproling,Creature Saproling,1/1,green)
text=Whenever a player kicks a spell, you put a 1/1 green Saproling creature token onto the battlefield.
mana={1}{G}
type=Enchantment
[/card]
[card]
name=Saproling Migration
kicker={4}
auto=if paid(kicker) then create(Saproling:creature Saproling:1/1:green:)*2
Expand Down Expand Up @@ -44911,6 +44964,17 @@ power=1
toughness=1
[/card]
[card]
name=Scandalmonger
auto={2}:target(player) ability$!name(Discard a card) name(Discard a card) reject notatarget(*|myhand)!$ targetedplayer asSorcery
auto=lord(*|opponentbattlefield) transforms((,newability[{2}:target(player) ability$!name(Discard a card) name(Discard a card) reject notatarget(*|myhand)!$ targetedplayer asSorcery]))
text={2}: Target player discards a card. Any player may activate this ability but only any time he or she could cast a sorcery.
mana={3}{B}
type=Creature
subtype=Boar Monger
power=3
toughness=3
[/card]
[card]
name=Scapeshift
auto={S<anyamount>(land|myBattlefield)}:ability$!moveto(myBattlefield) and!(tap(noevent))! notatarget(<anyamount>land|mylibrary)!$ controller && shuffle
text=Sacrifice any number of lands. Search your library for up to that many land cards, put them onto the battlefield tapped, then shuffle your library.
Expand Down Expand Up @@ -45502,6 +45566,14 @@ mana={1}{G}
type=Enchantment
[/card]
[card]
name=Season's Beatings
auto=choice name(Choose opponent) all(creature|opponentbattlefield) transforms((,newability[damage:p target(other creature|mybattlefield)])) oneshot
auto=choice name(Choose yourself) all(creature|mybattlefield) transforms((,newability[damage:p target(other creature|mybattlefield)])) oneshot
text=Family gathering - Each creature target player controls deals damage equal to its power to another random creature that player controls.
mana={R}{R}{R}{R}
type=Sorcery
[/card]
[card]
name=Seasoned Hallowblade
auto={D(*|myhand)}:tap(noevent) && indestructible ueot
text=Discard a card: Tap Seasoned Hallowblade. It gains indestructible until end of turn. (Damage and effects that say "destroy" don't destroy it.)
Expand All @@ -45523,6 +45595,14 @@ power=2
toughness=2
[/card]
[card]
name=Seasons Past
auto=bottomoflibrary
auto=ability$!may name(Return card with cost 0) moveTo(myHand) target(*[manacost=0]|myGraveyard)!$ controller && ability$!may name(Return card with cost 1) moveTo(myHand) target(*[manacost=1]|myGraveyard)!$ controller && ability$!may name(Return card with cost 2) moveTo(myHand) target(*[manacost=2]|myGraveyard)!$ controller && ability$!may name(Return card with cost 3) moveTo(myHand) target(*[manacost=3]|myGraveyard)!$ controller && ability$!may name(Return card with cost 4) moveTo(myHand) target(*[manacost=4]|myGraveyard)!$ controller && ability$!may name(Return card with cost 5) moveTo(myHand) target(*[manacost=5]|myGraveyard)!$ controller && ability$!may name(Return card with cost 6) moveTo(myHand) target(*[manacost=6]|myGraveyard)!$ controller && ability$!may name(Return card with cost 7) moveTo(myHand) target(*[manacost=7]|myGraveyard)!$ controller && ability$!may name(Return card with cost 8) moveTo(myHand) target(*[manacost=8]|myGraveyard)!$ controller && ability$!may name(Return card with cost 9) moveTo(myHand) target(*[manacost=9]|myGraveyard)!$ controller && ability$!may name(Return card with cost 10) moveTo(myHand) target(*[manacost=10]|myGraveyard)!$ controller
text=Return any number of cards with different converted mana costs from your graveyard to your hand. Put Seasons Past on the bottom of its owner's library.
mana={4}{G}{G}
type=Sorcery
[/card]
[card]
name=Second Sight
aicode=name(look) activate name(look) transforms((,newability[foreach(*[zpos<=5]|mylibrary) moverandom(*[zpos<=5]) from(mylibrary) to(mylibrary)])) ueot
aicode=name(look) activate name(look) transforms((,newability[foreach(*[zpos<=5]|opponentlibrary) moverandom(*[zpos<=5]) from(opponentlibrary) to(opponentlibrary)])) ueot
Expand Down Expand Up @@ -45626,6 +45706,14 @@ power=1
toughness=4
[/card]
[card]
name=Seer's Vision
auto={0}:name(Look opponent's hand) target(*|opponenthand) moveto(opponentreveal) and!( moveto(opponenthand) )!
auto={S}:name(Look hand and discard) target(*|opponenthand) reject assorcery
text=Your opponents play with their hands revealed. -- Sacrifice Seer's Vision: Look at target player's hand and choose a card from it. That player discards that card. Activate this ability only any time you could cast a sorcery.
mana={2}{U}{B}
type=Enchantment
[/card]
[card]
name=Segovian Angel
abilities=flying,vigilance
text=Flying, vigilance
Expand Down
1 change: 1 addition & 0 deletions projects/mtg/bin/Res/sets/primitives/mtg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27829,6 +27829,7 @@ type=Instant
[/card]
[card]
name=Defender en-Vec
auto={C(0/0,-1,Fade)}:name(Prevent 2 damage) prevent:2 target(player,creature)
auto=fading:4
text=Fading 4 (This creature enters the battlefield with four fade counters on it. At the beginning of your upkeep, remove a fade counter from it. If you can't, sacrifice it.) -- Remove a fade counter from Defender en-Vec: Prevent the next 2 damage that would be dealt to target creature or player this turn.
mana={3}{W}
Expand Down
67 changes: 0 additions & 67 deletions projects/mtg/bin/Res/sets/primitives/unsupported.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9921,28 +9921,12 @@ power=3
toughness=3
[/card]
[card]
name=Samite Blessing
text=Enchant creature -- Enchanted creature has "{T}: The next time a source of your choice would deal damage to target creature this turn, prevent that damage."
mana={W}
type=Enchantment
subtype=Aura
[/card]
[card]
name=Samite Ministration
text=Prevent all damage that would be dealt to you this turn by a source of your choice. Whenever damage from a black or red source is prevented this way this turn, you gain that much life.
mana={1}{W}
type=Instant
[/card]
[card]
name=Sanctum Guardian
text=Sacrifice Sanctum Guardian: The next time a source of your choice would deal damage to target creature or player this turn, prevent that damage.
mana={1}{W}{W}
type=Creature
subtype=Human Cleric
power=1
toughness=4
[/card]
[card]
name=Sanctum Prelate
text=As Sanctum Prelate enters the battlefield, choose a number. -- Noncreature spells with converted mana cost equal to the chosen number can't be cast.
mana={1}{W}{W}
Expand All @@ -9958,12 +9942,6 @@ type=Plane
subtype=Serra�s Realm
[/card]
[card]
name=Sandals of Abdallah
text={2}, {T}: Target creature gains islandwalk until end of turn. When that creature dies this turn, destroy Sandals of Abdallah.
mana={4}
type=Artifact
[/card]
[card]
name=Sands of Time
text=Each player skips his or her untap step. -- At the beginning of each player's upkeep, that player simultaneously untaps each tapped artifact, creature, and land he or she controls and taps each untapped artifact, creature, and land he or she controls.
mana={4}
Expand All @@ -9982,24 +9960,6 @@ mana={U}
type=Instant
[/card]
[card]
name=Saproling Burst
text=Fading 7 (This enchantment enters the battlefield with seven fade counters on it. At the beginning of your upkeep, remove a fade counter from it. If you can't, sacrifice it.) -- Remove a fade counter from Saproling Burst: Put a green Saproling creature token onto the battlefield. It has "This creature's power and toughness are each equal to the number of fade counters on Saproling Burst." -- When Saproling Burst leaves the battlefield, destroy all tokens put onto the battlefield with Saproling Burst. They can't be regenerated.
mana={4}{G}
type=Enchantment
[/card]
[card]
name=Saproling Cluster
text={1}, Discard a card: Put a 1/1 green Saproling creature token onto the battlefield. Any player may activate this ability.
mana={1}{G}
type=Enchantment
[/card]
[card]
name=Saproling Infestation
text=Whenever a player kicks a spell, you put a 1/1 green Saproling creature token onto the battlefield.
mana={1}{G}
type=Enchantment
[/card]
[card]
name=Saute
text=Saute deals 3� damage to target creature or player.
mana={1}{R}{R}
Expand All @@ -10018,15 +9978,6 @@ mana={W}
type=Instant
[/card]
[card]
name=Scandalmonger
text={2}: Target player discards a card. Any player may activate this ability but only any time he or she could cast a sorcery.
mana={3}{B}
type=Creature
subtype=Boar Monger
power=3
toughness=3
[/card]
[card]
name=Scarab of the Unseen
text={T}, Sacrifice Scarab of the Unseen: Return all Auras attached to target permanent you own to their owners' hands. Draw a card at the beginning of the next turn's upkeep.
mana={2}
Expand Down Expand Up @@ -10117,12 +10068,6 @@ power=0
toughness=1
[/card]
[card]
name=Season's Beatings
text=Family gathering - Each creature target player controls deals damage equal to its power to another random creature that player controls.
mana={R}{R}{R}{R}
type=Sorcery
[/card]
[card]
name=Seasoned Tactician
text={3}, Exile the top four cards of your library: The next time a source of your choice would deal damage to you this turn, prevent that damage.
mana={2}{W}
Expand All @@ -10132,12 +10077,6 @@ power=1
toughness=3
[/card]
[card]
name=Seasons Past
text=Return any number of cards with different converted mana costs from your graveyard to your hand. Put Seasons Past on the bottom of its owner's library.
mana={4}{G}{G}
type=Sorcery
[/card]
[card]
name=Secret Plans
text=Face-down creatures you control get +0/+1. -- Whenever a permanent you control is turned face up, draw a card.
mana={G}{U}
Expand All @@ -10154,12 +10093,6 @@ text=Hidden agenda (Start the game with this conspiracy face down in the command
type=Conspiracy
[/card]
[card]
name=Seer's Vision
text=Your opponents play with their hands revealed. -- Sacrifice Seer's Vision: Look at target player's hand and choose a card from it. That player discards that card. Activate this ability only any time you could cast a sorcery.
mana={2}{U}{B}
type=Enchantment
[/card]
[card]
name=Seize the Soul
text=Destroy target nonwhite, nonblack creature. Put a 1/1 white Spirit creature token with flying onto the battlefield. -- Haunt (When this spell card is put into a graveyard after resolving, exile it haunting target creature.) -- When the creature Seize the Soul haunts dies, destroy target nonwhite, nonblack creature. Put a 1/1 white Spirit creature token with flying onto the battlefield.
mana={2}{B}{B}
Expand Down

0 comments on commit d783882

Please sign in to comment.