« 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
diff options
context:
space:
mode:
-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)
       }
     }
   }