Modify Skills again

This commit is contained in:
sladecraven 2022-07-31 19:42:51 +02:00
parent 4b0831c427
commit 1143fa0d57

View File

@ -313,7 +313,7 @@ export class CrucibleUtility {
} }
} }
// Manage exp // Manage exp
if (rollData.skill) { if (rollData.skill && rollData.skill.data.level > 0) {
let nbSkillSuccess = rollData.roll.terms[2].total let nbSkillSuccess = rollData.roll.terms[2].total
if ( nbSkillSuccess == 0 || nbSkillSuccess == rollData.skill.data.level) { if ( nbSkillSuccess == 0 || nbSkillSuccess == rollData.skill.data.level) {
actor.incrementSkillExp(rollData.skill._id, 1) actor.incrementSkillExp(rollData.skill._id, 1)