vortexes and unsolid monsters need not avoid webs
Based on a bug report from beta testers in 2010. mintrap() already had partial checks for this (now fire vortex also burns a web, as per suggestion in the bug report) but mfndpos() lacked checks so mintrap() code was almost never exercised.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 trap.c $NHDT-Date: 1452919834 2016/01/16 04:50:34 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.259 $ */
|
||||
/* NetHack 3.6 trap.c $NHDT-Date: 1454528963 2016/02/03 19:49:23 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.261 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -2412,10 +2412,12 @@ register struct monst *mtmp;
|
||||
break;
|
||||
if (amorphous(mptr) || is_whirly(mptr) || unsolid(mptr)) {
|
||||
if (acidic(mptr) || mptr == &mons[PM_GELATINOUS_CUBE]
|
||||
|| mptr == &mons[PM_FIRE_ELEMENTAL]) {
|
||||
|| mptr == &mons[PM_FIRE_ELEMENTAL]
|
||||
|| mptr == &mons[PM_FIRE_VORTEX]) {
|
||||
if (in_sight)
|
||||
pline("%s %s %s spider web!", Monnam(mtmp),
|
||||
(mptr == &mons[PM_FIRE_ELEMENTAL])
|
||||
(mptr == &mons[PM_FIRE_ELEMENTAL]
|
||||
|| mptr == &mons[PM_FIRE_VORTEX])
|
||||
? "burns"
|
||||
: "dissolves",
|
||||
a_your[trap->madeby_u]);
|
||||
|
||||
Reference in New Issue
Block a user