v0.6.1: fixed evil eye sprites idling instead of dieing in rare cases
This commit is contained in:
parent
a4f2987cdf
commit
debd7d6436
|
@ -198,7 +198,6 @@ public class Eye extends Mob {
|
|||
|
||||
beam = null;
|
||||
beamTarget = -1;
|
||||
sprite.idle();
|
||||
}
|
||||
|
||||
private static final String BEAM_TARGET = "beamTarget";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user