Small fix in match_and ( [-color1; -color2] was handled incorrectly )

This commit is contained in:
Dmitry Panin
2013-11-22 01:03:07 +04:00
parent ffbb228d2d
commit 052e3abdb8
3 changed files with 28 additions and 1 deletions

View File

@@ -160,7 +160,8 @@ MTGCardInstance * CardDescriptor::match_and(MTGCardInstance * card)
if (mColorExclusions)
{
if ((mColorExclusions & card->colors) == mColorExclusions)
// if any of forbidden colors intersect with card colors
if ((mColorExclusions & card->colors) != 0)
match = NULL;
}