From a82aba4b729277b288acc4f4b5a6eb8af62cdc73 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Sat, 11 May 2024 01:55:23 +0200
Subject: [PATCH] keep statblocks with their hp boxes

---
 stats.sty | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/stats.sty b/stats.sty
index c374065a..ac8959d0 100644
--- a/stats.sty
+++ b/stats.sty
@@ -132,9 +132,10 @@
 
 \newcommand\statblock[1]{
     \begin{tcolorbox}[
+      before={\begin{minipage}{\linewidth}},
       code={\setlength\parindent{0pt}#1},
       title={\npcsymbol~\name},
-      after={\afterStatBlock},
+      after={\afterStatBlock\end{minipage}},
       ornamented,
       size=fbox,
       fontupper=\small,
-- 
GitLab