v0.9.3: fixed ghoul life link giving HP when ghoul can't revive

This commit is contained in:
Evan Debenham 2021-04-22 23:11:15 -04:00
parent 89095041cc
commit 6af39fcb84

View File

@ -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<Integer> 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);