« get me outta code hell

Don't target an enemy with Cure if the target ally was killed - csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-08-24 09:19:42 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-24 09:19:42 -0300
commit2e089ce95605095fb416b71f8b77b71576c6eeff (patch)
treea313cd15194626faebc1a2889a00b8418bcf4558
parent3bf884ced1b89d452daacb6b5127cf687e712c34 (diff)
Don't target an enemy with Cure if the target ally was killed
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index b91faf2..d71c52b 100644
--- a/index.js
+++ b/index.js
@@ -906,7 +906,7 @@ class BattleCharacter extends Sprite {
 
     for (const battleCharacter of this.battle.getAllBattleCharacters()) {
       if (battleCharacter.targetCharacter === this) {
-        battleCharacter.determineNewTarget('enemy') // TODO: battleCharacter.targetType
+        battleCharacter.determineNewTarget(battleCharacter.targetType)
       }
     }
   }