Psyringe - added quantifiable target restrictions. Whenever you use square brackets [] to specify attributes of a target, you can use the operators <=, >= and = to specify quantities for power, toughness, and/or converted manacost. See added cards for examples.

Limitations:
- Operators for "greater than", "less than", "unequal" have not been implemented, but if a card actually needs them, you can use a preceding minus sign to negate a comparison. Example: -power=3 means "power not equal to 3", -toughness<=3 means "toughness>3".
- You can't use spaces when specifying such restrictions. Write "power<=3" instead of "power <= 3"
- You now need to use a space before the "<" and ">" commands that count the matches for lord(), foreach(), all() and aslongas(). So far we always did use spaces in front of them without actually needing to, now we need to.
- manacost restrictions don't take "X" costs into account. Example: Mistmeadow Skulkin (FUT) has protection from manacost>=3. Blaze has a converted manacost of 1, but when you cast it with an X of 2, then it actually has a converted manacost of 3 while on the stack, and Mistmeadow Skulkin would be protected from it, but currently it isn't.

Please review the code, I'll add a few remarks/questions of my own.
This commit is contained in:
Psyyringe
2009-12-26 01:50:33 +00:00
parent ddb9ce251b
commit 5c3b3f1d03
22 changed files with 276 additions and 81 deletions
+1 -1
View File
@@ -483,7 +483,7 @@ mana={2}{U}
[card]
text={T}: Target creature with power 2 or less is unblockable this turn.
id=134758
alias=1285
auto={T}:unblockable target(creature[power<=2])
name=Crafty Pathmage
rarity=C
type=Creature
+1 -1
View File
@@ -346,7 +346,7 @@ toughness=4
[card]
text={2}, {T}:Target creature with power 2 or less is unblockable this turn.
id=1025
alias=1285
auto={T}:unblockable target(creature[power<=2])
name=Tawnos's Wand
rarity=U
mana={4}
+13
View File
@@ -267,6 +267,19 @@ auto=foreach(creature|myBattlefield) draw:1
auto=foreach(creature|myBattlefield) life:-1
[/card]
[card]
id=130346
name=Mistmeadow Skulk
mana={1}{W}
type=Creature
subtype=Kithkin Rogue
power=1
toughness=1
text=Lifelink, protection from converted mana cost 3 or greater
auto=protection from(*[manacost>=3])
abilities=lifelink
rarity=U
[/card]
[card]
id=136138
name=Nessian Courser
rarity=C
-11
View File
@@ -741,17 +741,6 @@ text=All Slivers have "When this permanent comes into play, you may fateseal 1."
rarity=C
[/card]
[card]
id=130346
name=Mistmeadow Skulk
mana={1}{W}
type=Creature
subtype=Kithkin Rogue
power=1
toughness=1
text=Lifelink, protection from converted mana cost 3 or greater
rarity=U
[/card]
[card]
id=136154
name=Molten Disaster
mana={X}{R}{R}
+24
View File
@@ -206,6 +206,30 @@ auto={2}{T}:add{U}
rarity=U
[/card]
[card]
id=3013
name=Aysen Bureaucrats
mana={1}{W}
type=Creature
subtype=Human Advisor
power=1
toughness=1
text={T}: Tap target creature with power 2 or less.
auto={T}:tap target(creature[power<=2])
rarity=C
[/card]
[card]
id=3014
name=Aysen Bureaucrats
mana={1}{W}
type=Creature
subtype=Human Advisor
power=1
toughness=1
text={T}: Tap target creature with power 2 or less.
auto={T}:tap target(creature[power<=2])
rarity=C
[/card]
[card]
id=3015
name=Aysen Crusader
mana={2}{W}{W}
-11
View File
@@ -23,17 +23,6 @@ text={2}, {T}, Sacrifice Apocalypse Chime: Destroy all nontoken permanents from
rarity=R
[/card]
[card]
id=3014
name=Aysen Bureaucrats
mana={1}{W}
type=Creature
subtype=Human Advisor
power=1
toughness=1
text={T}: Tap target creature with power 2 or less.
rarity=C
[/card]
[card]
id=2936
name=Baki's Curse
mana={2}{U}{U}
+2
View File
@@ -22,6 +22,7 @@ type=Land
[/card]
[card]
text={1}, {T}: Target 1/1 creature gets +1/+2 until end of turn.
auto={1}{T}: 1/2 target(creature[power=1;toughness=1])
id=2393
name=Aegis of the Meek
rarity=R
@@ -1531,6 +1532,7 @@ type=Instant
[/card]
[card]
text={2}, {T}: Target creature with power 3 or less gains flying until end of turn.
auto={2}{T}: flying target(creature[power<=3])
id=2435
name=Whalebone Glider
rarity=U
+1
View File
@@ -964,6 +964,7 @@ abilities=legendary
text={T}: Add {G} to your mana pool. {T}: Target 1/1 creature gets +1/+2 until end of turn.
id=1703
auto={T}:Add {G}
auto={T}: 1/2 target(creature[power=1;toughness=1])
name=Pendelhaven
rarity=U
type=Land
+1 -1
View File
@@ -345,7 +345,7 @@ toughness=2
text={T}: Target creature with power 2 or less is unblockable this turn.
id=3441
name=Dwarven Nomad
alias=1285
auto={T}:unblockable target(creature[power<=2])
type=Creature
subtype=Dwarf Nomad
rarity=C
+1 -1
View File
@@ -192,7 +192,7 @@ toughness=0
[card]
text={T}: Target creature with power 2 or less is unblockable this turn.
id=40060
alias=1285
auto={T}:unblockable target(creature[power<=2])
name=Crafty Pathmage
rarity=C
mana={2}{U}
+10
View File
@@ -608,6 +608,7 @@ toughness=1
[/card]
[card]
text={T}: Target creature with power 2 or less is unblockable this turn.
auto={T}:unblockable target(creature[power<=2])
id=1285
name=Dwarven Warriors
rarity=C
@@ -1406,6 +1407,15 @@ mana={1}
type=Artifact
[/card]
[card]
text=Creatures with power 3 or greater don't untap during their controllers' untap steps.
auto=lord(creature[power>=3]) doesnotuntap
id=1125
name=Meekstone
rarity=R
type=Artifact
mana={1}
[/card]
[card]
id=1210
name=Merfolk of the Pearl Trident
rarity=C
-9
View File
@@ -264,15 +264,6 @@ type=Enchantment
mana={3}{R}
[/card]
[card]
text=Creatures with power 3 or greater don't untap during their controllers' untap steps.
id=1125
name=Meekstone
rarity=R
color=Artifact
type=Artifact
mana={1}
[/card]
[card]
text=Flying, banding
#Banding not supported in Wagic 0.9
abilities=Flying, banding