Skip to content

Commit

Permalink
[#1626] Fix issue with applying spell changes to non-spell items
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Aug 27, 2022
1 parent cbac587 commit 5597ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/advancement/types/item-grant.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class ItemGrantAdvancement extends Advancement {
"flags.dnd5e.advancementOrigin": `${this.item.id}.${this.id}`
}, {keepId: true}).toObject();
}
foundry.utils.mergeObject(itemData, spellChanges);
if ( itemData.type === "spell" ) foundry.utils.mergeObject(itemData, spellChanges);

items.push(itemData);
// TODO: Trigger any additional advancement steps for added items
Expand Down

0 comments on commit 5597ddf

Please sign in to comment.