Files
wagic/projects/mtg/bin/Res/sets/DST/_cards.dat
T
Psyyringe 49536fce44 Psyringe - introducing new ability: cantBeBlockedBy(T). T can be any targez specification, like "wall", "creature[flying]", etc. See added cards for examples. Note: This ability currently has the same restrictions as "protection from(T)", i.e. it can't be used in activated abilities or instants/sorceries. It *can* be used for creatures,auras, and other continuous abilities (e.g. an enchantment which grants "unblockable by walls" to all rats should be possible, although I didn't test that). There are 47 cards which use the phrase "can't be blocked by", so we should be able to get another fair mount of cards out of that.
Notes to programmers:
1. This feature uses an awful lot of copy-pasta, using "protetcion from()" as a base. While I'm learning the architecture, it's easier for me to have a dedicated single-purpose piece of code to work with, than trying to create multi-purpose code. I'm aware that this isn't a very elegant approach though, and I hope to be able to refactor additions like this into multi-purpose code once I have a better understanding of the architecture as a whole.

2. Please check the questions I'll add in my next code comments, specifically about AI integration and activated abilities / instants / sorceries.

3. I did have a crash (with the debugger complaining about stack corruption around the cd variable) during testing. I wasn't able to reproduce it though. I did have to clean the solution in-between when I updated to the primitives system, so perhaps there was this cleaning solved whatever corruption was in my files. I'm mentioning the issue in case someone has an idea on where my code might be risky (I'm still probne to making beginners mistakes).
2009-12-28 18:19:17 +00:00

663 lines
16 KiB
Plaintext

[card]
text=Whenever a player casts a white spell, you may gain 1 life.
id=72686
name=Angel's Feather
mana={2}
type=Artifact
auto=@movedto(*[white]|stack):may life:1 controller
rarity=U
[/card]
[card]
text=Target player loses 1 life for each tapped artifact he or she controls.
id=43557
name=Burden of Greed
mana={3}{B}
type=Instant
target=opponent
auto=foreach(artifact[tapped]|opponentBattlefield)damage:1
rarity=C
[/card]
[card]
text=Crazed Goblin attacks each turn if able.
id=46078
name=Crazed Goblin
mana={R}
abilities=mustattack
type=Creature
subtype=Goblin Warrior
power=1
toughness=1
rarity=C
[/card]
[card]
text=Darksteel Citadel is indestructible. ("Destroy" effects and lethal damage don't destroy it.) {T}: Add {1} to your mana pool.
id=45415
name=Darksteel Citadel
auto={T}:add{1}
type=Land
subtype=Artifact
abilities=indestructible
rarity=C
[/card]
[card]
text=Artifacts you control are indestructible. ("Destroy" effects and lethal damage don't destroy them.)
id=48072
name=Darksteel Forge
mana={9}
type=Artifact
auto=lord(artifact|myBattlefield)indestructible
rarity=R
[/card]
[card]
text=Flying. Darksteel Gargoyle is indestructible. ("Destroy" effects and lethal damage don't destroy it.)
id=46136
name=Darksteel Gargoyle
mana={7}
abilities=flying,indestructible
type=Artifact Creature
subtype=Gargoyle
power=3
toughness=3
rarity=U
[/card]
[card]
text=Darksteel Ingot is indestructible. ("Destroy" effects and lethal damage don't destroy it.). {T}: Add one mana of any color to your mana pool.
id=48048
name=Darksteel Ingot
mana={3}
type=Artifact
auto={T}:add{G}
auto={T}:add{W}
auto={T}:add{U}
auto={T}:add{R}
auto={T}:add{B}
abilities=indestructible
rarity=C
[/card]
[card]
text=Whenever a player casts a black spell, you may gain 1 life.
id=72682
name=Demon's Horn
mana={2}
type=Artifact
auto=@movedto(*[black]|stack):may life:1 controller
rarity=U
[/card]
[card]
text=Whenever a player casts a red spell, you may gain 1 life.
id=72683
name=Dragon's Claw
mana={2}
type=Artifact
auto=@movedto(*[red]|stack):may life:1 controller
rarity=U
[/card]
[card]
text=Flying Drill-Skimmer has shroud as long as you control another artifact creature. (It can't be the target of spells or abilities.)
id=51056
name=Drill-Skimmer
mana={4}
abilities=flying
auto=aslongas(other creature[artifact]|myBattlefield)shroud
type=Artifact Creature
subtype=Thopter
power=2
toughness=1
rarity=C
[/card]
[card]
text=Whenever a player casts an artifact spell, that player gains control of Drooling Ogre. (This effect lasts indefinitely.)
name=Drooling Ogre
id=49089
mana={1}{R}
auto=@movedto(*[artifact]|opponentstack):moveto(opponentBattlefield)
type=Creature
subtype=Ogre
power=3
toughness=3
rarity=C
[/card]
[card]
text=Flying. Whenever Emissary of Despair deals combat damage to a player, that player loses 1 life for each artifact he or she controls.
name=Emissary of Despair
auto=@damaged(player) from(this):foreach(artifact|opponentbattlefield) life:-1 opponent
id=45469
mana={1}{B}{B}
abilities=flying
type=Creature
subtype=Spirit
power=2
toughness=1
rarity=U
[/card]
[card]
text=Flying. Whenever Emissary of Hope deals combat damage to a player, you gain 1 life for each artifact that player controls.
name=Emissary of Hope
id=48153
auto=@damaged(player) from(this):foreach(artifact|opponentbattlefield) life:1 controller
mana={1}{W}{W}
abilities=flying
type=Creature
subtype=Spirit
power=2
toughness=1
rarity=U
[/card]
[card]
text=Essence Drain deals 3 damage to target creature or player and you gain 3 life.
id=50536
name=Essence Drain
mana={4}{B}
type=Sorcery
target=creature,player
auto=damage:3
auto=life:3 controller
rarity=C
[/card]
[card]
text=Fireball deals X damage divided evenly, rounded down, among any number of target creatures and/or players. Fireball costs {1} more to cast for each target beyond the first.
id=46768
name=Fireball
target=players,creatures
alias=1291
mana={X}{R}
type=Sorcery
rarity=U
[/card]
[card]
text=Whenever an opponent discards a card, you may draw a card.
id=51070
name=Geth's Grimoire
mana={4}
type=Artifact
auto=@movedto(*|graveyard) from(opponenthand):may draw:1 controller
rarity=U
[/card]
[card]
text=Flying {B}, Pay 1 life: Grimclaw Bats gets +1/+1 until end of turn.
id=46100
name=Grimclaw Bats
mana={1}{B}
abilities=flying
auto={B}:1/1 && life:-1 controller
type=Creature
subtype=Bat
power=1
toughness=1
rarity=C
[/card]
[card]
text=Flying Hoverguard Observer can block only creatures with flying.
id=49020
name=Hoverguard Observer
mana={2}{U}{U}
abilities=flying,cloud
type=Creature
subtype=Drone
power=3
toughness=3
rarity=U
[/card]
[card]
text=Target creature gets +1/+0 until end of turn for each artifact you control.
id=46088
name=Hunger of the Nim
mana={1}{B}
type=Sorcery
target=creature
auto=foreach(artifact|myBattlefield)1/0
rarity=C
[/card]
[card]
text=Defender (This creature can't attack.) Protection from artifacts Whenever an opponent casts an artifact spell, you may put a 1/1 green Insect creature token onto the battlefield.
id=48598
name=Infested Roothold
mana={4}{G}
abilities=Defender
auto=protection from(artifact)
auto=@movedto(artifact|opponentBattlefield):may token(Insect,Creature Insect,1/1,green)
type=Creature
subtype=Wall
power=0
toughness=3
rarity=U
[/card]
[card]
id=43579
name=Juggernaut
mana={4}
type=Artifact Creature
subtype=Juggernaut
power=5
toughness=3
text=Juggernaut attacks each turn if able. Juggernaut can't be blocked by Walls.
auto=cantbeblockedby(wall)
abilities=mustattack
rarity=U
[/card]
[card]
text=Karstoderm enters the battlefield with five +1/+1 counters on it. Whenever an artifact enters the battlefield, remove a +1/+1 counter from Karstoderm.
id=39478
name=Karstoderm
mana={2}{G}{G}
auto=counter(1/1,5)
auto=@movedto(artifact|myBattlefield):counter(1/1,-1)
auto=@movedto(artifact|opponentBattlefield):counter(1/1,-1)
type=Creature
subtype=Beast
power=0
toughness=0
rarity=U
[/card]
[card]
text=Whenever a player casts a blue spell, you may gain 1 life.
id=49049
name=Kraken's Eye
mana={2}
type=Artifact
auto=@movedto(*[blue]|stack):may life:1 controller
rarity=U
[/card]
[card]
text={T}, Sacrifice an artifact: Add {R}{R} to your mana pool.
id=43491
name=Krark-Clan Stoker
mana={2}{R}
auto={T}{S(artifact|myBattlefield)}:add {R}{R}
type=Creature
subtype=Goblin Shaman
power=2
toughness=2
rarity=C
[/card]
[card]
text=Last Word can't be countered by spells or abilities. Counter target spell.
id=50929
name=Last Word
mana={2}{U}{U}
type=Instant
abilities=nofizzle
target=*|stack
auto=fizzle
rarity=R
[/card]
[card]
text={T}: Target creature gets +1/+1 until end of turn.Whenever you cast a spell, you may untap Leonin Battlemage.
id=44307
name=Leonin Battlemage
mana={3}{W}
auto={T}:1/1 target(creature)
auto=@movedto(*|mystack):may untap
type=Creature
subtype=Cat Wizard
power=2
toughness=3
rarity=U
[/card]
[card]
text={W}, {T}: Tap target creature.
id=39562
name=Loxodon Mystic
mana={3}{W}{W}
auto={W}{T}:tap target(creature)
type=Creature
subtype=Elephant Cleric
power=3
toughness=3
rarity=C
[/card]
[card]
text=Artifact creatures you control gain flying until end of turn.
id=43559
name=Magnetic Flux
mana={2}{U}
type=Instant
auto=lord(creature[artifact]|myBattlefield)flying
rarity=C
[/card]
[card]
text=Mephitic Ooze gets +1/+0 for each artifact you control. Whenever Mephitic Ooze deals combat damage to a creature, destroy that creature. The creature can't be regenerated.
name=Mephitic Ooze
id=46154
mana={4}{B}
auto=foreach(artifact|myBattlefield)1/0
abilities=deathtouch
type=Creature
subtype=Ooze
power=0
toughness=5
rarity=R
[/card]
[card]
text=Tap all artifacts.
id=45191
name=Metal Fatigue
mana={2}{W}
type=Instant
auto=tap all(artifact)
rarity=C
[/card]
[card]
text=Myr Matrix is indestructible. ("Destroy" effects and lethal damage don't destroy it.) Myr creatures get +1/+1. {5}: Put a 1/1 colorless Myr artifact creature token onto the battlefield.
id=48049
name=Myr Matrix
mana={5}
type=Artifact
abilities=indestructible
auto=lord(Myr)1/1
auto={5}:token(Myr,Artifact Creature Myr,1/1,artifact)
rarity=R
[/card]
[card]
text=When Myr Moonvessel is put into a graveyard from the battlefield, add {1} to your mana pool.
id=46112
name=Myr Moonvessel
mana={1}
auto=@movedto(this|graveyard):add {1}
type=Artifact Creature
subtype=Myr
power=1
toughness=1
rarity=C
[/card]
[card]
text=Flying. Discard an artifact card: Return Neurok Prodigy to its owner's hand.
name=Neurok Prodigy
id=46116
abilities=flying
mana={2}{U}
auto={S(artifact|myhand)}:moveto(ownerhand)
type=Creature
subtype=Human Wizard
power=2
toughness=1
rarity=C
[/card]
[card]
text=You gain 6 life.
id=46076
name=Nourish
mana={G}{G}
type=Instant
auto=life:6 controller
rarity=C
[/card]
[card]
text=Destroy target artifact. It can't be regenerated.
id=46012
name=Oxidize
mana={G}
type=Instant
target=artifact
auto=bury
rarity=U
[/card]
[card]
text=Flying. Sacrifice Pteron Ghost: Regenerate target artifact.
id=49035
name=Pteron Ghost
mana={1}{W}
abilities=flying
auto={S}:regenerate target(artifact)
type=Creature
subtype=Spirit
power=1
toughness=1
rarity=C
[/card]
[card]
text=Destroy target artifact creature or black creature. It can't be regenerated.
id=34479
name=Purge
mana={1}{W}
type=Instant
target=creature[black,artifact]
auto=bury
rarity=U
[/card]
[card]
text=Return all artifacts you control to their owner's hand.
id=48573
name=Retract
mana={U}
type=Instant
auto=moveto(ownerhand) all(artifact|myBattlefield)
rarity=R
[/card]
[card]
text=Return target artifact card from your graveyard to your hand.
id=48576
name=Ritual of Restoration
mana={W}
type=Sorcery
target=artifact|myGraveyard
auto=moveto(myHand)
rarity=C
[/card]
[card]
id=46083
name=Roaring Slagwurm
mana={5}{G}{G}
type=Creature
subtype=Wurm
power=6
toughness=4
text=Whenever Roaring Slagwurm attacks, tap all artifacts.
# Following should actually read this[attacking], but this isn't
# codeable yet. The workaround used here works because the effect
# (tap) is not cumulative.
auto=@each combatblockers:aslongas(Roaring Slagwurm[attacking]) tap all(artifact)
rarity=R
[/card]
[card]
text=Scavenging Scarab can't block.
id=46093
name=Scavenging Scarab
mana={3}{B}
abilities=cantblock
type=Creature
subtype=Insect
power=3
toughness=3
rarity=C
[/card]
[card]
id=48582
name=Shield of Kaldra
mana={4}
type=Artifact
subtype=Equipment
text=Equipment named Sword of Kaldra, Shield of Kaldra, and Helm of Kaldra are indestructible. Equipped creature is indestructible. ("Destroy" effects and lethal damage don't destroy it.) Equip {4}
auto=lord(sword of kaldra,shield of kaldra,helm of kaldra) indestructible
auto=indestructible
auto={4}:equip
abilities=legendary
rarity=R
[/card]
[card]
id=48197
name=Skullclamp
mana={1}
type=Artifact
subtype=Equipment
text=Equipped creature gets +1/-1. When equipped creature is put into a graveyard, draw two cards. Equip {1} ({1}: Attach to target creature you control. Equip only as a sorcery. This card enters the battlefield unattached and stays on the battlefield if the creature leaves.)
auto=1/-1
auto=@movedto(mytgt|graveyard):draw:2 controller
auto={1}:equip
rarity=U
[/card]
[card]
text=Sacrifice an artifact: Target artifact is indestructible this turn. ("Destroy" effects and lethal damage don't destroy that artifact.)
name=Slobad, Goblin Tinkerer
id=51055
auto={S(artifact|myBattlefield)}:indestructible target(artifact)
mana={1}{R}
type=Creature
abilities=legendary
subtype=Goblin Artificer
power=1
toughness=2
rarity=R
[/card]
[card]
text=Destroy all nonartifact permanents.
id=43511
name=Soulscour
mana={7}{W}{W}{W}
type=Sorcery
auto=destroy all(*[-artifact])
rarity=R
[/card]
[card]
id=47453
name=Sword of Light and Shadow
mana={3}
type=Artifact
subtype=Equipment
text=Equipped creature gets +2/+2 and has protection from white and from black. Whenever equipped creature deals combat damage to a player, you gain 3 life and you may return up to one target creature card from your graveyard to your hand. Equip {2}
auto={2}:equip
auto=protection from white
auto=protection from black
auto=2/2
auto=@damaged(player) from(mytgt):life:3
auto=@damaged(player) from(mytgt):may moveTo(myhand) target(creature|mygraveyard)
rarity=R
[/card]
[card]
text=Flash (You may cast this spell any time you could cast an instant.) Reach (This creature can block creatures with flying.)
id=46548
name=Tangle Spider
mana={4}{G}{G}
abilities=flash,reach
type=Creature
subtype=Spider
power=3
toughness=4
rarity=C
[/card]
[card]
text=Creatures you control are unblockable as long as defending player controls an artifact land.
id=43547
name=Tanglewalker
mana={2}{G}
auto=aslongas(land[artifact]|opponentBattlefield)lord(creature|myBattlefield)unblockable
type=Creature
subtype=Dryad
power=2
toughness=2
rarity=U
[/card]
[card]
text=Protection from artifacts
name=Tel-Jilad Outrider
id=46002
mana={3}{G}
auto=protection from(artifact)
type=Creature
subtype=Elf Warrior
power=3
toughness=1
rarity=C
[/card]
[card]
text={T}: Add {2} to your mana pool.
id=49110
name=Ur-Golem's Eye
mana={4}
type=Artifact
auto={T}:add{2}
rarity=C
[/card]
[card]
id=49085
name=Vex
mana={2}{U}
type=Instant
text=Counter target spell. That spell's controller may draw a card.
target=*|stack
auto=fizzle
auto=may draw:1 targetcontroller
rarity=C
[/card]
[card]
text={1}, {T}: Add one mana of any color to your mana pool.
id=15190
name=Viridian Acolyte
mana={G}
auto={1}{T}:add{G}
auto={1}{T}:add{W}
auto={1}{T}:add{B}
auto={1}{T}:add{U}
auto={1}{T}:add{R}
type=Creature
subtype=Elf Shaman
power=1
toughness=1
rarity=C
[/card]
[card]
text={1}{G}, Sacrifice Viridian Zealot: Destroy target artifact or enchantment.
id=46547
name=Viridian Zealot
mana={G}{G}
auto={1}{G}{S}:destroy target(artifact,enchantment)
type=Creature
subtype=Elf Warrior
power=2
toughness=1
rarity=R
[/card]
[card]
text={2}: Untap target artifact creature.
id=48141
name=Voltaic Construct
mana={4}
auto={2}:untap target(creature[artifact])
type=Artifact Creature
subtype=Golem Construct
power=2
toughness=2
rarity=U
[/card]
[card]
id=49758
name=Vulshok Morningstar
mana={2}
type=Artifact
subtype=Equipment
text=Equipped creature gets +2/+2. Equip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.)
auto={2}:equip
auto=2/2
rarity=U
[/card]
[card]
text={T}, Sacrifice an Island: Put a 2/2 blue Elemental creature token with flying onto the battlefield. {T}, Sacrifice a Mountain: Put a 3/3 red Elemental creature token onto the battlefield.
id=49775
name=Wand of the Elements
mana={4}
type=Artifact
auto={T}{S(island|myBattlefield)}:token(Elemental,Creature Elemental,2/2,flying blue)
auto={T}{S(mountain|myBattlefield)}:token(Elemental,Creature Elemental,3/3,red)
rarity=R
[/card]
[card]
id=46030
name=Whispersilk Cloak
mana={3}
type=Artifact
subtype=Equipment
text=Equipped creature is unblockable. Equipped creature has shroud. (It can't be the target of spells or abilities.) Equip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.)
auto={2}:equip
auto=unblockable
auto=shroud
rarity=U
[/card]
[card]
text=Whenever a player casts a green spell, you may gain 1 life.
id=72684
name=Wurm's Tooth
mana={2}
type=Artifact
auto=@movedto(*[green]|stack):may life:1 controller
rarity=U
[/card]