diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index 9e1fad1..11026dc 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -373,7 +373,6 @@ export class OseActor extends Actor { } rollAttack(attData, options = {}) { - console.log("ACTOR", attData); const data = this.data.data; const rollParts = ["1d20"]; const dmgParts = []; @@ -418,6 +417,7 @@ export class OseActor extends Actor { type: options.type, thac0: thac0, dmg: dmgParts, + save: attData.roll.save, }, }; diff --git a/src/module/dice.js b/src/module/dice.js index 63e8ba9..8093d27 100644 --- a/src/module/dice.js +++ b/src/module/dice.js @@ -243,7 +243,6 @@ export class OseDice { title = null, } = {}) { let rolled = false; - console.log(data); const template = "systems/ose/templates/chat/roll-dialog.html"; let dialogData = { formula: parts.join(" "), @@ -272,7 +271,6 @@ export class OseDice { callback: (html) => { rolled = true; rollData.form = html[0].children[0]; - console.log(data); roll = ["melee", "missile"].includes(data.roll.type) ? OseDice.sendAttackRoll(rollData) : OseDice.sendRoll(rollData); diff --git a/src/module/item/entity.js b/src/module/item/entity.js index 898b862..27365b2 100644 --- a/src/module/item/entity.js +++ b/src/module/item/entity.js @@ -83,10 +83,10 @@ export class OseItem extends Item { item: this.data, actor: this.actor.data, roll: { - type: "melee", + save: this.data.data.save, }, }, - options + { type: "melee" } ); }, }, @@ -97,12 +97,12 @@ export class OseItem extends Item { this.actor.rollAttack( { roll: { - type: "missile", + save: this.data.data.save, }, actor: this.actor.data, item: this.data, }, - options + { type: "missile" } ); }, }, @@ -117,8 +117,11 @@ export class OseItem extends Item { { actor: this.actor.data, item: this.data, + roll: { + save: this.data.data.save, + }, }, - {type: type} + { type: type } ); return true; diff --git a/src/templates/chat/roll-attack.html b/src/templates/chat/roll-attack.html index d804c20..6167d41 100644 --- a/src/templates/chat/roll-attack.html +++ b/src/templates/chat/roll-attack.html @@ -1,4 +1,4 @@ -