« get me outta code hell

csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.js b/index.js
index 39517f5..0dedbb1 100644
--- a/index.js
+++ b/index.js
@@ -787,7 +787,10 @@ class Battle {
     }
 
     addOverlayHPBarFor(this.playerCharacter.targetEnemyCharacter)
-    addOverlayHPBarFor(this.playerCharacter.targetCharacter)
+
+    if (this.currentMenu !== this.targetMenu) {
+      addOverlayHPBarFor(this.playerCharacter.targetCharacter)
+    }
 
     if (this.currentMenu === this.targetMenu) {
       const option = this.currentMenu.getCurrentOption()