check whether hero is bare-handedly touching a cockatrice corpse */
| 282 | |
| 283 | /* check whether hero is bare-handedly touching a cockatrice corpse */ |
| 284 | staticfn boolean |
| 285 | fatal_corpse_mistake(struct obj *obj, boolean remotely) |
| 286 | { |
| 287 | if (u_safe_from_fatal_corpse(obj, st_all) || remotely) |
| 288 | return FALSE; |
| 289 | |
| 290 | if (poly_when_stoned(gy.youmonst.data) && polymon(PM_STONE_GOLEM)) { |
| 291 | display_nhwindow(WIN_MESSAGE, FALSE); /* --More-- */ |
| 292 | return FALSE; |
| 293 | } |
| 294 | |
| 295 | pline("Touching %s is a fatal mistake.", |
| 296 | corpse_xname(obj, (const char *) 0, CXN_SINGULAR | CXN_ARTICLE)); |
| 297 | instapetrify(killer_xname(obj)); |
| 298 | return TRUE; |
| 299 | } |
| 300 | |
| 301 | /* attempting to manipulate a Rider's corpse triggers its revival */ |
| 302 | boolean |
no test coverage detected