added lifegain and oplifegain variable used the same as lifelost, but stores the value of life gained this turn.
This commit is contained in:
@@ -166,6 +166,10 @@ int Player::gainOrLoseLife(int value)
|
||||
life+=value;
|
||||
if (value<0)
|
||||
lifeLostThisTurn += abs(value);
|
||||
else if (value > 0)
|
||||
{
|
||||
lifeGainedThisTurn += abs(value);
|
||||
}
|
||||
|
||||
//Send life event to listeners
|
||||
WEvent * lifed = NEW WEventLife(this,value);
|
||||
|
||||
Reference in New Issue
Block a user