From: Pasi Kallinen Date: Wed, 23 Feb 2022 16:59:57 +0000 (+0200) Subject: Hurtling monster always triggers a trap X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ad1e7e620c08b4902c0a189c341febc1761eb4a;p=nethack Hurtling monster always triggers a trap --- diff --git a/src/dothrow.c b/src/dothrow.c index dcd80ef55..fa42311be 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -929,7 +929,9 @@ mhurtle_step(genericptr_t arg, int x, int y) place_monster(mon, x, y); newsym(mon->mx, mon->my); set_apparxy(mon); + g.force_mintrap = TRUE; res = mintrap(mon); + g.force_mintrap = FALSE; if (res == Trap_Killed_Mon || res == Trap_Caught_Mon) return FALSE; return TRUE;