v0.2.4: hero can now only be interrupted while moving.

This commit is contained in:
Evan Debenham
2015-02-21 18:36:43 -05:00
parent ce619510ea
commit 9c5d4facf5
@@ -511,7 +511,7 @@ public class Hero extends Char {
}
public void interrupt() {
if (isAlive() && curAction != null && curAction.dst != pos) {
if (isAlive() && curAction != null && curAction instanceof HeroAction.Move && curAction.dst != pos) {
lastAction = curAction;
}
curAction = null;