Skip to content

Commit

Permalink
Pass actor RollData to initiative roll
Browse files Browse the repository at this point in the history
  • Loading branch information
Rughalt committed Sep 28, 2024
1 parent ea4a373 commit fc9852c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/combat/combatant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}) {
Expand Down

0 comments on commit fc9852c

Please sign in to comment.