Fix eels hiding when a pool boiled off
Sanity check caught an eel hiding on floor; this was caused by an exploding flaming sphere boiling off the pool the eel was hiding in. The freezing water case was already handled, so add the same, rather lackluster handling, to the fire case.
This commit is contained in:
11
src/zap.c
11
src/zap.c
@@ -4592,8 +4592,17 @@ zap_over_floor(xchar x, xchar y, int type, boolean *shopdamage,
|
||||
}
|
||||
if (msgtxt)
|
||||
Norep("%s", msgtxt);
|
||||
if (lev->typ == ROOM)
|
||||
if (lev->typ == ROOM) {
|
||||
if ((mon = m_at(x, y)) != 0) {
|
||||
/* probably ought to do some hefty damage to any
|
||||
creature caught in boiling water;
|
||||
at a minimum, eels are forced out of hiding */
|
||||
if (is_swimmer(mon->data) && mon->mundetected) {
|
||||
mon->mundetected = 0;
|
||||
}
|
||||
}
|
||||
newsym(x, y);
|
||||
}
|
||||
} else if (IS_FOUNTAIN(lev->typ)) {
|
||||
create_gas_cloud(x, y, rnd(2), 0); /* radius 1..2, no damage */
|
||||
if (see_it)
|
||||
|
||||
Reference in New Issue
Block a user