From 06012e7127c1c3b132e1942dcc5c55a5ec11890c Mon Sep 17 00:00:00 2001 From: Greg Kennedy Date: Sun, 30 Mar 2025 12:25:02 -0500 Subject: [PATCH] Potion / spell of restore ability resets stat abuse as well --- src/potion.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/potion.c b/src/potion.c index 1758d16b8..10fd55118 100644 --- a/src/potion.c +++ b/src/potion.c @@ -667,6 +667,9 @@ peffect_restore_ability(struct obj *otmp) WEAK or worse, but that's handled via ATEMP(A_STR) now */ if (ABASE(i) < lim) { ABASE(i) = lim; + /* reset stat abuse (but not exercise) to 0 as well */ + AEXE(i) = max(AEXE(i), 0); + disp.botl = TRUE; /* only first found if not blessed */ if (!otmp->blessed)