Skip to content

Commit 8978a87

Browse files
committed
Bug fix
1 parent bf92574 commit 8978a87

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

iwsy/iwsy.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,14 @@ const IWSY = (playerElement, scriptObject) => {
508508
// Animate blocks
509509
const animate = step => {
510510
let continueFlag = true;
511-
for (const vfx of step.block.vfx) {
512-
continueFlag = step.continue === `yes`;
513-
startVFX(step, vfx);
511+
for (const block of script.blocks) {
512+
if (block.defaults.name === step.block) {
513+
for (const vfx of block.vfx) {
514+
continueFlag = step.continue === `yes`;
515+
startVFX(step, vfx);
516+
}
517+
break;
518+
}
514519
}
515520
if (script.runMode === `manual`) {
516521
enterManualMode(step);

0 commit comments

Comments
 (0)