Added 5 tests to safe
aslongas + < aslongas + > aslongas + trigger for future code changes.
This commit is contained in:
@@ -10420,15 +10420,13 @@ toughness=2
|
|||||||
[card]
|
[card]
|
||||||
name=Covetous Dragon
|
name=Covetous Dragon
|
||||||
abilities=flying
|
abilities=flying
|
||||||
auto=aslongas(artifact|myBattlefield) moveTo(mygraveyard) <1
|
auto=aslongas(artifact|myBattlefield) -99/-99 <1
|
||||||
auto=@movedTo(artifact|graveyard,exile,library,hand) from(myBattlefield):aslongas(artifact|myBattlefield) moveTo(mygraveyard) <1
|
|
||||||
text=Flying -- When you control no artifacts, sacrifice Covetous Dragon.
|
text=Flying -- When you control no artifacts, sacrifice Covetous Dragon.
|
||||||
mana={4}{R}
|
mana={4}{R}
|
||||||
type=Creature
|
type=Creature
|
||||||
subtype=Dragon
|
subtype=Dragon
|
||||||
power=6
|
power=6
|
||||||
toughness=5
|
toughness=5
|
||||||
# P/T modified to make auto rule possible
|
|
||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
name=Crabapple Cohort
|
name=Crabapple Cohort
|
||||||
@@ -15288,6 +15286,7 @@ toughness=1
|
|||||||
[card]
|
[card]
|
||||||
name=Elvish Berserker
|
name=Elvish Berserker
|
||||||
auto=rampage(1/1,0)
|
auto=rampage(1/1,0)
|
||||||
|
auto=aslongas(artifact|myBattlefield) -99/-99 <1
|
||||||
text=Whenever Elvish Berserker becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
|
text=Whenever Elvish Berserker becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
|
||||||
mana={G}
|
mana={G}
|
||||||
type=Creature
|
type=Creature
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
#test originally coded to prove aslongas was broken, it is corrected now. this test now shows that he remains a 3/3 and survives.
|
||||||
|
|
||||||
|
#Test to confirm that "aslongas" in combination with ">" works.
|
||||||
|
#You control 4 arifacts and Auriok Sunchaser. It is 3/3 due to its Metalcraft bonus (+2/+2).
|
||||||
|
#1 of the 4 artifacts gets destroyed by Shatter. Auriok Sunchaser should stay 3/3 because there are still enough artifacts on your side.
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Auriok Sunchaser,Bottle Gnomes,Mox Pearl,Bonesplitter,Mox Emerald
|
||||||
|
hand:Shatter,Shock
|
||||||
|
manapool:{1}{R}{R}
|
||||||
|
[PLAYER2]
|
||||||
|
[DO]
|
||||||
|
Shatter
|
||||||
|
Mox Pearl
|
||||||
|
Shock
|
||||||
|
Auriok Sunchaser
|
||||||
|
[ASSERT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Bottle Gnomes,Bonesplitter,Mox Emerald,Auriok Sunchaser
|
||||||
|
graveyard:Shatter,Mox Pearl,Shock
|
||||||
|
manapool:{0}
|
||||||
|
life:20
|
||||||
|
[PLAYER2]
|
||||||
|
[END]
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
#Test to confirm that "aslongas" in combination with ">" works.
|
||||||
|
#You control 3 arifacts and Auriok Sunchaser. It is 3/3 due to its Metalcraft bonus (+2/+2).
|
||||||
|
#1 of the 3 artifacts gets destroyed by Shatter. Auriok Sunchaser should lose the Metalcraft bonus because there are not enough artifacts on your side anymore.
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Auriok Sunchaser,Bottle Gnomes,Mox Pearl,Bonesplitter
|
||||||
|
hand:Shatter,Shock
|
||||||
|
manapool:{1}{R}{R}
|
||||||
|
[PLAYER2]
|
||||||
|
[DO]
|
||||||
|
Shatter
|
||||||
|
Mox Pearl
|
||||||
|
Shock
|
||||||
|
Auriok Sunchaser
|
||||||
|
[ASSERT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Bottle Gnomes,Bonesplitter
|
||||||
|
graveyard:Shatter,Mox Pearl,Shock,Auriok Sunchaser
|
||||||
|
manapool:{0}
|
||||||
|
life:20
|
||||||
|
[PLAYER2]
|
||||||
|
[END]
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
#Test to confirm that "aslongas" in combination with "<" works.
|
||||||
|
#You control 3 arifacts and Covetous Dragon. 1 of the 3 artifacts gets destroyed by Shatter.
|
||||||
|
#Covetous Dragon should stay on the battlefield.
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Covetous Dragon,Bottle Gnomes,Mox Pearl,Bonesplitter
|
||||||
|
hand:Shatter
|
||||||
|
manapool:{1}{R}
|
||||||
|
[PLAYER2]
|
||||||
|
[DO]
|
||||||
|
Shatter
|
||||||
|
Mox Pearl
|
||||||
|
[ASSERT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Bottle Gnomes,Bonesplitter,Covetous Dragon
|
||||||
|
graveyard:Shatter,Mox Pearl
|
||||||
|
manapool:{0}
|
||||||
|
life:20
|
||||||
|
[PLAYER2]
|
||||||
|
[END]
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
#Test to confirm that "aslongas" in combination with "<" works.
|
||||||
|
#You control 1 arifact and Covetous Dragon. The artifact gets destroyed by Shatter.
|
||||||
|
#Covetous Dragon should go to the graveyard.
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Covetous Dragon,Mox Pearl
|
||||||
|
hand:Shatter
|
||||||
|
manapool:{1}{R}
|
||||||
|
[PLAYER2]
|
||||||
|
[DO]
|
||||||
|
Shatter
|
||||||
|
Mox Pearl
|
||||||
|
[ASSERT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
graveyard:Shatter,Mox Pearl,Covetous Dragon
|
||||||
|
manapool:{0}
|
||||||
|
life:20
|
||||||
|
[PLAYER2]
|
||||||
|
[END]
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
#Testing Glimmervoid
|
||||||
|
[INIT]
|
||||||
|
SECONDMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Swamp,Glimmervoid,Bottle Gnomes
|
||||||
|
[PLAYER2]
|
||||||
|
life:20
|
||||||
|
[DO]
|
||||||
|
Bottle Gnomes
|
||||||
|
next
|
||||||
|
next
|
||||||
|
[ASSERT]
|
||||||
|
CLEANUP
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Swamp
|
||||||
|
graveyard:Glimmervoid,Bottle Gnomes
|
||||||
|
life:23
|
||||||
|
[PLAYER2]
|
||||||
|
life:20
|
||||||
|
[END]
|
||||||
@@ -111,7 +111,8 @@ ascendant_evincar3.txt
|
|||||||
ashen_firebeast.txt
|
ashen_firebeast.txt
|
||||||
ashen_firebeast2.txt
|
ashen_firebeast2.txt
|
||||||
aura_mutation.txt
|
aura_mutation.txt
|
||||||
auriok_sunchaser_aslongas_bug.txt
|
Auriok_Sunchaser_ASLONGAS_1.txt
|
||||||
|
Auriok_Sunchaser_ASLONGAS_2.txt
|
||||||
avarice_totem.txt
|
avarice_totem.txt
|
||||||
aven_riftwatcher.txt
|
aven_riftwatcher.txt
|
||||||
aven_riftwatcher2.txt
|
aven_riftwatcher2.txt
|
||||||
@@ -182,6 +183,8 @@ counterspell.txt
|
|||||||
counterspell2.txt
|
counterspell2.txt
|
||||||
counterspell3.txt
|
counterspell3.txt
|
||||||
counterspell4.txt
|
counterspell4.txt
|
||||||
|
Covetous_Dragon_ASLONGAS_3.txt
|
||||||
|
Covetous_Dragon_ASLONGAS_4.txt
|
||||||
cranial_plating.txt
|
cranial_plating.txt
|
||||||
creature_bond.txt
|
creature_bond.txt
|
||||||
curiosity1_i217.txt
|
curiosity1_i217.txt
|
||||||
@@ -264,7 +267,7 @@ ghost_warden.txt
|
|||||||
glen_elendra_archmage_i222.txt
|
glen_elendra_archmage_i222.txt
|
||||||
giant_growth.txt
|
giant_growth.txt
|
||||||
giant_growth2.txt
|
giant_growth2.txt
|
||||||
Glimmervoid.txt
|
Glimmervoid_ASLONGAS&TRIGGER.txt
|
||||||
glimpse_the_unthinkable.txt
|
glimpse_the_unthinkable.txt
|
||||||
gnarled_effigy.txt
|
gnarled_effigy.txt
|
||||||
gnat_alley_creeper1.txt
|
gnat_alley_creeper1.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user