From 655775d164b8636ece826fb4b2c40bfe01d10c6d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 26 Jun 2024 15:39:18 -0400 Subject: [PATCH] v2.5.0: adjusted attack indicator to hopefully fix responsiveness errors --- .../shatteredpixeldungeon/ui/AttackIndicator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/AttackIndicator.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/AttackIndicator.java index 7d8d9d8dc..13b8c2d01 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/AttackIndicator.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/AttackIndicator.java @@ -122,7 +122,7 @@ public class AttackIndicator extends Tag { } } - if (!candidates.contains( lastTarget )) { + if (lastTarget == null || !candidates.contains( lastTarget )) { if (candidates.isEmpty()) { lastTarget = null; } else { @@ -132,8 +132,8 @@ public class AttackIndicator extends Tag { flash(); } } else { + active = true; if (!bg.visible) { - active = true; flash(); } }