From 9c5d4facf513643ec60c025f1bb30d084fa47be4 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 21 Feb 2015 18:36:43 -0500 Subject: [PATCH] v0.2.4: hero can now only be interrupted while moving. --- .../shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index a3543a8c7..3b7c67469 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -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;