Skip to content

Commit

Permalink
Fix formula on some spells
Browse files Browse the repository at this point in the history
  • Loading branch information
Socolin committed Mar 18, 2024
1 parent 9568168 commit efa214b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/spell/spell-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ export class SpellUtil {
if (computable.formula) {
value = this.computeFormula(computable.formula, context);
} else if (computable.rollFormula) {
return new RollableSpellValue(computable.rollFormula, undefined, computable.unit);
let rollFormula = this.computeFormula(computable.rollFormula, context);
return new RollableSpellValue(rollFormula, undefined, computable.unit);
} else if (computable.value) {
value = computable.value;
} else if (computable.text) {
Expand Down

0 comments on commit efa214b

Please sign in to comment.