Potion / spell of restore ability resets stat abuse as well
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user