- opponentshroud small bug fix
- added "kicker=" line and "kicker" auto keyword. See Vines of Vastwood (ZEN) for an example. WARNING: kicker= line has to be AFTER "mana=" line
- daily build
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-27 09:53:29 +00:00
parent e464b8616a
commit 9704ee4a24
17 changed files with 126 additions and 27 deletions
+7
View File
@@ -141,7 +141,14 @@ int MTGAllCards::processConfLine(string s, MTGCard *card){
}
}else if(key.compare("toughness")==0){
card->setToughness(atoi(value.c_str()));
}else if(key.compare("kicker")==0){
std::transform( value.begin(), value.end(), value.begin(),::tolower );
if (ManaCost * cost = card->getManaCost()){
cost->kicker = ManaCost::parseManaCost(value);
}
}else{
string error = "MTGDECK Parsing Error:" + s + "\n";
OutputDebugString(error.c_str());
}