v1.9.2 - Advancements ownership fix

This commit is contained in:
Vlyan
2022-09-09 09:49:40 +02:00
parent b04ac12636
commit 1dce3a5444
4 changed files with 9 additions and 4 deletions

View File

@@ -224,7 +224,9 @@ export class ItemL5r5e extends Item {
}
// Copy the parent permission to the sub item
item.ownership = this.ownership;
// In v10 actor's items inherit the ownership from the actor, but theirs ownership do not reflect that.
// So we must take actor's ownership for sub-item
item.ownership = this.actor?.ownership ?? this.ownership;
// Tag parent (flags won't work as we have no id in db)
item.system.parent_id = this.getParentsIds();