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

@@ -551,6 +551,14 @@ private:
intValue +=1;
}
}
else if (s == "praidcount")
{
intValue = card->controller()->raidcount;
}
else if (s == "oraidcount")
{
intValue = card->controller()->opponent()->raidcount;
}
else if (s == "countallspell")
{
intValue = card->controller()->game->stack->seenThisTurn("*", Constants::CAST_ALL) + card->controller()->opponent()->game->stack->seenThisTurn("*", Constants::CAST_ALL);
@@ -3803,6 +3811,7 @@ public:
spell->source->owner = tokenReciever;
spell->source->isToken = 1;
spell->source->fresh = 1;
spell->source->entersBattlefield = 1;
if(aLivingWeapon)
{
livingWeaponToken(spell->source);

View File

@@ -44,6 +44,7 @@ class CardDescriptor: public MTGCardInstance
CardDescriptor();
void unsecureSetTapped(int i);
void unsecuresetfresh(int k);
void unsecuresetrecent(int j);
void setisMultiColored(int w);
void setNegativeSubtype( string value);
int counterPower;

View File

@@ -283,6 +283,7 @@ public:
int canproduceB;
int canproduceW;
int canproduceC;
int entersBattlefield;
string currentimprintName;
vector<string>imprintedNames;