From 6af39fcb84d543b6d0bef1ccf0f985d1597c335e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 22 Apr 2021 23:11:15 -0400 Subject: [PATCH] v0.9.3: fixed ghoul life link giving HP when ghoul can't revive --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java index 9b6ba6e84..18e4bb9a5 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java @@ -246,7 +246,6 @@ public class Ghoul extends Mob { turnsToRevive--; if (turnsToRevive <= 0){ - ghoul.HP = Math.round(ghoul.HT/10f); if (Actor.findChar( ghoul.pos ) != null) { ArrayList candidates = new ArrayList<>(); for (int n : PathFinder.NEIGHBOURS8) { @@ -265,6 +264,7 @@ public class Ghoul extends Mob { return true; } } + ghoul.HP = Math.round(ghoul.HT/10f); Actor.add(ghoul); ghoul.spend(-ghoul.cooldown()); Dungeon.level.mobs.add(ghoul);