Skip to content

Commit

Permalink
Fix: Staff of Aesculapius did not heal dark-speech-induced blindness
Browse files Browse the repository at this point in the history
Bug was introduced in the last vanilla merge from the vanilla blindness
overhaul. A Blinded > ucreamed check changed to BlindedTimeout >
ucreamed, so if you had permanent intrisic blindness but no temporary
blindness, the condition wouldn't be met. Fix this by adding another
condition that checks for it.
  • Loading branch information
copperwater committed Jun 23, 2024
1 parent a70f112 commit 308707c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/artifact.c
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ arti_invoke(struct obj *obj)
make_sick(0L, (char *) 0, FALSE, SICK_ALL);
if (Slimed)
make_slimed(0L, (char *) 0);
if (BlindedTimeout > creamed) {
if (BlindedTimeout > creamed || (HBlinded & FROMOUTSIDE)) {
/* remove blindness bestowed by external means; keep 1 turn of
* timeout so that if creamed == 0, make_blinded will produce
* messages and recalc vision */
Expand Down

0 comments on commit 308707c

Please sign in to comment.