| 212 | } |
| 213 | |
| 214 | staticfn struct monst * |
| 215 | next_shkp(struct monst *shkp, boolean withbill) |
| 216 | { |
| 217 | for (; shkp; shkp = shkp->nmon) { |
| 218 | if (DEADMONSTER(shkp)) |
| 219 | continue; |
| 220 | if (shkp->isshk && (ESHK(shkp)->billct || !withbill)) |
| 221 | break; |
| 222 | } |
| 223 | |
| 224 | if (shkp) { |
| 225 | if (ANGRY(shkp)) { |
| 226 | if (!ESHK(shkp)->surcharge) |
| 227 | rile_shk(shkp); |
| 228 | } |
| 229 | } |
| 230 | return shkp; |
| 231 | } |
| 232 | |
| 233 | /* called in mon.c */ |
| 234 | void |
no test coverage detected