FIX: Speedrolling
parent
2574cc93f7
commit
6da300519a
|
@ -259,7 +259,7 @@ export class OseDice {
|
|||
speaker: speaker,
|
||||
};
|
||||
if (skipDialog) {
|
||||
return data.roll.type === "attack"
|
||||
return ["melee", "missile", "attack"].includes(data.roll.type)
|
||||
? OseDice.sendAttackRoll(rollData)
|
||||
: OseDice.sendRoll(rollData);
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ export class OseDice {
|
|||
callback: (html) => {
|
||||
rolled = true;
|
||||
rollData.form = html[0].children[0];
|
||||
roll = ["melee", "missile"].includes(data.roll.type)
|
||||
roll = ["melee", "missile", "attack"].includes(data.roll.type)
|
||||
? OseDice.sendAttackRoll(rollData)
|
||||
: OseDice.sendRoll(rollData);
|
||||
},
|
||||
|
|
|
@ -67,7 +67,7 @@ export class OseItem extends Item {
|
|||
rollWeapon(options = {}) {
|
||||
let isNPC = this.actor.data.type != "character";
|
||||
const data = this.data.data;
|
||||
let type = "melee";
|
||||
let type = isNPC ? "attack" : "melee";
|
||||
if (data.missile && data.melee && !isNPC) {
|
||||
// Dialog
|
||||
new Dialog({
|
||||
|
@ -86,7 +86,7 @@ export class OseItem extends Item {
|
|||
save: this.data.data.save,
|
||||
},
|
||||
},
|
||||
{ type: "melee" }
|
||||
{ type: "melee", skipDialog: options.skipDialog }
|
||||
);
|
||||
},
|
||||
},
|
||||
|
@ -102,7 +102,7 @@ export class OseItem extends Item {
|
|||
actor: this.actor.data,
|
||||
item: this.data,
|
||||
},
|
||||
{ type: "missile" }
|
||||
{ type: "missile", skipDialog: options.skipDialog }
|
||||
);
|
||||
},
|
||||
},
|
||||
|
@ -121,7 +121,7 @@ export class OseItem extends Item {
|
|||
save: this.data.data.save,
|
||||
},
|
||||
},
|
||||
{ type: type }
|
||||
{ type: type, skipDialog: options.skipDialog }
|
||||
);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue