diff --git a/src/module/actor/actor.ts b/src/module/actor/actor.ts index 6a674cd6..c9123167 100644 --- a/src/module/actor/actor.ts +++ b/src/module/actor/actor.ts @@ -83,9 +83,7 @@ export class DS4Actor extends Actor { } protected _getOriginatingItemOfActiveEffect(effect: ActiveEffect): DS4Item | undefined { - const re = /.*OwnedItem\.(.*)/; - const id = effect.data.origin?.match(re)?.[1] ?? ""; - const item = this.items.find((item) => item.id === id); + const item = this.items.find((item) => item.uuid === effect.data.origin); return item ?? undefined; }