added lifegain and oplifegain variable used the same as lifelost, but stores the value of life gained this turn.

This commit is contained in:
zethfoxster
2016-07-21 21:11:15 -04:00
parent ca395492d5
commit 6aafe9dee0
4 changed files with 16 additions and 1 deletions

View File

@@ -248,6 +248,8 @@ void GameObserver::nextGamePhase()
currentPlayer->prowledTypes.clear();
currentPlayer->lifeLostThisTurn = 0;
currentPlayer->opponent()->lifeLostThisTurn = 0;
currentPlayer->lifeGainedThisTurn = 0;
currentPlayer->opponent()->lifeGainedThisTurn = 0;
currentPlayer->doesntEmpty->remove(currentPlayer->doesntEmpty);
currentPlayer->opponent()->doesntEmpty->remove(currentPlayer->opponent()->doesntEmpty);
nextPlayer();