From 552ff9564a6fe9e8133f54a53a6043a6979d24b2 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Tue, 19 Sep 2023 12:47:55 +0200 Subject: [PATCH] MDL/ADRL fixes + MR fixes --- modules/pegasus-actor.js | 2 +- system.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index a979bf6..cf66eba 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -1937,7 +1937,7 @@ export class PegasusActor extends Actor { } let effects = this.items.filter(item => item.type == 'effect') for (let effect of effects) { - if (effect.system.hindrance) { + if (effect.system.hindrance && ( effect.system.stataffected == statKey || effect.system.stataffected == "all")) { hindrancesDices += effect.system.effectlevel if ( effect.system.oneuse) { effect.system.isUSed = true // Ensure deletion diff --git a/system.json b/system.json index 753f5c6..089f7df 100644 --- a/system.json +++ b/system.json @@ -252,7 +252,7 @@ ], "title": "Pegasus RPG", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", - "version": "11.0.19", - "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v11.0.19.zip", + "version": "11.0.20", + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v11.0.20.zip", "background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp" } \ No newline at end of file