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