| 990 | } |
| 991 | |
| 992 | staticfn boolean |
| 993 | bane_applies(const struct artifact *oart, struct monst *mon) |
| 994 | { |
| 995 | struct artifact atmp; |
| 996 | |
| 997 | if (oart != &artilist[ART_NONARTIFACT] |
| 998 | && (oart->spfx & SPFX_DBONUS) != 0) { |
| 999 | atmp = *oart; |
| 1000 | atmp.spfx &= SPFX_DBONUS; /* clear other spfx fields */ |
| 1001 | if (spec_applies(&atmp, mon)) |
| 1002 | return TRUE; |
| 1003 | } |
| 1004 | return FALSE; |
| 1005 | } |
| 1006 | |
| 1007 | /* decide whether an artifact's special attacks apply against mtmp */ |
| 1008 | staticfn int |
no test coverage detected