Fix sheet and weapons roll

This commit is contained in:
2023-09-01 20:46:36 +02:00
parent 86a9889359
commit 5e42cfbab1
45 changed files with 136 additions and 135 deletions

View File

@@ -802,10 +802,10 @@ export class Hero6Actor extends Actor {
if (weapon) {
weapon = duplicate(weapon)
let rollData = this.getCommonRollData()
rollData.roll = 11 + (Number(this.system.characteristics.ocv.value) || 0) + (Number(weapon.system.ocv) || 0)
rollData.subMode = "ocv"
rollData.mode = "weapon"
rollData.item = weapon
rollData.item.roll = 11 + (Number(this.system.characteristics.ocv.value) || 0) + (Number(weapon.system.ocv) || 0)
rollData.img = weapon.img
this.startRoll(rollData)
} else {