added ORI cards :)

revised the keyword:
myname -> returns the number for each instance of the card name you
control.
allmyname -> returns the number for each instance of the card name in
play.
This commit is contained in:
Anthony Calosa
2015-09-22 06:53:55 +08:00
parent 0abd368ccc
commit 227a262e01
2 changed files with 1151 additions and 35 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -715,7 +715,22 @@ private:
}
intValue = mountain + island + forest + swamp + plains;
}
else if (s == "myname")//Plague Rats and others
else if (s == "myname")//Name of the card you control
{
intValue = 0;
for (int i = 0; i < 2; i++)
{
Player * p = card->getObserver()->players[i];
for (int j = p->game->battlefield->nb_cards - 1; j >= 0; --j)
{
if (p->game->battlefield->cards[j]->name == card->name && p == card->controller())
{
intValue += 1;
}
}
}
}
else if (s == "allmyname")//Plague Rats and others
{
intValue = 0;
for (int i = 0; i < 2; i++)