From 499c277fba38c4f97ba7078510abf04a38ac9bb7 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Mon, 7 Jul 2025 11:45:12 -0400 Subject: [PATCH] add missing modifiers from group rolls --- src/artigen/dice/groupHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/artigen/dice/groupHandler.ts b/src/artigen/dice/groupHandler.ts index f8b4480..79d9091 100644 --- a/src/artigen/dice/groupHandler.ts +++ b/src/artigen/dice/groupHandler.ts @@ -174,7 +174,7 @@ export const handleGroup = ( initConfig: `${prev.initConfig}, ${cur.initConfig}`, isComplex: prev.isComplex || cur.isComplex, })); - data.initConfig = `{${data.initConfig}}`; + data.initConfig = `{${data.initConfig}}${groupModifiers.replaceAll(' ', '')}`; if (groupConf.success.on || groupConf.fail.on) { data.rollTotal = 0; @@ -211,6 +211,7 @@ export const handleGroup = ( if (groupModifiers.trim()) { // Handle special case where the group modifiers are applied across the dice rolled // ex from roll20 docs: {4d6+3d8}k4 - Roll 4 d6's and 3 d8's, out of those 7 dice the highest 4 are kept and summed up. + // TODO AAAAAAAAAAAAAAAAA retData = {}; } else { // why did you put this in a group, that was entirely pointless