This commit is contained in:
sladecraven 2022-09-30 14:00:29 +02:00
parent 00761d57d3
commit 536b42dbe0

View File

@ -771,6 +771,9 @@ export class PegasusActor extends Actor {
if (this.type == 'character') {
this.rollMR(true, combatId, combatantId)
}
if (this.type == 'vehicle') {
this.rollMR(true, combatId, combatantId)
}
console.log("Init required !!!!")
return -1;
}
@ -1919,7 +1922,8 @@ export class PegasusActor extends Actor {
/* -------------------------------------------- */
async rollMR(isInit = false, combatId = 0, combatantId = 0) {
let mr = duplicate(this.system.mr)
let mr = duplicate((this.type =="vehicle") ? this.system.statistics.mr : this.system.mr)
if (mr) {
mr.dice = PegasusUtility.getDiceFromLevel(mr.value);