v0.6.1: fixed evil eye sprites idling instead of dieing in rare cases

This commit is contained in:
Evan Debenham 2017-07-04 23:27:09 -04:00
parent a4f2987cdf
commit debd7d6436
2 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,6 @@ public class Eye extends Mob {
beam = null;
beamTarget = -1;
sprite.idle();
}
private static final String BEAM_TARGET = "beamTarget";

View File

@ -104,6 +104,7 @@ public class EyeSprite extends MobSprite {
super.onComplete( anim );
if (anim == zap) {
idle();
if (Actor.findChar(zapPos) != null){
parent.add(new Beam.DeathRay(center(), Actor.findChar(zapPos).sprite.center()));
} else {