mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 04:01:06 +01:00
Corrected for added character purning
This commit is contained in:
parent
07c228dbad
commit
0dc22e24ca
2 changed files with 1 additions and 10 deletions
|
|
@ -193,14 +193,5 @@ export async function runMigrations() {
|
|||
}
|
||||
//#endregion
|
||||
|
||||
if (foundry.utils.isNewerVersion('1.2.2', lastMigrationVersion)) {
|
||||
/* Delete any null party members caused by characters being deleted in the world prior to it being handled */
|
||||
for (let party of game.actors.filter(x => x.type === 'party')) {
|
||||
await party.update({ 'system.partyMembers': party.system.partyMembers.filter(x => x) });
|
||||
}
|
||||
|
||||
lastMigrationVersion = '1.2.2';
|
||||
}
|
||||
|
||||
await game.settings.set(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.LastMigrationVersion, lastMigrationVersion);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue