From: Pasi Kallinen Date: Sat, 14 Aug 2021 10:33:04 +0000 (+0300) Subject: Fix eels hiding when a pool boiled off X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bf4bea6ecdf798bfefd0a7cc97f51c1e747f939;p=nethack 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. --- diff --git a/src/zap.c b/src/zap.c index 06aec2901..0bf4d06db 100644 --- a/src/zap.c +++ b/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)