Fixed issue with blinking creature that has X in cost
This commit is contained in:
32
projects/mtg/bin/Res/test/Blink_and_X_counters.txt
Normal file
32
projects/mtg/bin/Res/test/Blink_and_X_counters.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
# Testing: when creature returns from blink, X is equal to 0
|
||||
|
||||
#Ivy Elemental
|
||||
#{X}{G}
|
||||
#Ivy Elemental enters the battlefield with X +1/+1 counters on it.
|
||||
|
||||
#Flicker
|
||||
#{1}{W}
|
||||
#Exile target nontoken permanent, then return it to the battlefield under its owner's control.
|
||||
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Flicker,Ivy Elemental
|
||||
inplay:plains,mountain
|
||||
manapool:{3}{G}
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Ivy Elemental
|
||||
# add mana to pool
|
||||
plains
|
||||
mountain
|
||||
Flicker
|
||||
Ivy Elemental
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
graveyard:Flicker,Ivy Elemental
|
||||
inplay:plains,mountain
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
[END]
|
||||
@@ -184,6 +184,7 @@ blessed_wind.txt
|
||||
blessed_wine.txt
|
||||
blinking_spirit.txt
|
||||
blinkmoth_nexus.txt
|
||||
Blink_and_X_counters.txt
|
||||
bloated_toad1.txt
|
||||
bloated_toad2.txt
|
||||
bloodbond_march.txt
|
||||
|
||||
@@ -5123,6 +5123,7 @@ void ABlink::resolveBlink()
|
||||
}
|
||||
spell->source->power = spell->source->origpower;
|
||||
spell->source->toughness = spell->source->origtoughness;
|
||||
spell->source->X = 0;
|
||||
spell->resolve();
|
||||
if(stored)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user