v0.3.5: various logic fixes to accommodate chars that are 0 hp, but not dead.

This commit is contained in:
Evan Debenham
2016-03-25 17:25:10 -04:00
parent 4bc69be53e
commit dd08be8d97
3 changed files with 6 additions and 3 deletions
@@ -274,7 +274,10 @@ public abstract class Char extends Actor {
CharSprite.NEGATIVE,
Integer.toString( dmg ) );
}
if (HP <= 0) {
if (HP < 0) HP = 0;
if (!isAlive()) {
die( src );
}
}