- 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
+5
View File
@@ -180,6 +180,8 @@ creature_bond.txt
curiosity1_i217.txt
curiosity2_i217.txt
crimson_kobolds.txt
crosis_s_catacombs_1.txt
crosis_s_catacombs_2.txt
crumble.txt
crystal_rod_i172.txt
dark_banishing.txt
@@ -284,6 +286,7 @@ hypnotic_specter.txt
icatian_priest.txt
imaginary_pet.txt
immaculate_magistrate.txt
incinerate.txt
instill_energy_i166.txt
iron_will_i270.txt
ivy_elemental.txt
@@ -326,6 +329,7 @@ master_decoy.txt
master_of_etherium.txt
masticore.txt
masticore2.txt
maze_of_ith.txt
meekstone.txt
memory_erosion.txt
millstone.txt
@@ -422,6 +426,7 @@ sphinx_summoner.txt
spirit_link.txt
spitting_earth.txt
spoils_of_evil.txt
spore_frog.txt
stasis.txt
steelclad_serpent1.txt
steelclad_serpent2.txt
@@ -0,0 +1,20 @@
#NAME: Crosis's Catacombs
#DESC: When Crosis's Catacombs enters the battlefield, sacrifice it unless you return a non-Lair land you control to its owner's hand.
#DESC: Catacombs enter the battlefield WITH a legal target to bounce.
[INIT]
firstmain
[PLAYER1]
inplay:Swamp
hand:Crosis's Catacombs
[PLAYER2]
[DO]
Crosis's Catacombs
choice 0
Swamp
[ASSERT]
firstmain
[PLAYER1]
inplay:Crosis's Catacombs
hand:Swamp
[PLAYER2]
[END]
@@ -0,0 +1,18 @@
#NAME: Crosis's Catacombs
#DESC: When Crosis's Catacombs enters the battlefield, sacrifice it unless you return a non-Lair land you control to its owner's hand.
#DESC: Test 2: Catacombs enter the battlefield WITHOUT a legal target to bounce.
[INIT]
firstmain
[PLAYER1]
hand:Crosis's Catacombs
[PLAYER2]
[DO]
Crosis's Catacombs
choice 0
Crosis's Catacombs
[ASSERT]
firstmain
[PLAYER1]
graveyard:Crosis's Catacombs
[PLAYER2]
[END]
+21
View File
@@ -0,0 +1,21 @@
#Testing Does Incinerate really prevent its target from keeping its regeneration shield?
[INIT]
FIRSTMAIN
[PLAYER1]
hand:Deathmark,Incinerate
inplay:Child Of Gaea
manapool:{2}{B}{R}{G}
[PLAYER2]
[DO]
Incinerate
Child of Gaea
Child of Gaea
Deathmark
Child of Gaea
[ASSERT]
FIRSTMAIN
[PLAYER1]
graveyard:Incinerate,Deathmark,Child of Gaea
manapool:{0}
[PLAYER2]
[END]
+48
View File
@@ -0,0 +1,48 @@
#NAME:Maze of Ith
#Test:Does Maze of Ith prevent an attacking creature from dealing combat damage (for only one turn)?
[INIT]
FIRSTMAIN
[PLAYER1]
inplay:prodigal sorcerer,raging goblin,maze of ith
[PLAYER2]
life:20
[DO]
fog
prodigal sorcerer
p2
next
#begin
next
#attackers
raging goblin
maze of ith
raging goblin
next
#blockers
next
#damage
next
#end combat
eot
eot
next
next
next
next
#combatbegins
next
#attackers
raging goblin
next
#blockers
next
#damage
next
#end combat
[ASSERT]
COMBATEND
[PLAYER1]
inplay:prodigal sorcerer,raging goblin,maze of ith
[PLAYER2]
life:18
[END]
+49
View File
@@ -0,0 +1,49 @@
#NAME:Spore Frog
#Test:Does Spore Frog prevent all combat damage (for only one turn)?
[INIT]
FIRSTMAIN
[PLAYER1]
inplay:prodigal sorcerer,raging goblin,panther warriors,spore frog
[PLAYER2]
life:20
[DO]
spore frog
prodigal sorcerer
p2
next
#begin
next
#attackers
raging goblin
panther warriors
next
#blockers
next
#damage
next
#end combat
eot
eot
next
next
next
next
#combatbegins
next
#attackers
raging goblin
panther warriors
next
#blockers
next
#damage
next
#end combat
[ASSERT]
COMBATEND
[PLAYER1]
inplay:prodigal sorcerer,raging goblin,panther warriors
graveyard:spore frog
[PLAYER2]
life:12
[END]