From f8e2f134a56eb100e715a01094e0c59f7407a2e8 Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 16 Aug 2018 16:40:25 -0300 Subject: Don't show targetCharacter HP bar if in target menu --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'index.js') 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() -- cgit 1.3.0-6-gf8a5