add "recent" & "raidcount"
the recent attribute is to parse new cards entered play, then turns itself to 0 if some stuff happened since it's already in play...
This commit is contained in:
@@ -57,6 +57,11 @@ void CardDescriptor::unsecuresetfresh(int k)
|
||||
fresh = k;
|
||||
}
|
||||
|
||||
void CardDescriptor::unsecuresetrecent(int j)
|
||||
{
|
||||
entersBattlefield = j;
|
||||
}
|
||||
|
||||
void CardDescriptor::setisMultiColored(int w)
|
||||
{
|
||||
isMultiColored = w;
|
||||
@@ -218,6 +223,11 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card)
|
||||
{
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((entersBattlefield == -1 && card->entersBattlefield) || (entersBattlefield == 1 && !card->entersBattlefield))
|
||||
{
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((CDgeared == -1 && card->equipment > 0) || (CDgeared == 1 && card->equipment < 1))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user