diff --git a/src/module/active-effect.ts b/src/module/active-effect.ts index 3d3432fc..08925178 100644 --- a/src/module/active-effect.ts +++ b/src/module/active-effect.ts @@ -43,7 +43,8 @@ export class DS4ActiveEffect extends ActiveEffect { if (!(this.parent instanceof DS4Actor)) { return; } - const [, , , itemId] = this.data.origin?.split(".") ?? []; + const itemIdRegex = /Item\.([a-zA-Z0-9]+)/; + const itemId = this.data.origin?.match(itemIdRegex)?.[1]; if (!itemId) { return; }