moo-man / WrathAndGlory-FoundryVTT

The official system implementation for Warhammer 40,000 Roleplay: Wrath & Glory by Cubicle 7
GNU General Public License v3.0
13 stars 16 forks source link

[Wrath & Glory: Forsaken System Module] Can't make threat from archetype #215

Closed moo-man closed 1 year ago

moo-man commented 1 year ago

To recreate: make a new threat and drag the Astartes Librarian onto the sheet.

Console logs:


commons.js:1703 Error: You are accessing WrathAndGloryItem#data which has been migrated to WrathAndGloryItem#system
Deprecated since Version 10
Backwards-compatible support will be removed in Version 12
    at logCompatibilityWarning (commons.js:1692)
    at Function._logDataFieldMigration (commons.js:6631)
    at Object.get (commons.js:6595)
    at _mergeUpdate (commons.js:2417)
    at mergeObject (commons.js:2380)
    at WrathAndGloryItem.GetArchetypeItems (wrath-and-glory.js:1577)
    at async WrathAndGloryActor.applyArchetype (wrath-and-glory.js:4428)
logCompatibilityWarning @   commons.js:1703
_logDataFieldMigration  @   commons.js:6631
get @   commons.js:6595
_mergeUpdate    @   commons.js:2417
mergeObject @   commons.js:2380
GetArchetypeItems   @   wrath-and-glory.js:1577
async function (async)      
GetArchetypeItems   @   wrath-and-glory.js:1573
applyArchetype  @   wrath-and-glory.js:4428
yes @   wrath-and-glory.js:4854
callback    @   foundry.js:56465
button.callback @   foundry.js:56516
submit  @   foundry.js:56403
_onClickButton  @   foundry.js:56332
dispatch    @   jquery.min.js:2
y.handle    @   jquery.min.js:2```

```Uncaught (in promise) TypeError: undefined. Promise.all(...).filter is not a function
[Detected 1 package: system:wrath-and-glory]
    at WrathAndGloryItem.GetArchetypeItems (wrath-and-glory.js:1588)
    at async WrathAndGloryActor.applyArchetype (wrath-and-glory.js:4428)
GetArchetypeItems @ wrath-and-glory.js:1588```<br/>**From**: @disgeni<br/>wrath-and-glory: 4.1.0