From fc9852cfc2d2a0923c3869829b6cf803385ca5c8 Mon Sep 17 00:00:00 2001 From: Antoni Sobkowicz Date: Sat, 28 Sep 2024 05:44:50 +0000 Subject: [PATCH] Pass actor RollData to initiative roll --- src/module/combat/combatant.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module/combat/combatant.ts b/src/module/combat/combatant.ts index 0a1def95..ee34e831 100644 --- a/src/module/combat/combatant.ts +++ b/src/module/combat/combatant.ts @@ -32,8 +32,8 @@ export class OSECombatant extends Combatant { let term = formula || CONFIG.Combat.initiative.formula; if (this.isSlow) term = `${OSECombatant.INITIATIVE_VALUE_SLOWED}`; if (this.isDefeated) term = `${OSECombatant.INITIATIVE_VALUE_DEFEATED}`; - - return new Roll(term); + const rollData = this.actor?.getRollData() || {}; + return new Roll(term, rollData); } async getData(options = {}) {