From ffe9b6d80a54deacf04cda7459b65af6d423f15f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 26 May 2016 15:46:56 -0400 Subject: [PATCH] v0.4.0: fixed a bug that would cause 0 hp targets to never take damage --- src/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java index b2189d863..f9b7632fb 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java @@ -232,7 +232,7 @@ public abstract class Char extends Actor { public void damage( int dmg, Object src ) { - if (HP <= 0 || dmg < 0) { + if (!isAlive() || dmg < 0) { return; } if (this.buff(Frost.class) != null){