Potion / spell of restore ability resets stat abuse as well

This commit is contained in:
Greg Kennedy
2025-03-30 12:25:02 -05:00
committed by PatR
parent 0d2752d05d
commit 06012e7127

View File

@@ -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)