« 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.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.js b/index.js
index af58a89..aa1a4b2 100644
--- a/index.js
+++ b/index.js
@@ -1420,6 +1420,10 @@ class MagicProjectile extends Sprite {
       }
 
       this.discarded = true
+    } else {
+      for (let i = 0; i < this.action.size; i++) {
+        this.battle.miscSprites.push(new MagicSplashProjectile(this, this.action))
+      }
     }
   }