Erwan
-fix for issue 408 (issues with life + targetcontroller + targets on the stack)
This commit is contained in:
@@ -55867,7 +55867,7 @@ subtype=Island Swamp
|
|||||||
name=Undermine
|
name=Undermine
|
||||||
target=*|stack
|
target=*|stack
|
||||||
auto=fizzle
|
auto=fizzle
|
||||||
auto=life:-3 opponent
|
auto=life:-3 targetController
|
||||||
text=Counter target spell. Its controller loses 3 life.
|
text=Counter target spell. Its controller loses 3 life.
|
||||||
mana={U}{U}{B}
|
mana={U}{U}{B}
|
||||||
type=Instant
|
type=Instant
|
||||||
|
|||||||
@@ -476,6 +476,7 @@ twinstrike.txt
|
|||||||
twinstrike2.txt
|
twinstrike2.txt
|
||||||
twinstrike3.txt
|
twinstrike3.txt
|
||||||
twitch.txt
|
twitch.txt
|
||||||
|
undermine_i408.txt
|
||||||
underworld_dreams.txt
|
underworld_dreams.txt
|
||||||
unearth1.txt
|
unearth1.txt
|
||||||
unearth2.txt
|
unearth2.txt
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
#Testing undermine on bad moon
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
hand:Bad Moon
|
||||||
|
manapool:{1}{B}
|
||||||
|
[PLAYER2]
|
||||||
|
hand:Undermine
|
||||||
|
manapool:{U}{U}{B}
|
||||||
|
[DO]
|
||||||
|
Bad Moon
|
||||||
|
no
|
||||||
|
yes
|
||||||
|
Undermine
|
||||||
|
Bad Moon
|
||||||
|
endinterruption
|
||||||
|
[ASSERT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
graveyard:Bad Moon
|
||||||
|
life:17
|
||||||
|
[PLAYER2]
|
||||||
|
graveyard:Undermine
|
||||||
|
[END]
|
||||||
@@ -848,8 +848,8 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
|||||||
d = s.substr(start+1);
|
d = s.substr(start+1);
|
||||||
}
|
}
|
||||||
WParsedInt * damage = NEW WParsedInt(d,spell,card);
|
WParsedInt * damage = NEW WParsedInt(d,spell,card);
|
||||||
Damageable * t = NULL;
|
Targetable * t = NULL;
|
||||||
if (spell) t = spell->getNextDamageableTarget();
|
if (spell) t = spell->getNextTarget();
|
||||||
MTGAbility * a = NEW AADamager(id,card,t, damage, NULL, 0, who);
|
MTGAbility * a = NEW AADamager(id,card,t, damage, NULL, 0, who);
|
||||||
a->oneShot = 1;
|
a->oneShot = 1;
|
||||||
return a;
|
return a;
|
||||||
@@ -922,9 +922,9 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
|||||||
life_s = s.substr(start+1);
|
life_s = s.substr(start+1);
|
||||||
}
|
}
|
||||||
WParsedInt * life = NEW WParsedInt(life_s,spell,card);
|
WParsedInt * life = NEW WParsedInt(life_s,spell,card);
|
||||||
Damageable * d = NULL;
|
Targetable * t = NULL;
|
||||||
if (spell) d = spell->getNextDamageableTarget();
|
if (spell) t = spell->getNextTarget();
|
||||||
MTGAbility * a = NEW AALifer(id,card,d,life,NULL,0,who);
|
MTGAbility * a = NEW AALifer(id,card,t,life,NULL,0,who);
|
||||||
a->oneShot = 1;
|
a->oneShot = 1;
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user