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:
Vittorio Alfieri
2021-01-15 00:43:13 +01:00
parent 91d19e2852
commit 77c48dc1d5
6 changed files with 100 additions and 78 deletions

View File

@@ -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)
{