mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-04-29 18:21:40 -04:00
Merge pull request #76 from abc-mikey/fix_shorthand_formula_bug
Fix for shorthand formula
This commit is contained in:
commit
f7f8901b8d
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ export class SimpleActor extends Actor {
|
|||
let formula = '';
|
||||
if ( !!shorthand ) {
|
||||
// Handle grouped attributes first.
|
||||
if ( data.items[item][k][gk] ) {
|
||||
if ( data.items[item][k]?.[gk] !== undefined ) {
|
||||
formula = data.items[item][k][gk].replace('@item.', `@items.${item}.`);
|
||||
data.items[item][k][gk] = Roll.replaceFormulaData(formula, data);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue