Skip to content

Commit

Permalink
The oilskin property protects your helm from amnesia effects.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Sep 27, 2023
1 parent 2dbe9af commit 1660e7f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/potion.c
Original file line number Diff line number Diff line change
Expand Up @@ -1930,9 +1930,12 @@ int how;
break;
case POT_AMNESIA:
/* Uh-oh! */
if (uarmh && is_helmet(uarmh) &&
rn2(10 - (uarmh->cursed? 8 : 0)))
amnesia_wet(obj, uarmh, your_fault);
if (uarmh && is_helmet(uarmh) && rn2(10 - (uarmh->cursed ? 8 : 0))) {
if (uarmh->oprops & ITEM_OILSKIN && !Blind)
pline_The("sparkling water slides off %s", yobjnam(uarmh, (char *) 0));
else
amnesia_wet(obj, uarmh, your_fault);
}
break;
case POT_HALLUCINATION:
if (!Halluc_resistance) {
Expand Down

0 comments on commit 1660e7f

Please sign in to comment.