Skip to content

Commit

Permalink
Fix: Withering res check prevented regeneration after getting partial…
Browse files Browse the repository at this point in the history
… disintegration res.
  • Loading branch information
elunna committed Dec 5, 2024
1 parent 0b3b930 commit b74939e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/youprop.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
#define HWithering u.uprops[WITHERING].intrinsic
#define EWithering u.uprops[WITHERING].extrinsic
#define Withering (HWithering || EWithering) && !BWithering
#define BWithering Disint_resistance /* parallel resistances */
#define BWithering EDisint_resistance /* parallel resistances */

#define Rabid u.uprops[RABID].intrinsic

Expand Down
2 changes: 1 addition & 1 deletion src/allmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ regen_hp(int wtcap)
once u.mh reached u.mhmax; that may have been convenient
for the player, but it didn't make sense for gameplay...] */
if (u.uhp < u.uhpmax
&& vamp_can_regen()
&& vamp_can_regen()
&& !Rabid
/* Non-undead cannot regenerate in the valley */
&& (!Is_valley(&u.uz) || is_undead(gy.youmonst.data))
Expand Down

0 comments on commit b74939e

Please sign in to comment.