v0.9.1: fixed downed ghouls not dying when nearby ghouls are corrupted
This commit is contained in:
parent
f240e7863c
commit
9ac85d3d77
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue
Block a user