added basic offering support
usage tap lands to produce mana then sacrifice an offering... example
you have Guttersnipe in play, it has a mana cost of {2}{R}, and you have
Patron of the Akki in hand that costs {4}{R}{R}. You need to produce
{2}{R} mana first before casting Patron of the Akki, then choose
Guttersnipe as an offering.
This commit is contained in:
@@ -193,6 +193,33 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
|
||||
manaCost->addExtraCost(NEW Ninja(tc));
|
||||
break;
|
||||
}
|
||||
case 'k': //kill offering
|
||||
{
|
||||
TargetChooserFactory tcf(g);
|
||||
if (value == "kgoblin")
|
||||
{
|
||||
tc = tcf.createTargetChooser("creature[goblin]|myBattlefield", c);
|
||||
}
|
||||
else if (value == "kfox")
|
||||
{
|
||||
tc = tcf.createTargetChooser("creature[fox]|myBattlefield", c);
|
||||
}
|
||||
else if (value == "kmoonfolk")
|
||||
{
|
||||
tc = tcf.createTargetChooser("creature[moonfolk]|myBattlefield", c);
|
||||
}
|
||||
else if (value == "krat")
|
||||
{
|
||||
tc = tcf.createTargetChooser("creature[rat]|myBattlefield", c);
|
||||
}
|
||||
else if (value == "ksnake")
|
||||
{
|
||||
tc = tcf.createTargetChooser("creature[snake]|myBattlefield", c);
|
||||
}
|
||||
//TODO iterate subtypes of creatures
|
||||
manaCost->addExtraCost(NEW Offering(tc));
|
||||
break;
|
||||
}
|
||||
case 'p' :
|
||||
{
|
||||
SAFE_DELETE(tc);
|
||||
|
||||
Reference in New Issue
Block a user