fix for shorthand formula that was grouped but also evalutade to an empty string being interpreted as non-grouped

This commit is contained in:
Michael Green 2025-03-16 23:27:18 +01:00
parent a4a29865e0
commit a28c0de996

View file

@ -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);
}