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:
omegablast2002@yahoo.com
2011-01-29 22:21:18 +00:00
parent 853b8ea5c6
commit 4103a8964f
2 changed files with 2 additions and 1 deletions

View File

@@ -171,6 +171,7 @@ int Damage::resolve()
//return the left over amount after effects have been applied to them.
a = target->dealDamage(damage);
target->damageCount += 1;
target->lifeLostThisTurn += damage;
}
//Send (Damage/Replaced effect) event to listeners