Skip to content

Commit

Permalink
[foundryvtt#1407] Ensure added subclass's classIdentifier matches the…
Browse files Browse the repository at this point in the history
… class to which it was added
  • Loading branch information
arbron committed Aug 22, 2022
1 parent 2e35f5a commit 5d892a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/advancement/types/subclass.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export class SubclassAdvancement extends Advancement {
if ( !source ) return; // TODO: Something went wrong, throw an error?
itemData = source.clone({
_id: foundry.utils.randomID(),
"system.classIdentifier": this.item.identifier,
"flags.dnd5e.sourceId": data.uuid,
"flags.dnd5e.advancementOrigin": `${this.item.id}.${this.id}`
}, {keepId: true}).toObject();
Expand Down

0 comments on commit 5d892a0

Please sign in to comment.