can monster be stabbed in the back? */
| 918 | |
| 919 | /* can monster be stabbed in the back? */ |
| 920 | staticfn boolean |
| 921 | backstabbable(struct monst *mon) |
| 922 | { |
| 923 | return !amorphous(mon->data) |
| 924 | && !is_whirly(mon->data) |
| 925 | && !noncorporeal(mon->data) |
| 926 | && mon->data->mlet != S_BLOB |
| 927 | && mon->data->mlet != S_EYE |
| 928 | && mon->data->mlet != S_FUNGUS |
| 929 | && canseemon(mon) |
| 930 | && (mon->mflee || helpless(mon)); |
| 931 | } |
| 932 | |
| 933 | staticfn void |
| 934 | hmon_hitmon_weapon_melee( |
no test coverage detected