Skip to content

Commit

Permalink
fix Grimoires not applying sourceId data
Browse files Browse the repository at this point in the history
  • Loading branch information
Forien committed Sep 7, 2024
1 parent 8d1e505 commit 78ccce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## v3.X.X

### v3.1.2 ?
* Fixed Grimoires not applying SourceId flag correctly, resulting in duplicating spells in very specific conditions

### v3.1.1
* Fixed multiple macros and features being broken due to renaming of Actor class from `ActorWfrp4e` to `ActorWFRP4e`
* Fixed Combat Fatigue not being handled due to API changes (scripts being moved from `game.wfrp4e.combat.scripts` to `CombatHelpers`)
Expand Down
1 change: 1 addition & 0 deletions dist/modules/data-models/Grimoire.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export default class GrimoireModel extends PropertiesMixin(EquippableItemModel)
data.name = spell.name;

foundry.utils.setProperty(data, `flags.${constants.moduleId}.${flags.grimoires.source}`, this.parent.id);
foundry.utils.setProperty(data, `flags.core.sourceId`, spell.uuid);

items.push(data);
}
Expand Down

0 comments on commit 78ccce5

Please sign in to comment.