Erwan
- fix issue 153 (Tokens should go to graveyard) - "token" keyword can now be used in the parser with things such as Creature[-token] for "noncreature token" - Let's stop using "token" as a type
This commit is contained in:
@@ -176,6 +176,13 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
||||
}else{
|
||||
cd->unsecureSetTapped(1);
|
||||
}
|
||||
//Token
|
||||
}else if (attribute.find("token") != string::npos){
|
||||
if (minus){
|
||||
cd->isToken = -1;
|
||||
}else{
|
||||
cd->isToken = 1;
|
||||
}
|
||||
//Power restrictions
|
||||
}else if (attribute.find("power") != string::npos){
|
||||
cd->setPower(comparisonCriterion);
|
||||
|
||||
Reference in New Issue
Block a user