mtmp is about to die, or become untame */
| 723 | |
| 724 | /* mtmp is about to die, or become untame */ |
| 725 | void |
| 726 | m_unleash(struct monst *mtmp, boolean feedback) |
| 727 | { |
| 728 | struct obj *otmp; |
| 729 | |
| 730 | if (feedback) { |
| 731 | if (canseemon(mtmp)) |
| 732 | pline_mon(mtmp, "%s pulls free of %s leash!", |
| 733 | Monnam(mtmp), mhis(mtmp)); |
| 734 | else |
| 735 | Your("leash falls slack."); |
| 736 | } |
| 737 | if ((otmp = get_mleash(mtmp)) != 0) { |
| 738 | otmp->leashmon = 0; |
| 739 | update_inventory(); |
| 740 | } |
| 741 | mtmp->mleashed = 0; |
| 742 | } |
| 743 | |
| 744 | /* player is about to die (for bones) */ |
| 745 | void |
no test coverage detected