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() {
|
public void update() {
|
||||||
super.update();
|
super.update();
|
||||||
|
|
||||||
if (Dungeon.hero.isAlive()) {
|
if (!Dungeon.hero.isAlive()) {
|
||||||
|
|
||||||
if (!Dungeon.hero.ready) {
|
|
||||||
enable( false );
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
visible( false );
|
visible( false );
|
||||||
enable( false );
|
enable( false );
|
||||||
}
|
}
|
||||||
|
@ -149,9 +143,10 @@ public class AttackIndicator extends Tag {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
if (enabled) {
|
if (Dungeon.hero.curAction != null)
|
||||||
Dungeon.hero.handle( lastTarget.pos );
|
Dungeon.hero.interrupt();
|
||||||
}
|
else
|
||||||
|
Dungeon.hero.handle( lastTarget.pos );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void target( Char target ) {
|
public static void target( Char target ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user