mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-04-30 02:31:41 -04:00
fix for shorthand formula that was grouped but also evalutade to an empty string being interpreted as non-grouped
This commit is contained in:
parent
a4a29865e0
commit
a28c0de996
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ export class SimpleActor extends Actor {
|
||||||
let formula = '';
|
let formula = '';
|
||||||
if ( !!shorthand ) {
|
if ( !!shorthand ) {
|
||||||
// Handle grouped attributes first.
|
// 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}.`);
|
formula = data.items[item][k][gk].replace('@item.', `@items.${item}.`);
|
||||||
data.items[item][k][gk] = Roll.replaceFormulaData(formula, data);
|
data.items[item][k][gk] = Roll.replaceFormulaData(formula, data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue