v0.6.2: fixed more cases where death animations where being interrupted

This commit is contained in:
Evan Debenham 2017-09-12 18:31:08 -04:00
parent f67a2e561f
commit becd3167da

View File

@ -124,7 +124,15 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
listener = this; listener = this;
} }
public void link( Char ch ) { @Override
public void play(Animation anim) {
//Shouldn't interrupt the dieing animation
if (curAnim != die) {
super.play(anim);
}
}
public void link(Char ch ) {
this.ch = ch; this.ch = ch;
ch.sprite = this; ch.sprite = this;
@ -171,9 +179,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
} }
public void idle() { public void idle() {
if (curAnim != die) { play(idle);
play(idle);
}
} }
public void move( int from, int to ) { public void move( int from, int to ) {