From 656ca5612d297769a9d6f6ee78b4e4a850102619 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 4 Dec 2014 00:46:54 -0500 Subject: [PATCH] v0.2.3: fixed bugs/improved attack indicator --- .../shatteredpixeldungeon/ui/AttackIndicator.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/ui/AttackIndicator.java b/src/com/shatteredpixel/shatteredpixeldungeon/ui/AttackIndicator.java index 623380fb7..e29e277df 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/ui/AttackIndicator.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/ui/AttackIndicator.java @@ -69,13 +69,7 @@ public class AttackIndicator extends Tag { public void update() { super.update(); - if (Dungeon.hero.isAlive()) { - - if (!Dungeon.hero.ready) { - enable( false ); - } - - } else { + if (!Dungeon.hero.isAlive()) { visible( false ); enable( false ); } @@ -149,9 +143,10 @@ public class AttackIndicator extends Tag { @Override protected void onClick() { - if (enabled) { - Dungeon.hero.handle( lastTarget.pos ); - } + if (Dungeon.hero.curAction != null) + Dungeon.hero.interrupt(); + else + Dungeon.hero.handle( lastTarget.pos ); } public static void target( Char target ) {