FIX: raw attack

master
U~man 2020-07-25 23:55:16 +02:00
parent 57652479ee
commit 2574cc93f7
2 changed files with 2 additions and 4 deletions

View File

@ -164,7 +164,7 @@ export class OseActorSheet extends ActorSheet {
let actorObject = this.actor; let actorObject = this.actor;
let element = event.currentTarget; let element = event.currentTarget;
let attack = element.parentElement.parentElement.dataset.attack; let attack = element.parentElement.parentElement.dataset.attack;
actorObject.rollAttack({ skipDialog: ev.ctrlKey }, { type: attack }); actorObject.rollAttack({roll: {}}, { type: attack, skipDialog: ev.ctrlKey });
}); });
html.find(".spells .item-reset").click((ev) => { html.find(".spells .item-reset").click((ev) => {

View File

@ -421,14 +421,12 @@ export class OseActor extends Actor {
}, },
}; };
let skip = options.event && options.event.ctrlKey;
// Roll and return // Roll and return
return OseDice.Roll({ return OseDice.Roll({
event: options.event, event: options.event,
parts: rollParts, parts: rollParts,
data: rollData, data: rollData,
skipDialog: skip, skipDialog: options.skipDialog,
speaker: ChatMessage.getSpeaker({ actor: this }), speaker: ChatMessage.getSpeaker({ actor: this }),
flavor: label, flavor: label,
title: label, title: label,