- minor fix in Zethfox cards addon (Bad lines error from parser)
- Zethfox's patch for {t(target)} as an extra Cost. Works the same way as sacrifice, check Azami, Lady of Scrolls for an example
- fixed compilation on the PSP (sorry!)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-08-01 03:21:59 +00:00
parent f40af0b1cb
commit ce69e23357
10 changed files with 137 additions and 10 deletions
+15 -1
View File
@@ -65,7 +65,21 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
tc = tcf.createTargetChooser(target,c);
}
manaCost->addExtraCost(NEW SacrificeCost(tc));
}else if (value[0] == 'c'){
//tap cost
}else if (value[0] == 't'){
//tap
OutputDebugString("Tap\n");
TargetChooserFactory tcf;
TargetChooser * tc = NULL;
size_t target_start = value.find("(");
size_t target_end = value.find(")");
if (target_start!=string::npos && target_end!=string::npos){
string target = value.substr(target_start+1, target_end-1 - target_start);
tc = tcf.createTargetChooser(target,c);
}
manaCost->addExtraCost(NEW TapTargetCost(tc));
//tapcost
}else if (value[0] == 'c'){
//Counters
OutputDebugString("Counter\n");
size_t counter_start = value.find("(");