github issue #715 - losing stoning resistance \

while wielding a cockatrice corpse without gloves

Reported by vultur-cadens:  if safely wielding a cockatrice corpse
without gloves due to temporary stoning resistance or wearing yellow
dragon scales/mail, having the resistance be lost to timeout or to
taking off the dragon armor should have turned the hero to stone but
didn't.

Extend the handling for taking off gloves to cover these other two
cases too.  The feedback for these deaths is usually too verbose to
fit on the tombstone but does show up in logfile.

Fixes #715
This commit is contained in:
PatR
2022-03-31 04:48:26 -07:00
parent 8fbb6dc93b
commit a230034af7
4 changed files with 76 additions and 31 deletions

View File

@@ -748,8 +748,14 @@ nh_timeout(void)
You("no longer feel safe from acid.");
break;
case STONE_RES:
if (!Stone_resistance && !Unaware)
You("no longer feel secure from petrification.");
if (!Stone_resistance) {
if (!Unaware)
You("no longer feel secure from petrification.");
/* no-op if not wielding a cockatrice corpse;
uswapwep case is always a no-op (see Gloves_off()) */
wielding_corpse(uwep, (struct obj *) 0, FALSE);
wielding_corpse(uswapwep, (struct obj *) 0, FALSE);
}
break;
case DISPLACED:
if (!Displaced) /* give a message */