Working on 0.8.x - owner -> isOwner
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user