From 498d8cbfc706ee3f1ef120fd4bce8dd526317459 Mon Sep 17 00:00:00 2001 From: cadowtin Date: Wed, 20 Dec 2023 02:46:01 -0600 Subject: [PATCH] fixed naming issue --- scripts/helpers/anim.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/helpers/anim.js b/scripts/helpers/anim.js index fda177f..e88e936 100644 --- a/scripts/helpers/anim.js +++ b/scripts/helpers/anim.js @@ -322,7 +322,7 @@ export function damageShakeRollDamage(token, targets) { } export function shakeOnDamageToken(token) { - const { x: tok_x, y: tok_y, w: tok_width } = target; + const { x: tok_x, y: tok_y, w: tok_width } = token; const shake_distance = 0.2; const shakes = 7 const seq = new Sequence(); @@ -331,14 +331,14 @@ export function shakeOnDamageToken(token) { const details = { x: tok_x + (tok_width * shake_distance * sign), y: tok_y, ease: "easeInOutSine" }; seq.animation() .waitUntilFinished(10) - .on(target) + .on(token) .moveSpeed(10) .moveTowards(details) } seq.animation() .waitUntilFinished() - .on(target) + .on(token) .moveSpeed(10) .moveTowards({ x: tok_x, y: tok_y, ease: 'easeInOutSine' }) .play()