v0.9.3: fixed ghoul life link giving HP when ghoul can't revive
This commit is contained in:
parent
89095041cc
commit
6af39fcb84
|
@ -246,7 +246,6 @@ public class Ghoul extends Mob {
|
||||||
|
|
||||||
turnsToRevive--;
|
turnsToRevive--;
|
||||||
if (turnsToRevive <= 0){
|
if (turnsToRevive <= 0){
|
||||||
ghoul.HP = Math.round(ghoul.HT/10f);
|
|
||||||
if (Actor.findChar( ghoul.pos ) != null) {
|
if (Actor.findChar( ghoul.pos ) != null) {
|
||||||
ArrayList<Integer> candidates = new ArrayList<>();
|
ArrayList<Integer> candidates = new ArrayList<>();
|
||||||
for (int n : PathFinder.NEIGHBOURS8) {
|
for (int n : PathFinder.NEIGHBOURS8) {
|
||||||
|
@ -265,6 +264,7 @@ public class Ghoul extends Mob {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ghoul.HP = Math.round(ghoul.HT/10f);
|
||||||
Actor.add(ghoul);
|
Actor.add(ghoul);
|
||||||
ghoul.spend(-ghoul.cooldown());
|
ghoul.spend(-ghoul.cooldown());
|
||||||
Dungeon.level.mobs.add(ghoul);
|
Dungeon.level.mobs.add(ghoul);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user