From bdcc07a240bb971103b9564550bb98863a47a889 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Tue, 17 Sep 2024 20:29:29 +0200
Subject: [PATCH] separate showing duplicated spell targets

---
 magic.sty | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/magic.sty b/magic.sty
index cca5728..f4e4c4b 100644
--- a/magic.sty
+++ b/magic.sty
@@ -172,10 +172,7 @@
   \renewcommand\spellSum{#6}%
   \renewcommand\spellNotes{#7}%
   \setRange%
-  \iftoggle{Duplicated}{%
-    \foreach \i in {1,...,\arabic{spellCost}}%
-      {\multiply\value{spellTargets} by \value{spellCost}\addtocounter{spellTargets}{0}}%
-  }{}%
+  \setTargetsIfDuplicated%
   \iftoggle{talisman}{%
     \index[talismans]{\textbf{#1} (\spellEnhancements\ \spellAction~\spellSphere) Range:~\spellRange, \ifnumcomp{\value{spellTargets}}{>}{1}{Area:~\arabic{spellTargets}, }{} \iftoggle{Devious}{Onset:~1~\showOnset, }{} Resisted by: \detokenize{#5}, Bonus:~\arabic{spellCost}. \spellSum|adfclosedflourishleft~p.~}%
   }{%
-- 
GitLab