From 9cf6e621abeab60159d06ed1e71090c71230f046 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sat, 15 Aug 2015 14:51:26 +0800 Subject: [PATCH] Removes viewing of tokens (rarity with T) on Spoiler --- projects/mtg/include/WFilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/include/WFilter.h b/projects/mtg/include/WFilter.h index 16d30c59d..2ea305be5 100644 --- a/projects/mtg/include/WFilter.h +++ b/projects/mtg/include/WFilter.h @@ -234,7 +234,7 @@ public: WCFilterSet(string arg); bool isMatch(MTGCard *c) { - return (setid == MTGSets::ALL_SETS || c->setId == setid); + return (setid == MTGSets::ALL_SETS || c->setId == setid) && (c->getRarity() != 'T'); //removes viewing of card tokens. tokens will not display on spoiler and should not affect gameplay :) } ; string getCode();