v2.1.4: fixed visual errors when hiding mimics were magically slept

This commit is contained in:
Evan Debenham
2023-07-06 12:13:06 -04:00
parent 19d24f8660
commit 769d6e2978

View File

@@ -125,9 +125,12 @@ public class Mimic extends Mob {
protected boolean act() {
if (alignment == Alignment.NEUTRAL && state != PASSIVE){
alignment = Alignment.ENEMY;
GLog.w(Messages.get(this, "reveal") );
CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10);
Sample.INSTANCE.play(Assets.Sounds.MIMIC);
if (sprite != null) sprite.idle();
if (Dungeon.level.heroFOV[pos]) {
GLog.w(Messages.get(this, "reveal") );
CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10);
Sample.INSTANCE.play(Assets.Sounds.MIMIC);
}
}
return super.act();
}