v0.9.0: fixed crystal mimics escaping when they are still visible
This commit is contained in:
parent
07a64ba2d3
commit
77249e84ea
|
@ -188,11 +188,13 @@ public class CrystalMimic extends Mimic {
|
||||||
if (enemySeen) {
|
if (enemySeen) {
|
||||||
sprite.showStatus(CharSprite.NEGATIVE, Messages.get(Mob.class, "rage"));
|
sprite.showStatus(CharSprite.NEGATIVE, Messages.get(Mob.class, "rage"));
|
||||||
state = HUNTING;
|
state = HUNTING;
|
||||||
} else {
|
} else if (!Dungeon.level.heroFOV[pos] && Dungeon.level.distance(Dungeon.hero.pos, pos) >= 6) {
|
||||||
GLog.n( Messages.get(CrystalMimic.class, "escaped"));
|
GLog.n( Messages.get(CrystalMimic.class, "escaped"));
|
||||||
if (Dungeon.level.heroFOV[pos]) CellEmitter.get(pos).burst(Speck.factory(Speck.WOOL), 6);
|
if (Dungeon.level.heroFOV[pos]) CellEmitter.get(pos).burst(Speck.factory(Speck.WOOL), 6);
|
||||||
destroy();
|
destroy();
|
||||||
sprite.killAndErase();
|
sprite.killAndErase();
|
||||||
|
} else {
|
||||||
|
state = WANDERING;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
super.nowhereToRun();
|
super.nowhereToRun();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user