foundry v12 ownership const name change

This commit is contained in:
Mike Bloy 2024-07-09 20:16:40 -05:00
parent 2ef597dc8c
commit 39c2ce8d70

View File

@ -886,10 +886,11 @@ export class ActorFolderEffect extends PowerEffect {
this.data.maintId = foundry.utils.randomID(); this.data.maintId = foundry.utils.randomID();
this.targetActor = await game.actors.get(this.data.actorId); this.targetActor = await game.actors.get(this.data.actorId);
this.targetTokenDoc = await this.targetActor.getTokenDocument(); this.targetTokenDoc = await this.targetActor.getTokenDocument();
const perm = CONST?.DOCUMENT_PERMISSION_LEVELS?.OWNER ?? CONST?.DOCUMENT_OWNERSHIP_LEVELS?.OWNER;
const sourceUpdates = { const sourceUpdates = {
delta: { delta: {
ownership: { ownership: {
[game.user.id]: CONST.DOCUMENT_PERMISSION_LEVELS.OWNER, [game.user.id]: perm,
}, },
}, },
}; };