v10/v11 compatibility
This commit is contained in:
@@ -599,11 +599,17 @@ export class HawkmoonActor extends Actor {
|
||||
}
|
||||
console.log("DEGATS", arme)
|
||||
let roll
|
||||
let bonus = 0
|
||||
if (rollDataInput?.isHeroique) {
|
||||
roll = new Roll("2d10rr10+" + arme.system.totalDegats).roll({ async: false })
|
||||
|
||||
if (rollDataInput?.attaqueCharge) {
|
||||
bonus = 5
|
||||
}
|
||||
roll = new Roll("2d10rr10+" + arme.system.totalDegats + "+" + bonus).roll({ async: false })
|
||||
} else {
|
||||
roll = new Roll("1d10+" + arme.system.totalDegats).roll({ async: false })
|
||||
if (rollDataInput?.attaqueCharge) {
|
||||
bonus = 3
|
||||
}
|
||||
roll = new Roll("1d10+" + arme.system.totalDegats + "+" + bonus).roll({ async: false })
|
||||
}
|
||||
await HawkmoonUtility.showDiceSoNice(roll, game.settings.get("core", "rollMode"));
|
||||
let nbEtatPerdus = 0
|
||||
|
Reference in New Issue
Block a user