v0.9.1: fixed downed ghouls not dying when nearby ghouls are corrupted

This commit is contained in:
Evan Debenham 2020-11-29 20:43:57 -05:00
parent f240e7863c
commit 9ac85d3d77

View File

@ -223,6 +223,11 @@ public class Ghoul extends Mob {
public boolean act() {
ghoul.sprite.visible = Dungeon.level.heroFOV[ghoul.pos];
if (target.alignment != ghoul.alignment){
detach();
return true;
}
if (target.fieldOfView == null){
target.fieldOfView = new boolean[Dungeon.level.length()];
Dungeon.level.updateFieldOfView( target, target.fieldOfView );