From 13aac3510bd446d343f60071fed131e7125ec462 Mon Sep 17 00:00:00 2001 From: Kelly <12676665+SpudGunMan@users.noreply.github.com> Date: Wed, 30 Sep 2026 18:59:46 -0700 Subject: [PATCH] =?UTF-8?q?UnHold=F0=9F=8E=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clear hold --- modules/games/README.md | 3 ++- modules/games/yatz.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/games/README.md b/modules/games/README.md index da4b5ca..40c4181 100644 --- a/modules/games/README.md +++ b/modules/games/README.md @@ -240,8 +240,9 @@ Like the rest of the mesh games, this is a tracker-locked DM game: once you star | `yatz join [table]` | Join open table (or specific table id) | | `yatz lobby` | Show open tables | | `roll` | Roll dice during your active turn | -| `hold A,C,E` | Hold selected dice slots | +| `hold A,C,E` | Hold selected dice slots; keeps persist across the turn | | `keep A,C,E` | Alias for hold | +| `clear` or `none` | Release all held dice for the current turn | | `score ` | Score current hand in a category | | `card` | Show your scorecard | | `end` | Leave/end your game | diff --git a/modules/games/yatz.py b/modules/games/yatz.py index 445a399..23cf350 100644 --- a/modules/games/yatz.py +++ b/modules/games/yatz.py @@ -312,7 +312,7 @@ class YatzGame: return "Invalid hold list. Example: hold A,C,E" current = session["turn"]["held"][:] - if not idx: + if hold_str.strip().lower() in ("none", "n", "clear"): current = [False for _ in range(5)] else: for i in idx: