Skip to content

Commit

Permalink
Merge pull request #269 from IsendurHun/master
Browse files Browse the repository at this point in the history
fix template not created exception
  • Loading branch information
Rughalt authored Jul 2, 2024
2 parents 60e41da + f5bedbe commit 424fdf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokenmagic/module/autoTemplate/dnd5e.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ function fromCategories(categories = {}, item, template) {

// some items/spells have multiple damage types
// this loop looks over all the types until it finds one with a valid fx preset
for (const [_, dmgType] of item.data.data.damage.parts) {
for (const [_, dmgType] of item.system.damage.parts) {
dmgSettings = categories[dmgType] || {};
config = dmgSettings[template.data.t];
config = dmgSettings[template.document.t];

if (config && config.preset !== emptyPreset) {
break;
Expand Down

0 comments on commit 424fdf5

Please sign in to comment.