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