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.
This commit is contained in:
Pasi Kallinen
2022-05-29 09:42:25 +03:00
parent 361e6a924a
commit 134363cead

View File

@@ -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));