find the worn amulet of life saving which will save a monster */
| 2824 | |
| 2825 | /* find the worn amulet of life saving which will save a monster */ |
| 2826 | struct obj * |
| 2827 | mlifesaver(struct monst *mon) |
| 2828 | { |
| 2829 | if (!nonliving(mon->data) || is_vampshifter(mon)) { |
| 2830 | struct obj *otmp = which_armor(mon, W_AMUL); |
| 2831 | |
| 2832 | if (otmp && otmp->otyp == AMULET_OF_LIFE_SAVING) |
| 2833 | return otmp; |
| 2834 | } |
| 2835 | return (struct obj *) 0; |
| 2836 | } |
| 2837 | |
| 2838 | staticfn void |
| 2839 | lifesaved_monster(struct monst *mtmp) |
no test coverage detected