Fixed primitives, updated italian lang file, added a new setting to sort decks by creation date (by default they will be sorted by name), added new filters to match cards that don't contain a particular color or that are multicolored, fixed an issue when the transformation with uynt is triggered by instant/sorcery or by card that left the battlefield before the ability ending turn, fixed a rendering overlap on mana symbols in deck editor, fixed some crashes on ManaCost parser (e.g. Filter by mana producer).

This commit is contained in:
Vittorio Alfieri
2021-11-15 21:38:04 +01:00
parent 2eed51dea6
commit 477ffa6a0c
16 changed files with 204 additions and 60 deletions

View File

@@ -46,6 +46,7 @@ public:
CHEATMODEAIDECK,
SHOWBORDER,
BLKBORDER,
SORTINGDECKS,
SHOWTOKENS,
SORTINGSETS,
GDVLARGEIMAGE,

View File

@@ -288,6 +288,29 @@ protected:
int color;
};
/**
Matches a card that does not contain a particular color (inclusively).
*/
class WCFilterNotColor: public WCardFilter
{
public:
WCFilterNotColor(int _c)
{
color = _c;
}
;
WCFilterNotColor(string arg);
bool isMatch(MTGCard * c);
string getCode();
float filterFee()
{
return 0.2f;
}
;
protected:
int color;
};
/**
Matches a card that is a particular color (exclusively).
*/