From 84dd02d0bfbdd10b709dbb91dfc83b12fb91845f Mon Sep 17 00:00:00 2001 From: Jonathan Hager Date: Tue, 12 May 2020 13:48:04 +0200 Subject: [PATCH] bugs nicht behoben --- core/src/com/dungeoncrawler/model/Entity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/dungeoncrawler/model/Entity.java b/core/src/com/dungeoncrawler/model/Entity.java index aee2523..54c1d1a 100644 --- a/core/src/com/dungeoncrawler/model/Entity.java +++ b/core/src/com/dungeoncrawler/model/Entity.java @@ -32,7 +32,7 @@ public abstract class Entity { } public boolean attack(Entity e){ - if(e.getHp() - this.dmg <= 0){ + if(e.getHp() - this.dmg <= 1){ e.setHp(1); return true; }