« get me outta code hell

Clear queue upon significant stun - csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-08-16 16:05:56 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-16 16:05:56 -0300
commit58ea7507f3c049e236f26d7f50632c096ccfec4b (patch)
tree5695cf7c7aa13e027f4ad4d7055cbdb1c1b06b1d /index.js
parent6f169eaea148db7dd5f043bdd28a107d33ccb709 (diff)
Clear queue upon significant stun
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.js b/index.js
index 9117502..9968e33 100644
--- a/index.js
+++ b/index.js
@@ -146,7 +146,8 @@ class ATBBar {
     }
 
     if (this.battleCharacter.stunIsSignificant) {
-      // Do nothing. Ow!
+      // Ow! Clear queued actions.
+      this.queuedActions.splice(0)
     } else {
       // ATB gauge progressing
       if (!this.battleCharacter.isExecutingChain) {