[Fix] 654 - CharacterCreation DomainCard Effects (#665)

* Character creation fix and levelup style fixes

* .

* Fixed old origin logic
This commit is contained in:
WBHarry 2025-08-07 01:10:15 +02:00 committed by GitHub
parent bcedc74bf3
commit ead2f6b8f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 66 additions and 48 deletions

View file

@ -75,7 +75,8 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
if (isOriginTarget && change.effect.origin) {
change.value = change.value.replaceAll(/origin\.@/gi, '@');
try {
const doc = foundry.utils.fromUuidSync(change.effect.origin);
const effect = foundry.utils.fromUuidSync(change.effect.origin);
const doc = effect.parent?.parent;
if (doc) parseModel = doc;
} catch (_) {}
}