System setting and toggle option for roll dialog
This commit is contained in:
@@ -314,7 +314,7 @@ export class M5Item extends Item {
|
||||
return ret;
|
||||
}
|
||||
|
||||
async roll() {
|
||||
async roll(toggleAutomatedRoll = false) {
|
||||
const item = this as any;
|
||||
|
||||
// Initialize chat data.
|
||||
@@ -348,7 +348,7 @@ export class M5Item extends Item {
|
||||
}
|
||||
|
||||
const roll = new M5Roll(rollData, this.actor, item.name, item.id);
|
||||
return roll.toMessage();
|
||||
return roll.toMessage(toggleAutomatedRoll);
|
||||
} else {
|
||||
ChatMessage.create({
|
||||
speaker: speaker,
|
||||
|
||||
Reference in New Issue
Block a user