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:
Anthony Calosa
2016-08-25 02:45:51 +08:00
parent 6c836e0fde
commit 9bcc54c56c
10 changed files with 47 additions and 0 deletions

View File

@@ -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))
{