From 134363cead8dc0ca59f699028af6cbcc0530e81e Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 29 May 2022 09:42:25 +0300 Subject: [PATCH] Fire trap on ice can indirectly kill a monster via drowning Make the trap routine claim the trap killed the monster even though it was drowning that did it, otherwise callers cannot rely on the trap routine return value. --- src/trap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/trap.c b/src/trap.c index 6f46d6942..00ff3e17e 100644 --- a/src/trap.c +++ b/src/trap.c @@ -1533,6 +1533,8 @@ trapeffect_fire_trap( You("smell smoke."); if (is_ice(tx, ty)) melt_ice(tx, ty, (char *) 0); + if (DEADMONSTER(mtmp)) + trapkilled = TRUE; if (see_it && t_at(tx, ty)) seetrap(t_at(tx, ty));