Skip to content

Commit

Permalink
fixed naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Dec 20, 2023
1 parent 78bbb26 commit 498d8cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/helpers/anim.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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()
Expand Down

0 comments on commit 498d8cb

Please sign in to comment.