mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
g
This commit is contained in:
parent
506faacd45
commit
9e771059f1
5 changed files with 95 additions and 21 deletions
|
|
@ -57,11 +57,12 @@ export default class ReactionRollDialog extends HandlebarsApplicationMixin(Appli
|
|||
this.render(true);
|
||||
}
|
||||
|
||||
static async reactionRollQuery({ actorId, trait }) {
|
||||
static async reactionRollQuery({ action, token, event, message }) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const actor = await fromUuid(actorId);
|
||||
if (!actor || !actor?.isOwner) reject();
|
||||
new ReactionRollDialog(resolve, reject, actor, trait).render({ force: true });
|
||||
// const actor = await fromUuid(actorId);
|
||||
// if (!actor || !actor?.isOwner) reject();
|
||||
action.rollSave(token, event, message).then(result => resolve(result));
|
||||
// new ReactionRollDialog(resolve, reject, actor, trait).render({ force: true });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue