v0.4.0: fixed a bug that would cause 0 hp targets to never take damage

This commit is contained in:
Evan Debenham 2016-05-26 15:46:56 -04:00
parent c1a637694e
commit ffe9b6d80a

View File

@ -232,7 +232,7 @@ public abstract class Char extends Actor {
public void damage( int dmg, Object src ) { public void damage( int dmg, Object src ) {
if (HP <= 0 || dmg < 0) { if (!isAlive() || dmg < 0) {
return; return;
} }
if (this.buff(Frost.class) != null){ if (this.buff(Frost.class) != null){