test picker with img

actor perm and selected character
fix for some key case in french lang
This commit is contained in:
Vlyan
2020-12-10 23:34:41 +01:00
parent 88162a11c4
commit 8f59902130
10 changed files with 43 additions and 14 deletions

View File

@@ -44,6 +44,10 @@ export class RollL5r5e extends Roll {
// TODO parse difficulty stance skillId from cmd line ?
}
set actor(actor) {
this.l5r5e.actor = (actor instanceof Actor && actor.owner) || null;
}
/**
* Execute the Roll, replacing dice and evaluating the total result
* @override
@@ -259,6 +263,11 @@ export class RollL5r5e extends Roll {
type: template,
content: this._total,
sound: CONFIG.sounds.dice,
speaker: {
actor: this.l5r5e.actor?._id || null,
token: this.l5r5e.actor?.token || null,
alias: this.l5r5e.actor?.name || null,
},
},
messageData
);