| 3894 | } |
| 3895 | |
| 3896 | void |
| 3897 | mhitm_ad_halu( |
| 3898 | struct monst *magr, |
| 3899 | struct attack *mattk UNUSED, |
| 3900 | struct monst *mdef, struct mhitm_data *mhm) |
| 3901 | { |
| 3902 | struct permonst *pd = mdef->data; |
| 3903 | |
| 3904 | if (magr == &gy.youmonst) { |
| 3905 | /* uhitm */ |
| 3906 | mhm->damage = 0; |
| 3907 | } else if (mdef == &gy.youmonst) { |
| 3908 | /* mhitu */ |
| 3909 | mhm->damage = 0; |
| 3910 | } else { |
| 3911 | /* mhitm */ |
| 3912 | if (!magr->mcan && haseyes(pd) && mdef->mcansee) { |
| 3913 | if (gv.vis && canseemon(mdef)) |
| 3914 | pline_mon(mdef, "%s looks %sconfused.", Monnam(mdef), |
| 3915 | mdef->mconf ? "more " : ""); |
| 3916 | mdef->mconf = 1; |
| 3917 | mdef->mstrategy &= ~STRAT_WAITFORU; |
| 3918 | } |
| 3919 | mhm->damage = 0; |
| 3920 | } |
| 3921 | } |
| 3922 | |
| 3923 | boolean |
| 3924 | do_stone_u(struct monst *mtmp) |
no test coverage detected