Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Oct 6, 2023
1 parent 2946fc0 commit 83ab4b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ export function onPreUpdateToken(tokenDocument, updates, options, userId) {
} else {
options.animation.duration = 1000 / 6;
}
} else if (!game.aboutFace.tokenRotation && (Number.isNumeric(x) || Number.isNumeric(y)) && !canvas.scene.getFlag(MODULE_ID, "lockArrowRotation")) {
} else if (
!game.aboutFace.tokenRotation &&
(Number.isNumeric(x) || Number.isNumeric(y)) &&
!canvas.scene.getFlag(MODULE_ID, "lockArrowRotation")
) {
//get previous and new positions
const prevPos = { x: tokenX, y: tokenY };
const newPos = { x: x ?? tokenX, y: y ?? tokenY };
Expand Down

0 comments on commit 83ab4b4

Please sign in to comment.