Corrected for added character purning

This commit is contained in:
WBHarry 2025-11-15 15:04:01 +01:00
parent 07c228dbad
commit 0dc22e24ca
2 changed files with 1 additions and 10 deletions

View file

@ -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);
}