Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 7, 2023
1 parent e65250c commit 586d1dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
]
},
"scripts": [
"esmodules": [
"scripts/module.js"
],
"languages": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 586d1dd

Please sign in to comment.