MCPcopy Create free account
hub / github.com/NetHack/NetHack / backstabbable

Function backstabbable

src/uhitm.c:920–931  ·  view source on GitHub ↗

can monster be stabbed in the back? */

Source from the content-addressed store, hash-verified

918
919/* can monster be stabbed in the back? */
920staticfn boolean
921backstabbable(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
933staticfn void
934hmon_hitmon_weapon_melee(

Callers 1

hmon_hitmon_weapon_meleeFunction · 0.85

Calls 1

canseemonFunction · 0.85

Tested by

no test coverage detected