Fix #84
This commit is contained in:
parent
00761d57d3
commit
536b42dbe0
@ -771,6 +771,9 @@ export class PegasusActor extends Actor {
|
|||||||
if (this.type == 'character') {
|
if (this.type == 'character') {
|
||||||
this.rollMR(true, combatId, combatantId)
|
this.rollMR(true, combatId, combatantId)
|
||||||
}
|
}
|
||||||
|
if (this.type == 'vehicle') {
|
||||||
|
this.rollMR(true, combatId, combatantId)
|
||||||
|
}
|
||||||
console.log("Init required !!!!")
|
console.log("Init required !!!!")
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -1919,7 +1922,8 @@ export class PegasusActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rollMR(isInit = false, combatId = 0, combatantId = 0) {
|
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) {
|
if (mr) {
|
||||||
mr.dice = PegasusUtility.getDiceFromLevel(mr.value);
|
mr.dice = PegasusUtility.getDiceFromLevel(mr.value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user