v2.0.0: fixed special mimics sprites staying hidden in some cases

This commit is contained in:
Evan Debenham
2023-01-16 17:25:02 -05:00
parent f7b94c5a68
commit bb2d489073
2 changed files with 2 additions and 0 deletions

View File

@@ -108,6 +108,7 @@ public class CrystalMimic extends Mimic {
public void stopHiding(){
state = FLEEING;
if (sprite != null) sprite.idle();
//haste for 2 turns if attacking
if (alignment == Alignment.NEUTRAL){
Buff.affect(this, Haste.class, 2f);

View File

@@ -66,6 +66,7 @@ public class GoldenMimic extends Mimic {
public void stopHiding(){
state = HUNTING;
if (sprite != null) sprite.idle();
if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) {
enemy = Dungeon.hero;
target = Dungeon.hero.pos;