Manage complex skills

This commit is contained in:
2022-07-31 19:48:23 +02:00
parent 1143fa0d57
commit e7faf7937b
3 changed files with 14 additions and 0 deletions

View File

@@ -472,6 +472,10 @@ export class CrucibleActor extends Actor {
rollSkill(skillId) {
let skill = this.data.items.get(skillId)
if (skill) {
if (skill.data.islore && skill.data.level == 0) {
ui.notifications.warn("You can't use Lore Skills with a SL of 0.")
return
}
skill = duplicate(skill)
let abilityKey = skill.data.ability
let rollData = this.getCommonRollData(abilityKey)