used so that callers don't need to known about SPFX_ codes */
| 523 | |
| 524 | /* used so that callers don't need to known about SPFX_ codes */ |
| 525 | boolean |
| 526 | confers_luck(struct obj *obj) |
| 527 | { |
| 528 | /* might as well check for this too */ |
| 529 | if (obj->otyp == LUCKSTONE) |
| 530 | return TRUE; |
| 531 | |
| 532 | return (boolean) (obj->oartifact && spec_ability(obj, SPFX_LUCK)); |
| 533 | } |
| 534 | |
| 535 | /* used to check whether a monster is getting reflection from an artifact */ |
| 536 | boolean |
no test coverage detected