whoops heres the other half. tested with following arbor elf test card
[card]
name=Arbor Elf
auto={0}:add{1}
auto={0}:add{r}
auto={0}:name(waste) add{waste}
auto={waste}:life:1
auto={3}:damage:1
auto={1}{waste}:moveto(mybattlefield) target(<2>*|mylibrary)
text={T}: Untap target Forest.
mana={0}
type=Creature
subtype=Elf Druid
power=12
toughness=12
[/card]
This commit is contained in:
@@ -79,11 +79,6 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
|
||||
{
|
||||
manaCost->add(Constants::MTG_COLOR_RED, 1);
|
||||
|
||||
}
|
||||
else if (value == "c")
|
||||
{
|
||||
manaCost->add(Constants::MTG_COLOR_LAND, 1);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -295,6 +290,12 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
|
||||
manaCost->addExtraCost(NEW UnattachCost(c));
|
||||
break;
|
||||
}
|
||||
if (value == "waste")
|
||||
{
|
||||
manaCost->add(Constants::MTG_COLOR_WASTE, 1);
|
||||
break;
|
||||
|
||||
}
|
||||
int intvalue = atoi(value.c_str());
|
||||
int colors[2];
|
||||
int values[2];
|
||||
@@ -870,6 +871,7 @@ int ManaCost::pay(ManaCost * _cost)
|
||||
ManaCost * diff = Diff(toPay);
|
||||
for (int i = 0; i < Constants::NB_Colors; i++)
|
||||
{
|
||||
|
||||
cost[i] = diff->getCost(i);
|
||||
}
|
||||
delete diff;
|
||||
|
||||
Reference in New Issue
Block a user