From f154ce5f3e792a700e502f348d17b3987b6574cf Mon Sep 17 00:00:00 2001 From: Paul Maskelyne Date: Sat, 19 Oct 2024 00:24:31 +0100 Subject: [PATCH] closes #906 --- RELEASE_NOTES.md | 1 + system/templates/partials/npc-special-attack.hbs | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 2f89c35c..fe1746ab 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -6,6 +6,7 @@ ## Bugfixes * [#896] Add additional padding to blockquote style so text doesn't blend into decorations +* [#906] There's always an extra space between special attack name and effect ## Chores * [#911] Replaced compendium art mapping with default Foundry method. diff --git a/system/templates/partials/npc-special-attack.hbs b/system/templates/partials/npc-special-attack.hbs index b6252cbe..2c9469e9 100644 --- a/system/templates/partials/npc-special-attack.hbs +++ b/system/templates/partials/npc-special-attack.hbs @@ -7,11 +7,17 @@ {{{numAttacks}}} {{attackName}} {{#if ranges}} - ({{ranges}}) + {{#if attackBonus}} + ({{ranges}}) + +{{attackBonus}}. + {{else}} + ({{ranges}}). + {{/if}} + {{else}} + {{#if attackBonus}} + +{{attackBonus}}. + {{/if}} {{/if}} - {{#if attackBonus}} - +{{attackBonus}} - {{/if}}. {{{description}}}