diff --git a/system/scripts/dice/dice-picker-dialog.js b/system/scripts/dice/dice-picker-dialog.js index 5a73ae2..a85b238 100644 --- a/system/scripts/dice/dice-picker-dialog.js +++ b/system/scripts/dice/dice-picker-dialog.js @@ -155,7 +155,7 @@ export class DicePickerDialog extends FormApplication { * @param actor */ set actor(actor) { - if (!actor || !(actor instanceof Actor) || !actor.owner) { + if (!actor || !(actor instanceof Actor) || !actor.isOwner) { return; } this._actor = actor; diff --git a/system/scripts/dice/roll-n-keep-dialog.js b/system/scripts/dice/roll-n-keep-dialog.js index cad314e..0c5effd 100644 --- a/system/scripts/dice/roll-n-keep-dialog.js +++ b/system/scripts/dice/roll-n-keep-dialog.js @@ -86,7 +86,7 @@ export class RollnKeepDialog extends FormApplication { super({}, options); this.message = game.messages.get(messageId); this.options.editable = - this._message?.isAuthor || this._message?._roll.l5r5e.actor?.owner || this._message?.owner || false; + this._message?.isAuthor || this._message?._roll.l5r5e.actor?.isOwner || this._message?.isOwner || false; this._initializeDiceFaces(); this._initializeHistory(); diff --git a/system/scripts/dice/roll.js b/system/scripts/dice/roll.js index 2bc166c..c7fed3c 100644 --- a/system/scripts/dice/roll.js +++ b/system/scripts/dice/roll.js @@ -48,7 +48,7 @@ export class RollL5r5e extends Roll { } set actor(actor) { - this.l5r5e.actor = actor instanceof Actor && actor.owner ? actor : null; + this.l5r5e.actor = actor instanceof Actor && actor.isOwner ? actor : null; } /**