v0.4.0: fixed a bug that would cause 0 hp targets to never take damage
This commit is contained in:
parent
c1a637694e
commit
ffe9b6d80a
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue
Block a user