From 0bf4bea6ecdf798bfefd0a7cc97f51c1e747f939 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 14 Aug 2021 13:33:04 +0300 Subject: [PATCH] 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. --- src/zap.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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) -- 2.50.1