From 09ef7fa96fe5fa9b02d1140427faf0a4dfd18802 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Wed, 11 Feb 2026 01:43:30 +0100 Subject: [PATCH] . --- lang/en.json | 3 ++- module/documents/actor.mjs | 4 ++++ module/documents/item.mjs | 2 +- module/systemRegistration/migrations.mjs | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lang/en.json b/lang/en.json index b6684e59..14218311 100755 --- a/lang/en.json +++ b/lang/en.json @@ -2980,7 +2980,8 @@ "domainTouchRequirement": "This domain card requires {nr} {domain} cards in the loadout to be used", "knowTheTide": "Know The Tide gained a token", "cannotAlterArmorEffectChanges": "You cannot alter the changes length of an armor effect", - "cannotAlterArmorEffectType": "You cannot alter the type of armor effect changes" + "cannotAlterArmorEffectType": "You cannot alter the type of armor effect changes", + "cannotAlterArmorEffectKey": "You cannot alter they key of armor effect changes" }, "Progress": { "migrationLabel": "Performing system migration. Please wait and do not close Foundry." diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index da399df5..64e877c9 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -993,4 +993,8 @@ export default class DhpActor extends Actor { } } } + + applyActiveEffects(phase) { + super.applyActiveEffects(phase); + } } diff --git a/module/documents/item.mjs b/module/documents/item.mjs index ce87db4e..56048a81 100644 --- a/module/documents/item.mjs +++ b/module/documents/item.mjs @@ -233,7 +233,7 @@ export default class DHItem extends foundry.documents.Item { /** @inheritDoc */ static migrateData(source) { - const documentClass = game.system.api.data.items[`DH${source.type.capitalize()}`]; + const documentClass = game.system.api.data.items[`DH${source.type?.capitalize()}`]; if (documentClass?.migrateDocumentData) { documentClass.migrateDocumentData(source); } diff --git a/module/systemRegistration/migrations.mjs b/module/systemRegistration/migrations.mjs index 2b558ee2..6bfb32ee 100644 --- a/module/systemRegistration/migrations.mjs +++ b/module/systemRegistration/migrations.mjs @@ -313,7 +313,7 @@ export async function runMigrations() { phase: 'initial', priority: 20, value: 0, - max: migrationArmorScore + max: migrationArmorScore.toString() } ] }