added drawCounter. Returns the number of cards drawn this turn (excludes pre-game draw).

pdrewcount - player draw count
odrewcount - opponent draw count
This commit is contained in:
anthonycalosa@gmail.com
2013-05-18 15:31:12 +00:00
parent ba5debad05
commit cf74c3480e
5 changed files with 19 additions and 0 deletions

View File

@@ -203,6 +203,7 @@ void GameObserver::nextGamePhase()
{
cleanupPhase();
currentPlayer->damageCount = 0;
currentPlayer->drawCounter = 0;
currentPlayer->opponent()->damageCount = 0; //added to clear odcount
currentPlayer->preventable = 0;
mLayers->actionLayer()->cleanGarbage(); //clean abilities history for this turn;
@@ -227,6 +228,7 @@ void GameObserver::nextGamePhase()
currentPlayer->game->putInGraveyard(currentPlayer->game->hand->cards[0]);
}
mLayers->actionLayer()->Update(0);
currentPlayer->drawCounter = 0;
currentPlayer->lifeLostThisTurn = 0;
currentPlayer->opponent()->lifeLostThisTurn = 0;
currentPlayer->doesntEmpty->remove(currentPlayer->doesntEmpty);