diff --git a/src/module/migrations/004.ts b/src/module/migrations/004.ts index 5f09a60a..b0afa0ff 100644 --- a/src/module/migrations/004.ts +++ b/src/module/migrations/004.ts @@ -60,7 +60,14 @@ function getActorUpdateData(actorData: DeepPartial) { return itemData; } }); - return hasItemUpdates ? { items } : undefined; + const updateData: Record = {}; + if (actorData.type === "character") { + updateData["data.slayerPoints"] = { value: 0 }; + } + if (hasItemUpdates) { + updateData["items"] = items; + } + return updateData; } async function migrateScenes() {