revised "colorless" attribute in targetchooser
also fix worldly tutor
This commit is contained in:
@@ -32,6 +32,7 @@ CardDescriptor::CardDescriptor()
|
||||
CDcanProduceR = 0;
|
||||
CDcanProduceB = 0;
|
||||
CDcanProduceW = 0;
|
||||
CDnocolor = 0;
|
||||
}
|
||||
|
||||
int CardDescriptor::init()
|
||||
@@ -285,6 +286,17 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card)
|
||||
{
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((CDnocolor == -1 && card->getColor() == 0))
|
||||
{
|
||||
match = NULL;
|
||||
}
|
||||
else if(CDnocolor == 1)
|
||||
{
|
||||
if(!card->has(Constants::DEVOID))
|
||||
if(card->getColor()>0)
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((isMultiColored == -1 && card->isMultiColored) || (isMultiColored == 1 && !card->isMultiColored))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user