Skip to content

Commit bab3cbb

Browse files
committed
Fixed overwriting rollData
1 parent ed9404e commit bab3cbb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/module/scripts/template-placement/calculate-expiration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CONSTS, MODULE_NAME } from '../../consts';
1+
import { CONSTS } from '../../consts';
22

33
export const calculateExpiration = (rollData = {}, flags = {}) => {
44
const now = game.time.worldTime;

src/module/scripts/template-placement/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)