added CD geared attribute
This commit is contained in:
@@ -24,6 +24,7 @@ CardDescriptor::CardDescriptor()
|
||||
CDopponentDamaged = 0;
|
||||
CDcontrollerDamaged = 0;
|
||||
CDdamager = 0;
|
||||
CDgeared = 0;
|
||||
}
|
||||
|
||||
int CardDescriptor::init()
|
||||
@@ -53,7 +54,7 @@ void CardDescriptor::setisMultiColored(int w)
|
||||
{
|
||||
isMultiColored = w;
|
||||
}
|
||||
|
||||
|
||||
void CardDescriptor::setNegativeSubtype(string value)
|
||||
{
|
||||
int id = MTGAllCards::findType(value);
|
||||
@@ -210,6 +211,11 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card)
|
||||
{
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((CDgeared == -1 && card->equipment > 0) || (CDgeared == 1 && card->equipment < 1))
|
||||
{
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((isMultiColored == -1 && card->isMultiColored) || (isMultiColored == 1 && !card->isMultiColored))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user