Modify Skills again

This commit is contained in:
sladecraven 2022-07-31 19:42:51 +02:00
parent 4b0831c427
commit 1143fa0d57
1 changed files with 2 additions and 2 deletions

View File

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