Working on 0.8.x - owner -> isOwner

This commit is contained in:
Vlyan
2021-04-24 22:01:31 +02:00
parent a27766a280
commit df86ba81e7
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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();

View File

@@ -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;
}
/**