feedback for when a monster-vs-monster attack misses */
| 73 | |
| 74 | /* feedback for when a monster-vs-monster attack misses */ |
| 75 | staticfn void |
| 76 | missmm( |
| 77 | struct monst *magr, /* attacker */ |
| 78 | struct monst *mdef, /* defender */ |
| 79 | struct attack *mattk) /* attack and damage types */ |
| 80 | { |
| 81 | pre_mm_attack(magr, mdef); |
| 82 | |
| 83 | if (gv.vis) { |
| 84 | pline("%s %s %s.", Monnam(magr), |
| 85 | (magr->mcan || !could_seduce(magr, mdef, mattk)) ? "misses" |
| 86 | : "pretends to be friendly to", |
| 87 | mon_nam_too(mdef, magr)); |
| 88 | } else { |
| 89 | noises(magr, mattk); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | /* |
| 94 | * fightm() -- fight some other monster |
no test coverage detected