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,10 +125,13 @@ 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;
if (sprite != null) sprite.idle();
if (Dungeon.level.heroFOV[pos]) {
GLog.w(Messages.get(this, "reveal") ); GLog.w(Messages.get(this, "reveal") );
CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10); CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10);
Sample.INSTANCE.play(Assets.Sounds.MIMIC); Sample.INSTANCE.play(Assets.Sounds.MIMIC);
} }
}
return super.act(); return super.act();
} }