Potion / spell of restore ability resets stat abuse as well

This commit is contained in:
Greg Kennedy
2026-02-17 14:51:37 -08:00
committed by PatR
parent 0d2752d05d
commit 06012e7127
+3
View File
@@ -667,6 +667,9 @@ peffect_restore_ability(struct obj *otmp)
WEAK or worse, but that's handled via ATEMP(A_STR) now */ WEAK or worse, but that's handled via ATEMP(A_STR) now */
if (ABASE(i) < lim) { if (ABASE(i) < lim) {
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; disp.botl = TRUE;
/* only first found if not blessed */ /* only first found if not blessed */
if (!otmp->blessed) if (!otmp->blessed)