fix: fix effects not being surpressed for unlinked token actors
This commit is contained in:
parent
8f3a72a7f4
commit
4974482325
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue