Skip to content

Commit

Permalink
Merge pull request #540 from vttred/539-initiative-bonus-is-ignored
Browse files Browse the repository at this point in the history
Pass actor RollData to initiative roll
  • Loading branch information
Rughalt authored Sep 28, 2024
2 parents ea4a373 + fc9852c commit 29686f2
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 29686f2

Please sign in to comment.