FIX: raw attack
parent
57652479ee
commit
2574cc93f7
|
@ -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) => {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue