v0.9.0a: fixed sleep vfx sticking around after enemy death in some cases

This commit is contained in:
Evan Debenham 2020-10-08 23:23:35 -04:00
parent 188f039dc7
commit d58e189619

View File

@ -36,7 +36,7 @@ public class MobSprite extends CharSprite {
@Override
public void update() {
sleeping = ch != null && ((Mob)ch).state == ((Mob)ch).SLEEPING;
sleeping = ch != null && ch.isAlive() && ((Mob)ch).state == ((Mob)ch).SLEEPING;
super.update();
}