From: Pasi Kallinen Date: Sat, 8 Oct 2016 09:47:27 +0000 (+0300) Subject: Make kicking activate statue trap X-Git-Tag: NetHack-3.6.1_RC01~581 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbe1da0bec231bd06ea75d932f90e31288c04973;p=nethack Make kicking activate statue trap Change via dNetHack --- diff --git a/src/dokick.c b/src/dokick.c index 4737a27a0..f1e0dcddf 100644 --- a/src/dokick.c +++ b/src/dokick.c @@ -497,15 +497,20 @@ xchar x, y; || kickedobj == uchain) return 0; - if ((trap = t_at(x, y)) != 0 - && (((trap->ttyp == PIT || trap->ttyp == SPIKED_PIT) && !Passes_walls) - || trap->ttyp == WEB)) { - if (!trap->tseen) - find_trap(trap); - You_cant("kick %s that's in a %s!", something, - Hallucination ? "tizzy" : (trap->ttyp == WEB) ? "web" - : "pit"); - return 1; + if ((trap = t_at(x, y)) != 0) { + if (((trap->ttyp == PIT || trap->ttyp == SPIKED_PIT) && !Passes_walls) + || trap->ttyp == WEB) { + if (!trap->tseen) + find_trap(trap); + You_cant("kick %s that's in a %s!", something, + Hallucination ? "tizzy" : + (trap->ttyp == WEB) ? "web" : "pit"); + return 1; + } + if (trap->ttyp == STATUE_TRAP) { + activate_statue_trap(trap, x,y, FALSE); + return 1; + } } if (Fumbling && !rn2(3)) {