fixed an oversight and an error...in lifelostthisturn for a player, if the life gain was less then 0 then i want to ADD the abs pos to the amount, not remove it...and damage from creatures is considered lifelost...
This commit is contained in:
@@ -126,7 +126,7 @@ int Player::gainOrLoseLife(int value)
|
||||
//that the triggered event stored in the card for "that much".
|
||||
life+=value;
|
||||
if (value<0)
|
||||
lifeLostThisTurn -= value;
|
||||
lifeLostThisTurn += abs(value);
|
||||
|
||||
//Send life event to listeners
|
||||
WEvent * lifed = NEW WEventLife(this,value);
|
||||
|
||||
Reference in New Issue
Block a user