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).
This commit is contained in:
nethack.allison
2002-08-13 03:58:33 +00:00
parent 55e58c662e
commit 5d5de0c657
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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();