- Fixed the "CANTREGENERATE" keyword (by Zethfox).

The engine always handled it as "REGENERATE" and thus had to be renamed. Its new name is "CANTREGEN". It has been tested excessively by me and Zethfox. Now all cards with the former "cantregenerate" work as they should.

- I also added a test for "CANTREGEN" (Incinerate).


- Added the new keyword "FOG" (by Zethfox). 
This is an equivalent for "PREVENTALLCOMBATDAMAGE", which only worked for instants and sorceries. "Fog" works only for permanents and is used in combination with the newly introduced parameter "ONESHOT"!

- I also added 2 tests for "FOG" (Maze of Ith, Spore Frog).

Both additions lead to several issue fixes:
Fixed issue286.
Fixed issue328.
Fixed issue332.
Fixed issue416.

- Removed Demonic Torment, Gaseous Form, General's Kabuto, Sandskin. Those cards never worked and could even not be fixed with "FOG".


- Optimized the code of the dragon-lair land-cycle from PLS and added 2 tests for them.

- Added 8 successfully tested cards. Card list -> first comment.
This commit is contained in:
solo81@web.de
2010-08-09 23:49:31 +00:00
parent 9e549f3e88
commit 477439773b
14 changed files with 367 additions and 145 deletions

View File

@@ -8075,6 +8075,17 @@ power=5
toughness=5
[/card]
[card]
##Neither works with "preventallCombatDamage" nor "fog".
name=Demonic Torment
target=creature
auto=cantattack
auto=preventAllCombatDamage from(mytgt)
text=Enchant creature -- Enchanted creature can't attack. -- Prevent all combat damage that would be dealt by enchanted creature.
mana={2}{B}
type=Enchantment
subtype=Aura
[/card]
[card]
name=Demon of Death's Gate
text=Flying, trample -- You may pay 6 life and sacrifice three black creatures rather than pay Demon of Death's Gate's mana cost.
mana={6}{B}{B}{B}
@@ -8712,12 +8723,6 @@ power=1
toughness=1
[/card]
[card]
name=Dolmen Gate
text=Prevent all combat damage that would be dealt to attacking creatures you control.
mana={2}
type=Artifact
[/card]
[card]
name=Dominate
text=Gain control of target creature with converted mana cost X or less. (This effect lasts indefinitely.)
mana={X}{1}{U}{U}
@@ -13014,6 +13019,17 @@ power=2
toughness=2
[/card]
[card]
##Neither works with "preventallCombatDamage" nor "fog".
name=Gaseous Form
target=creature
auto=preventAllCombatDamage from(mytgt)
auto=preventAllCombatDamage to(mytgt)
text=Enchant creature -- Prevent all combat damage that would be dealt to and dealt by enchanted creature.
mana={2}{U}
type=Enchantment
subtype=Aura
[/card]
[card]
name=Gate Hound
text=Creatures you control have vigilance as long as Gate Hound is enchanted.
mana={2}{W}
@@ -13129,6 +13145,17 @@ power=1
toughness=2
[/card]
[card]
##Neither works with "preventallCombatDamage" nor "fog".
name=General's Kabuto
auto={2}:equip
auto=shroud
auto=preventAllCombatDamage to(mytgt)
text=Equipped creature has shroud. (It can't be the target of spells or abilities.) -- Prevent all combat damage that would be dealt to equipped creature. -- Equip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.)
mana={4}
type=Artifact
subtype=Equipment
[/card]
[card]
name=General's Regalia
text={3}: The next time a source of your choice would deal damage to you this turn, that damage is dealt to target creature you control instead.
mana={3}
@@ -16136,7 +16163,6 @@ power=*
toughness=*
[/card]
[card]
#"prevent from target" does not work in Wagic 0.11
name=Horn of Deafening
auto={2}{T}:preventAllCombatDamage from target(creature)
text={2}, {T}: Prevent all combat damage that would be dealt by target creature this turn.
@@ -27883,15 +27909,6 @@ mana={2}{R}
type=Instant
[/card]
[card]
name=Radiant Kavu
text={R}{G}{W}: Prevent all combat damage blue creatures and black creatures would deal this turn.
mana={R}{G}{W}
type=Creature
subtype=Kavu
power=3
toughness=3
[/card]
[card]
name=Radiate
text=Choose target instant or sorcery spell that targets only a single permanent or player. Copy that spell for each other permanent or player the spell could target. Each copy targets a different one of those permanents and players.
mana={3}{R}{R}
@@ -30566,6 +30583,17 @@ mana={4}
type=Artifact
[/card]
[card]
##Neither works with "preventallCombatDamage" nor "fog".
name=Sandskin
target=creature
auto=preventAllCombatDamage from(mytgt)
auto=preventAllCombatDamage to(mytgt)
text=Enchant creature -- Prevent all combat damage that would be dealt to and dealt by enchanted creature.
mana={2}{W}
type=Enchantment
subtype=Aura
[/card]
[card]
name=Sandsower
text=Tap three untapped creatures you control: Tap target creature.
mana={3}{W}
@@ -34131,15 +34159,6 @@ power=0
toughness=0
[/card]
[card]
name=Spike Weaver
text=Spike Weaver enters the battlefield with three +1/+1 counters on it. -- {2}, Remove a +1/+1 counter from Spike Weaver: Put a +1/+1 counter on target creature. -- {1}, Remove a +1/+1 counter from Spike Weaver: Prevent all combat damage that would be dealt this turn.
mana={2}{G}{G}
type=Creature
subtype=Spike
power=0
toughness=0
[/card]
[card]
name=Spiketail Drake
text=Flying -- Sacrifice Spiketail Drake: Counter target spell unless its controller pays {3}.
mana={3}{U}{U}
@@ -34435,15 +34454,6 @@ mana={1}{G}{G}
type=Instant
[/card]
[card]
name=Spore Flower
text=At the beginning of your upkeep, put a spore counter on Spore Flower. -- Remove three spore counters from Spore Flower: Prevent all combat damage that would be dealt this turn.
mana={G}{G}
type=Creature
subtype=Fungus
power=0
toughness=1
[/card]
[card]
name=Sporeback Troll
text=Graft 2 (This creature enters the battlefield with two +1/+1 counters on it. Whenever another creature enters the battlefield, you may move a +1/+1 counter from this creature onto it.) -- {1}{G}: Regenerate target creature with a +1/+1 counter on it.
mana={3}{G}
@@ -34759,12 +34769,6 @@ type=Enchantment
subtype=Aura
[/card]
[card]
name=Statecraft
text=Prevent all combat damage that would be dealt to and dealt by creatures you control.
mana={3}{U}
type=Enchantment
[/card]
[card]
name=Static Orb
text=If Static Orb is untapped, players can't untap more than two permanents during their untap steps.
mana={3}
@@ -38436,15 +38440,6 @@ power=2
toughness=2
[/card]
[card]
name=Urborg Phantom
text=Urborg Phantom can't block. -- {U}: Prevent all combat damage that would be dealt to and dealt by Urborg Phantom this turn.
mana={2}{B}
type=Creature
subtype=Spirit Minion
power=3
toughness=1
[/card]
[card]
name=Urborg, Tomb of Yawgmoth
text=Each land is a Swamp in addition to its other land types.
type=Legendary Land