From 3106c3dfb25ea1f6cb6dc431115632375c279270 Mon Sep 17 00:00:00 2001 From: Paul Maskelyne Date: Sat, 2 Nov 2024 13:39:06 +0000 Subject: [PATCH] closes #930 --- RELEASE_NOTES.md | 1 + system/src/documents/ActorSD.mjs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index d94cc550..19645438 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -16,6 +16,7 @@ * [#906] There's always an extra space between special attack name and effect * [#918] Actor and Item type names missing from i18n data * [#919] Class item template has incorrect default spellcasting class value +* [#930] Class Abilities can't be used if they have no associated skill roll ## Chores * [#911] Replaced compendium art mapping with default Foundry method. diff --git a/system/src/documents/ActorSD.mjs b/system/src/documents/ActorSD.mjs index 4950c4e6..2d1f0a75 100644 --- a/system/src/documents/ActorSD.mjs +++ b/system/src/documents/ActorSD.mjs @@ -1414,7 +1414,7 @@ export default class ActorSD extends Actor { title = game.i18n.localize("SHADOWDARK.chat.use_ability.title"); // does ability use on a roll check? - if (typeof item.system.ability !== "undefined") { + if (item.system.ability !== "") { options = foundry.utils.mergeObject({target: item.system.dc}, options); const result = await this.rollAbility( item.system.ability,