diff --git a/module.json b/module.json index 4d30724..86dcda1 100644 --- a/module.json +++ b/module.json @@ -25,7 +25,7 @@ } ] }, - "scripts": [ + "esmodules": [ "scripts/module.js" ], "languages": [ diff --git a/scripts/module.js b/scripts/module.js index f78a4f8..474130d 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -136,7 +136,7 @@ function generateDamageScroll(dmg_list, targets) { */ function getTargetList(msg) { if (msg.flags?.["pf2e-target-damage"]?.targets) { - return msg.flags.pf2e - target - damage.targets.map(t => t.id); + return msg.flags['pf2e-target-damage'].targets.map(t => t.id); } else { return [(await fromUuid(msg.flags.pf2e.target.token)).id]; }