Skip to content

Commit

Permalink
[foundryvtt#1407] Change advancement origin to use new advancement UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Oct 19, 2022
1 parent 47a547c commit d27458a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/advancement/advancement-manager.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class AdvancementManager extends Application {
* A clone of the original actor to which the changes can be applied during the advancement process.
* @type {Actor5e}
*/
this.clone = actor.clone();
this.clone = actor.clone({}, {keepId: true});

/**
* Individual steps that will be applied in order.
Expand Down
2 changes: 1 addition & 1 deletion module/advancement/types/subclass.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class SubclassAdvancement extends Advancement {
_id: foundry.utils.randomID(),
"system.classIdentifier": this.item.identifier,
"flags.dnd5e.sourceId": data.uuid,
"flags.dnd5e.advancementOrigin": `${this.item.id}.${this.id}`
"flags.dnd5e.advancementOrigin": this.uuid
}, {keepId: true}).toObject();
}
this.actor.updateSource({ items: [itemData] });
Expand Down

0 comments on commit d27458a

Please sign in to comment.