From 5d5de0c657bd13f288dd7b2004101e53a83bc01b Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Tue, 13 Aug 2002 03:58:33 +0000 Subject: [PATCH] R1045 engulfing green slime was causing stoning not sliming From a bug report, August 12, 2002 at 11:37:10 When I am polymorphed into a purple worm (didn't check other forms) and bite a green slime I turn to stone (not slime). --- doc/fixes34.1 | 1 + src/uhitm.c | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index bf57062b1..9ca1bc443 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -202,6 +202,7 @@ after forcefighting a concealed lurker, the lurker wouldn't fight back when polymorphed into a hider, cease hiding during level changes let mind flayer grow up into master mind flayer; also giant/sewer rat and cave/large spider +engulfing green slime as a purple worm was causing stoning not sliming Platform- and/or Interface-Specific Fixes diff --git a/src/uhitm.c b/src/uhitm.c index f32de01e8..0b0f62757 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -1595,8 +1595,7 @@ register struct attack *mattk; for (otmp = mdef->minvent; otmp; otmp = otmp->nobj) (void) snuff_lit(otmp); - if((!touch_petrifies(mdef->data) || Stone_resistance) && - (Unchanging || mdef->data != &mons[PM_GREEN_SLIME])) { + if(!touch_petrifies(mdef->data) || Stone_resistance) { #ifdef LINT /* static char msgbuf[BUFSZ]; */ char msgbuf[BUFSZ]; #else @@ -1658,6 +1657,14 @@ register struct attack *mattk; nomul(-tmp); nomovemsg = msgbuf; } else pline("%s", msgbuf); + if (mdef->data == &mons[PM_GREEN_SLIME]) { + Sprintf(msgbuf, "%s isn't sitting well with you.", + The(mdef->data->mname)); + if (!Unchanging) { + Slimed = 5L; + flags.botl = 1; + } + } else exercise(A_CON, TRUE); } end_engulf(); -- 2.49.0