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);