From 901fca3ffaaa676654f73d48ae112fa489f873cc Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@tutamail.com> Date: Mon, 4 Jan 2021 23:07:55 +0100 Subject: [PATCH] fix r3b --- bind.sty | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bind.sty b/bind.sty index 4b539937..8b3d5ee3 100644 --- a/bind.sty +++ b/bind.sty @@ -387,8 +387,15 @@ Roll & Result \\ \ifnum\value{r3}<1\setcounter{r3}{2}\fi% } -\newcommand{\randomthreeB}{ - \ifnumcomp{\value{r3b}}{>}{2}{\setcounter{r3b}{1}}{\addtocounter{r3b}{1}} +\newcommand{\randomthreeB}{% + \ifnum\value{r3b}>2% + \setcounter{r3b}{1}% + \else% + \addtocounter{r3b}{1}% + \fi% + \ifnum\value{r3b}<1% + \setcounter{r3b}{3} + \fi% } \newcommand{\randomthreeC}{ -- GitLab