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:
@@ -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
|
when polymorphed into a hider, cease hiding during level changes
|
||||||
let mind flayer grow up into master mind flayer; also giant/sewer rat and
|
let mind flayer grow up into master mind flayer; also giant/sewer rat and
|
||||||
cave/large spider
|
cave/large spider
|
||||||
|
engulfing green slime as a purple worm was causing stoning not sliming
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
11
src/uhitm.c
11
src/uhitm.c
@@ -1595,8 +1595,7 @@ register struct attack *mattk;
|
|||||||
for (otmp = mdef->minvent; otmp; otmp = otmp->nobj)
|
for (otmp = mdef->minvent; otmp; otmp = otmp->nobj)
|
||||||
(void) snuff_lit(otmp);
|
(void) snuff_lit(otmp);
|
||||||
|
|
||||||
if((!touch_petrifies(mdef->data) || Stone_resistance) &&
|
if(!touch_petrifies(mdef->data) || Stone_resistance) {
|
||||||
(Unchanging || mdef->data != &mons[PM_GREEN_SLIME])) {
|
|
||||||
#ifdef LINT /* static char msgbuf[BUFSZ]; */
|
#ifdef LINT /* static char msgbuf[BUFSZ]; */
|
||||||
char msgbuf[BUFSZ];
|
char msgbuf[BUFSZ];
|
||||||
#else
|
#else
|
||||||
@@ -1658,6 +1657,14 @@ register struct attack *mattk;
|
|||||||
nomul(-tmp);
|
nomul(-tmp);
|
||||||
nomovemsg = msgbuf;
|
nomovemsg = msgbuf;
|
||||||
} else pline("%s", 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);
|
exercise(A_CON, TRUE);
|
||||||
}
|
}
|
||||||
end_engulf();
|
end_engulf();
|
||||||
|
|||||||
Reference in New Issue
Block a user