Psyringe - fix for issue 217. Curiosity now works correctly by means of the new mytgt keyword. Test scripts which check the behavior of Curiosity when cast an one's own creature, and when cast on an opponent's creature, have been added.

This commit is contained in:
Psyyringe
2009-11-26 07:16:17 +00:00
parent 89e894da75
commit 2175359378
4 changed files with 71 additions and 1 deletions
+2
View File
@@ -115,6 +115,8 @@ counterspell2.txt
counterspell3.txt
counterspell4.txt
creature_bond.txt
curiosity1_i217.txt
curiosity2_i217.txt
crimson_kobolds.txt
crumble.txt
crystal_rod_i172.txt
@@ -0,0 +1,30 @@
#NAME: Curiosity 1
#DESC: Bug: does not make the player draw
#DESC: a card when it damages the opponent
#DESC: See http://code.google.com/p/wagic/issues/detail?id=217
[INIT]
firstmain
[PLAYER1]
inplay:Craw Wurm
hand:Curiosity
library:Forest
manapool:{U}
[PLAYER2]
[DO]
Curiosity
Craw Wurm
next
next
Craw Wurm
next
next
choice 0
next
[ASSERT]
combatend
[PLAYER1]
inplay:Craw Wurm,Curiosity
hand:Forest
[PLAYER2]
life:14
[END]
@@ -0,0 +1,38 @@
#NAME: Curiosity 2
#DESC: Tests whether Curiosity works correctly
#DESC: when cast on an opponent's creature
#DESC: http://code.google.com/p/wagic/issues/detail?id=217
[INIT]
firstmain
[PLAYER1]
hand:Curiosity
library:Island
manapool:{U}
[PLAYER2]
inplay:Craw Wurm
library:Forest,Plains
[DO]
Curiosity
Craw Wurm
eot
next
next
next
next
next
Craw Wurm
next
next
choice 0
next
[ASSERT]
combatend
[PLAYER1]
inplay:Curiosity
hand:Island
life:14
[PLAYER2]
inplay:Craw Wurm
hand:Plains
library:Forest
[END]