attribute -multicolor will return single colored cards
use iscolorless to find colorless... :)
This commit is contained in:
@@ -1243,6 +1243,8 @@ bool CardGui::FilterCard(MTGCard * _card,string filter)
|
||||
{
|
||||
cd.setisMultiColored(-1);
|
||||
cd.SetExclusionColor(0);//not multicolored is monocolored not colorless, use iscolorless attribute
|
||||
cd.SetExclusionColor(6);//restriction... green, red, blue, black or white colored only
|
||||
cd.mode = CardDescriptor::CD_OR;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -503,7 +503,9 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
||||
if (minus)
|
||||
{
|
||||
cd->setisMultiColored(-1);
|
||||
cd->SetExclusionColor(0);//not multicolored is monocolored not colorless, use iscolorless attribute
|
||||
cd->SetExclusionColor(0);//not multicolored is monocolored not colorless, use iscolorless attribute
|
||||
cd->SetExclusionColor(6);//restriction... green, red, blue, black or white colored only
|
||||
cd->mode = CardDescriptor::CD_OR;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user