Fixed/refactored primitives after the parser has been improved in order to allow the usage of "^" instead of "," char in a lot of abilities (e.g. to use the token, flip, rampage, phasealter, becomes keywords inside transforms or to target a card with a "," char in its name).
This commit is contained in:
@@ -391,6 +391,7 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
||||
}
|
||||
|
||||
//Advanced cards caracteristics ?
|
||||
replace(typeName.begin(), typeName.end(), '^', ','); // To allow the usage of ^ instead of , char (e.g. target card with ',' char in name)
|
||||
found = typeName.find("[");
|
||||
if (found != string::npos)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user