diff --git a/scripts/helpers/animation/turnTokenOnAttack.js b/scripts/helpers/animation/turnTokenOnAttack.js index 6ee99d8..ce19aa0 100644 --- a/scripts/helpers/animation/turnTokenOnAttack.js +++ b/scripts/helpers/animation/turnTokenOnAttack.js @@ -11,8 +11,8 @@ export function turnTokenOnAttack(token, target) { const angle = token.angle; const rotationOffset = token.document.flags?.["pf2e-rpg-numbers"]?.rotationOffset ?? 0; const tokWxH = (token.document.height + token.document.width)/2; - const baseTurnTime = getSetting("") - const scaleTurnTime = getSetting(""); + const baseTurnTime = getSetting("rotate-on-attack.duration") + const scaleTurnTime = getSetting("rotate-on-attack.scale-on-size"); const turnTime = scaleTurnTime ? baseTurnTime * tokWxH : baseTurnTime; new Sequence()