From a92ed693df099a0aa596229e7ccfc59bed3778bd Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 16 Jan 2022 16:18:22 +0100 Subject: [PATCH] Fix mod --- modules/pegasus-actor.js | 6 +++--- system.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index e5ce0f3..7634ae4 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -518,7 +518,7 @@ export class PegasusActor extends Actor { let stat = this.getStat(statKey); if (stat) { let rollData = this.getCommonRollData() - rollData.specList = this.getRelevantSpec(armor.data.statistic) + rollData.specList = this.getRelevantSpec(statKey) rollData.mode = "stat" rollData.title = `Stat ${stat.label}`; rollData.stat = stat; @@ -555,9 +555,9 @@ export class PegasusActor extends Actor { rollData.mode = "MR" rollData.stat = mr rollData.activePerks = duplicate(this.getActivePerks()), - rollData.specList = this.getRelevantSpec(armor.data.statistic), + rollData.specList = this.getRelevantSpec('mr'), - this.startRoll(rollData); + this.startRoll(rollData); } else { ui.notifications.warn("MR not found !"); } diff --git a/system.json b/system.json index bf04aff..4ec211b 100644 --- a/system.json +++ b/system.json @@ -163,6 +163,6 @@ "templateVersion": 58, "title": "Pegasus RPG", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", - "version": "0.1.4", + "version": "0.1.5", "background" : "./images/ui/pegasus_welcome_page.webp" }