- Fix issue #16 (testsuite segfaults if file does not exist)
- Fix issue #37 (Normal Combat Damage is not dealt to creatures when the AI attacks)
- TestSuite now has an "AI" mode (see test/manual/p2_attacks.txt)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-22 06:15:32 +00:00
parent d7657e8bdf
commit 71d4818646
16 changed files with 172 additions and 22 deletions
+1
View File
@@ -138,6 +138,7 @@ lord_of_the_pit2.txt
master_of_etherium.txt
millstone.txt
#mind_rot.txt
mobile_fort.txt
nantuko_husk.txt
necrogenesis.txt
Nevinyrrals_Disk.txt
@@ -0,0 +1,2 @@
In this folder, we put tests that are not supposed to be 100% automated.
you switch the control of each Test suite player to Human or AI, to monitor the behavior of the game given a specific starting state
@@ -0,0 +1,11 @@
#Scenario: simple attack with grizzly bears
[INIT]
FIRSTMAIN
[PLAYER1]
inplay:grizzly bears
[PLAYER2]
[DO]
human
next
[ASSERT]
[END]
@@ -0,0 +1,12 @@
#Scenario: control magic on a creature: it gets duplicated ???
[INIT]
FIRSTMAIN
[PLAYER1]
hand:control magic
manapool:{2}{U}{U}
[PLAYER2]
inplay:air elemental
[DO]
human
[ASSERT]
[END]
@@ -0,0 +1,11 @@
#Scenario: simple attack with white knight
[INIT]
FIRSTMAIN
[PLAYER1]
inplay:white knight
[PLAYER2]
[DO]
human
next
[ASSERT]
[END]
@@ -0,0 +1,13 @@
#Scenario: simple attack with white knight + grizzly bears
#Attack with both.
#There should be a request for interruption between the two damage assignation steps, so that users can cast spells
[INIT]
COMBATATTACKERS
[PLAYER1]
inplay:white knight,grizzly bears
[PLAYER2]
[DO]
human
next
[ASSERT]
[END]
@@ -0,0 +1,23 @@
#New blockers reordering rule
[INIT]
COMBATATTACKERS
[PLAYER1]
inplay:Puppeteer
[PLAYER2]
inplay:raging goblin,Drudge Skeletons
[DO]
Puppeteer
next
#blockers
raging goblin
Drudge Skeletons
next
human
[ASSERT]
COMBATEND
[PLAYER1]
graveyard:Puppeteer
[PLAYER2]
graveyard:Drudge Skeletons
inplay:raging goblin
[END]
@@ -0,0 +1,16 @@
#Bug: AI player 2 attacks: no damage is dealt
#This is a test switching both players to AI mode, it IS NOT SUPPOSED TO Succeed, just for testers to visually confirm stuff
[INIT]
SECONDMAIN
[PLAYER1]
inplay:dancing scimitar
[PLAYER2]
inplay:cloud sprite,briarberry cohort,white knight
[DO]
ai
ai
[ASSERT]
COMBATEND
[PLAYER1]
[PLAYER2]
[END]
+27
View File
@@ -0,0 +1,27 @@
#Bug: Mobile Fort doesn't get +3/-1
[INIT]
FIRSTMAIN
[PLAYER1]
inplay:mobile fort
manapool:{3}
[PLAYER2]
[DO]
mobile fort
next
#beign
next
#attackers
mobile fort
next
#blockers
next
#damage
next
#combatend
[ASSERT]
COMBATEND
[PLAYER1]
inplay:mobile fort
[PLAYER2]
life:17
[END]