MCPcopy Create free account
hub / github.com/NetHack/NetHack / trapeffect_statue_trap

Function trapeffect_statue_trap

src/trap.c:2278–2290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2276}
2277
2278staticfn int
2279trapeffect_statue_trap(
2280 struct monst *mtmp,
2281 struct trap *trap,
2282 unsigned int trflags UNUSED)
2283{
2284 if (mtmp == &gy.youmonst) {
2285 (void) activate_statue_trap(trap, u.ux, u.uy, FALSE);
2286 } else {
2287 /* monsters don't trigger statue traps */
2288 }
2289 return Trap_Effect_Finished;
2290}
2291
2292staticfn int
2293trapeffect_magic_trap(

Callers 1

trapeffect_selectorFunction · 0.85

Calls 1

activate_statue_trapFunction · 0.85

Tested by

no test coverage detected