add options show tokens

you can display tokens in editor (show tokens and choose 0 manacost) but
you can't add them, useful for tracking missing images...
This commit is contained in:
Anthony Calosa
2017-02-27 21:50:15 +08:00
parent 64547271dc
commit 458731778d
6 changed files with 48 additions and 10 deletions
+1
View File
@@ -46,6 +46,7 @@ public:
CHEATMODEAIDECK,
OSD,
BLKBORDER,
SHOWTOKENS,
CLOSEDHAND,
HANDDIRECTION,
MANADISPLAY,
+2 -2
View File
@@ -233,8 +233,8 @@ public:
;
WCFilterSet(string arg);
bool isMatch(MTGCard *c)
{
return (setid == MTGSets::ALL_SETS || c->setId == setid) && (c->getRarity() != Constants::RARITY_T); //removes viewing of card tokens. tokens will not display on spoiler and should not affect gameplay :)
{//exclude negative id's and tokens
return (setid == MTGSets::ALL_SETS || c->setId == setid) && ((c->getId() > 0) && (c->getRarity() != Constants::RARITY_T));
}
;
string getCode();