« get me outta code hell

Trailing particles - 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:44:35 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-24 09:44:35 -0300
commit21e83b949e1727e22823f7921253b53c156d53e0 (patch)
treecb178d12ed076b7a7d48e89c90b7113c3ad94228
parenteec9f13fc0442cc4be892f7b61de52009c1de339 (diff)
Trailing particles
-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))
+      }
     }
   }