ungrab/expel held/swallowed hero */
| 359 | |
| 360 | /* ungrab/expel held/swallowed hero */ |
| 361 | staticfn void |
| 362 | release_hero(struct monst *mon) |
| 363 | { |
| 364 | if (mon == u.ustuck) { |
| 365 | if (u.uswallow) { |
| 366 | expels(mon, mon->data, TRUE); |
| 367 | } else if (!sticks(gy.youmonst.data)) { |
| 368 | unstuck(mon); /* let go */ |
| 369 | You("get released!"); |
| 370 | } |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | struct monst * |
| 375 | find_pmmonst(int pm) |