mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-04-30 02:31:41 -04:00
fix for shorthand formula where the item key may also be undefined
This commit is contained in:
parent
a28c0de996
commit
f8877aedf3
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] !== undefined ) {
|
||||
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