From 1143fa0d576b924ca8931f370f4dd245eeddaa69 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 31 Jul 2022 19:42:51 +0200 Subject: [PATCH] Modify Skills again --- modules/crucible-utility.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/crucible-utility.js b/modules/crucible-utility.js index 92bce03..b94ff4c 100644 --- a/modules/crucible-utility.js +++ b/modules/crucible-utility.js @@ -313,7 +313,7 @@ export class CrucibleUtility { } } // Manage exp - if (rollData.skill) { + if (rollData.skill && rollData.skill.data.level > 0) { let nbSkillSuccess = rollData.roll.terms[2].total if ( nbSkillSuccess == 0 || nbSkillSuccess == rollData.skill.data.level) { actor.incrementSkillExp(rollData.skill._id, 1) @@ -344,7 +344,7 @@ export class CrucibleUtility { return 0; }) } - + /* -------------------------------------------- */ static getUsers(filter) { return game.users.filter(filter).map(user => user.data._id);