v2.1.4: fixed visual errors when hiding mimics were magically slept
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user