From 9995566055e42efbd0dab059ca3df2cbcbfede10 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Thu, 26 Feb 2026 15:59:15 +0100 Subject: [PATCH] . --- module/helpers/handlebarsHelper.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/helpers/handlebarsHelper.mjs b/module/helpers/handlebarsHelper.mjs index 2faea830..1c47f8dc 100644 --- a/module/helpers/handlebarsHelper.mjs +++ b/module/helpers/handlebarsHelper.mjs @@ -49,9 +49,7 @@ export default class RegisterHandlebarsHelpers { } static damageSymbols(damageParts) { - const symbols = [...new Set(damageParts.reduce((a, c) => a.concat([...c.type]), []))].map( - p => CONFIG.DH.GENERAL.damageTypes[p].icon - ); + const symbols = [...new Set(damageParts.map(x => x.type))].map(p => CONFIG.DH.GENERAL.damageTypes[p].icon); return new Handlebars.SafeString(Array.from(symbols).map(symbol => ``)); }