Skip to content

Commit

Permalink
Resolve injected properties in RollTwice RE selectors (#14199)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Mar 13, 2024
1 parent 8a7385b commit 54668ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/rules/rule-element/roll-twice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class RollTwiceRuleElement extends RuleElementPF2e<RollTwiceRuleSchema> {
const synthetic: RollTwiceSynthetic = { keep: this.keep };
if (this.predicate) synthetic.predicate = this.predicate;

const synthetics = (this.actor.synthetics.rollTwice[this.selector] ??= []);
const selector = this.resolveInjectedProperties(this.selector);
const synthetics = (this.actor.synthetics.rollTwice[selector] ??= []);
synthetics.push(synthetic);
}

Expand Down

0 comments on commit 54668ab

Please sign in to comment.