wsaunders1014 / ShowDragDistance

Shows distance you dragged the token, similar to pressing ctrl.
10 stars 13 forks source link

Fixes #102

Open crymic opened 3 years ago

crymic commented 3 years ago

Change Line 37

getTokenSpeed(token){
const baseSpeed = parseFloat(getProperty(token,TokenSpeedAttributes.base));
const normalSpeed = baseSpeed;
const flagDashSpeed = (typeof token.document.getFlag('ShowDragDistance','speed') !='undefined') ? token.document.getFlag('ShowDragDistance','speed').dash:0;
const dashSpeed = (normalSpeed + flagDashSpeed) * game.settings.get('ShowDragDistance','dashX');
return {normal:normalSpeed,dash:dashSpeed}
}

Change Line 271 to

await token.document.update(path.B);