File tree Expand file tree Collapse file tree
src/module/scripts/template-placement Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { CONSTS , MODULE_NAME } from '../../consts' ;
1+ import { CONSTS } from '../../consts' ;
22
33export const calculateExpiration = ( rollData = { } , flags = { } ) => {
44 const now = game . time . worldTime ;
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ async function promptMeasureTemplate() {
8888
8989 const type = this . shared . action . measureTemplate . type ;
9090
91- const actor = this . item ?. actor ;
9291 const token = getToken ( this . item ) || { } ;
9392 const icon = this . shared . action . img === 'systems/pf1/icons/misc/magic-swirl.png' ? this . item . img : this . shared . action . img ;
9493 let { maxRange, minRange } = this . shared . action ;
@@ -98,7 +97,7 @@ async function promptMeasureTemplate() {
9897 ? _getHeight ( this . shared , flags [ CONSTS . flags . rect . height ] )
9998 : distance ;
10099
101- const expirationTime = calculateExpiration ( this . getRollData ( ) , flags ) ;
100+ const expirationTime = calculateExpiration ( this . shared . rollData , flags ) ;
102101
103102 const templateData = {
104103 _id : foundry . utils . randomID ( 16 ) ,
You can’t perform that action at this time.
0 commit comments