Added missing test for syncopate + 2 tests for spell_rupture
This commit is contained in:
@@ -83704,7 +83704,7 @@ type=Instant
|
||||
[card]
|
||||
name=Spell Rupture
|
||||
target=*|stack
|
||||
auto=if cantargetcard(*|opponentstack) then transforms((,newability[pay[[{value:power:highest:creature:opponentbattlefield}]] name(pay {value} mana) donothing?fizzle])) forever else transforms((,newability[pay[[{value:power:highest:creature:mybattlefield.}]] name(pay {value} mana) donothing?fizzle])) forever
|
||||
auto=if cantargetcard(*|opponentstack) then transforms((,newability[pay[[{value:power:highest:creature:opponentbattlefield}]] name(pay {value} mana) donothing?fizzle])) forever else transforms((,newability[pay[[{value:power:highest:creature:mybattlefield}]] name(pay {value} mana) donothing?fizzle])) forever
|
||||
text=Counter target spell unless its controller pays {X}, where X is the greatest power among creatures you control.
|
||||
mana={1}{U}
|
||||
type=Instant
|
||||
|
||||
@@ -238,7 +238,7 @@ counterspell.txt
|
||||
counterspell2.txt
|
||||
counterspell3.txt
|
||||
counterspell4.txt
|
||||
counter_unless_pay.txt
|
||||
counter_unless_pay_x.txt
|
||||
Covetous_Dragon_ASLONGAS_3.txt
|
||||
Covetous_Dragon_ASLONGAS_4.txt
|
||||
cranial_plating.txt
|
||||
@@ -614,6 +614,8 @@ souls_attendant_i489.txt
|
||||
soul's grace_POWERLIFEGAIN.txt
|
||||
spark_elemental.txt
|
||||
spectral_shield_CANTBETARGETOF.txt
|
||||
spell_rupture.txt
|
||||
spell_rupture_2.txt
|
||||
sphinx_summoner.txt
|
||||
spirit_link.txt
|
||||
spirit_link_i173.txt
|
||||
|
||||
27
projects/mtg/bin/Res/test/counter_unless_pay_x.txt
Normal file
27
projects/mtg/bin/Res/test/counter_unless_pay_x.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
#Testing Counter unless pay {X} mechanic
|
||||
#P1 casts Think Twice with {4} left in his mana pool and P2 counters with Syncopate using X = 3. P1 chooses to pay {3} and Think Twice resolves with {1} left in his mana pool.
|
||||
[INIT]
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
hand:think twice
|
||||
manapool:{5}{U}
|
||||
library:counterspell
|
||||
[PLAYER2]
|
||||
hand:syncopate
|
||||
manapool:{3}{U}
|
||||
[DO]
|
||||
think twice
|
||||
no
|
||||
yes
|
||||
syncopate
|
||||
think twice
|
||||
choice 0
|
||||
[ASSERT]
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
hand:counterspell
|
||||
graveyard:think twice
|
||||
manapool:{1}
|
||||
[PLAYER2]
|
||||
graveyard:syncopate
|
||||
[END]
|
||||
29
projects/mtg/bin/Res/test/spell_rupture.txt
Normal file
29
projects/mtg/bin/Res/test/spell_rupture.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
# Testing spell rupture (expression: "pay[[{value:WParsedInt}]]")
|
||||
# counter opponent spell
|
||||
[INIT]
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
hand:bad moon
|
||||
manapool:{1}{B}{4}
|
||||
inplay:raging goblin
|
||||
[PLAYER2]
|
||||
inplay:grizzly bears
|
||||
hand:spell rupture
|
||||
manapool:{1}{U}
|
||||
[DO]
|
||||
bad moon
|
||||
no
|
||||
yes
|
||||
spell rupture
|
||||
bad moon
|
||||
choice 0
|
||||
[ASSERT]
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
manapool:{2}
|
||||
inplay:raging goblin,bad moon
|
||||
[PLAYER2]
|
||||
graveyard:spell rupture
|
||||
manapool:{0}
|
||||
inplay:grizzly bears
|
||||
[END]
|
||||
25
projects/mtg/bin/Res/test/spell_rupture_2.txt
Normal file
25
projects/mtg/bin/Res/test/spell_rupture_2.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
# Testing spell rupture (expression: "pay[[{value:WParsedInt}]]")
|
||||
# counter own spell
|
||||
[INIT]
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
hand:bad moon,spell rupture
|
||||
manapool:{1}{B}{1}{U}{4}
|
||||
inplay:raging goblin
|
||||
[PLAYER2]
|
||||
inplay:grizzly bears
|
||||
[DO]
|
||||
bad moon
|
||||
yes
|
||||
spell rupture
|
||||
bad moon
|
||||
choice 0
|
||||
[ASSERT]
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
graveyard:spell rupture
|
||||
manapool:{3}
|
||||
inplay:raging goblin,bad moon
|
||||
[PLAYER2]
|
||||
inplay:grizzly bears
|
||||
[END]
|
||||
Reference in New Issue
Block a user