Merge pull request #629 from kevlahnota/master

added M15 cards :)
This commit is contained in:
Anthony Calosa
2015-09-21 13:59:27 +08:00
5 changed files with 2521 additions and 12 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -546,6 +546,16 @@ private:
{
intValue = target->controller()->life;
}
else if (s == "startinglife")
{
intValue = target->controller()->initLife;
}
else if (s == "abundantlife")//current life is morethan or equal to starting life
{
intValue = 0;
if (target->controller()->life >= target->controller()->initLife)
intValue = 1;
}
else if (s == "highestlifetotal")
{
intValue = target->controller()->life <= target->controller()->opponent()->life? target->controller()->opponent()->life:target->controller()->life;

View File

@@ -43,6 +43,7 @@ public:
int extraTurn;
int drawCounter;
int epic;
int initLife;
vector<string> prowledTypes;
vector<MTGCardInstance*>curses;
Player(GameObserver *observer, string deckFile, string deckFileSmall, MTGDeck * deck = NULL);

View File

@@ -404,6 +404,7 @@ void Rules::initGame(GameObserver *g, bool currentPlayerSet)
{
Player * p = g->players[i];
p->life = initState.playerData[i].player->life;
p->initLife = initState.playerData[i].player->life;
p->poisonCount = initState.playerData[i].player->poisonCount;
p->damageCount = initState.playerData[i].player->damageCount;
p->preventable = initState.playerData[i].player->preventable;