-fix issue 300 (silver seraph)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-01-17 10:34:36 +00:00
parent 9d4e9ab5de
commit fe6ec307d9
4 changed files with 35 additions and 4 deletions
+2 -3
View File
@@ -174,7 +174,6 @@ MTGAbility * AbilityFactory::getCoreAbility(MTGAbility * a){
return a;
}
//Parses a string and returns the corresponding MTGAbility object
// Returns NULL if parsing failed
//Beware, Spell CAN be null when the function is called by the AI trying to analyze the effects of a given card
@@ -346,10 +345,10 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
}
if (end != string::npos){
int lordIncludeSelf = 1;
size_t other = s1.find("other");
size_t other = s1.find(" other");
if ( other != string::npos){
lordIncludeSelf = 0;
s1.replace(other, 5,"");
s1.replace(other, 6,"");
}
string lordTargetsString = s.substr(found+header,end-found-header);
TargetChooserFactory tcf;