From aa1d5e8ecb09f6bbc198eb96274b189092ab93f6 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Fri, 30 Sep 2022 15:35:04 +0200 Subject: [PATCH] Fix #80 --- modules/pegasus-actor.js | 1 + modules/pegasus-utility.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index a1070a7..4f088b4 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -2297,6 +2297,7 @@ export class PegasusActor extends Actor { if (actor) { let stat = this.getStat("hr") let rollData = this.getCommonRollData("hr") + rollData.vehicle = duplicate(this) rollData.isVehicleStun = true rollData.mode = "stat" rollData.title = `Stat ${stat.label}` diff --git a/modules/pegasus-utility.js b/modules/pegasus-utility.js index 147f64d..30d37ad 100644 --- a/modules/pegasus-utility.js +++ b/modules/pegasus-utility.js @@ -836,7 +836,7 @@ export class PegasusUtility { actor.modifyStun(+1) } if (rollData.isVehicleStun) { - this.modifyVehicleStun(1) + actor.modifyVehicleStun(1) } //this.removeUsedPerkEffects( rollData) // Unused for now