v2.0.0: fixed special mimics sprites staying hidden in some cases
This commit is contained in:
+1
@@ -108,6 +108,7 @@ public class CrystalMimic extends Mimic {
|
|||||||
|
|
||||||
public void stopHiding(){
|
public void stopHiding(){
|
||||||
state = FLEEING;
|
state = FLEEING;
|
||||||
|
if (sprite != null) sprite.idle();
|
||||||
//haste for 2 turns if attacking
|
//haste for 2 turns if attacking
|
||||||
if (alignment == Alignment.NEUTRAL){
|
if (alignment == Alignment.NEUTRAL){
|
||||||
Buff.affect(this, Haste.class, 2f);
|
Buff.affect(this, Haste.class, 2f);
|
||||||
|
|||||||
+1
@@ -66,6 +66,7 @@ public class GoldenMimic extends Mimic {
|
|||||||
|
|
||||||
public void stopHiding(){
|
public void stopHiding(){
|
||||||
state = HUNTING;
|
state = HUNTING;
|
||||||
|
if (sprite != null) sprite.idle();
|
||||||
if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) {
|
if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) {
|
||||||
enemy = Dungeon.hero;
|
enemy = Dungeon.hero;
|
||||||
target = Dungeon.hero.pos;
|
target = Dungeon.hero.pos;
|
||||||
|
|||||||
Reference in New Issue
Block a user