Crew Ability Cost & Crewbonus

Revised cards to use {crew(targetchooser)} (modified taptargetcost) so
it can use crewbonus ability from other creatures.
This commit is contained in:
Anthony Calosa
2017-02-01 17:11:55 +08:00
parent c8dc416071
commit ea5e397595
10 changed files with 144 additions and 72 deletions

View File

@@ -131,9 +131,17 @@ int MTGAllCards::processConfLine(string &s, MTGCard *card, CardPrimitive * primi
}
break;
case 'c': //color
if (!primitive) primitive = NEW CardPrimitive();
case 'c': //crew ability
if (key == "crewbonus")
{
if (!primitive) primitive = NEW CardPrimitive();
{
primitive->setCrewAbility(val);
break;
}
}
else if (!primitive) primitive = NEW CardPrimitive();
{//color
string value = val;
std::transform(value.begin(), value.end(), value.begin(), ::tolower);
vector<string> values = split(value, ',');
@@ -143,8 +151,8 @@ int MTGAllCards::processConfLine(string &s, MTGCard *card, CardPrimitive * primi
primitive->setColor(values[values_i], removeAllOthers);
removeAllOthers = 0;
}
break;
}
break;
case 'd'://double faced card /dredge
if (key == "doublefaced")
{