v0.2.3: fixed bugs/improved attack indicator
This commit is contained in:
parent
8c459a434b
commit
656ca5612d
|
@ -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,10 +143,11 @@ public class AttackIndicator extends Tag {
|
|||
|
||||
@Override
|
||||
protected void onClick() {
|
||||
if (enabled) {
|
||||
if (Dungeon.hero.curAction != null)
|
||||
Dungeon.hero.interrupt();
|
||||
else
|
||||
Dungeon.hero.handle( lastTarget.pos );
|
||||
}
|
||||
}
|
||||
|
||||
public static void target( Char target ) {
|
||||
lastTarget = (Mob)target;
|
||||
|
|
Loading…
Reference in New Issue
Block a user