| 491 | } |
| 492 | |
| 493 | void |
| 494 | aggravate(void) |
| 495 | { |
| 496 | struct monst *mtmp; |
| 497 | boolean in_w_tower = In_W_tower(u.ux, u.uy, &u.uz); |
| 498 | |
| 499 | for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { |
| 500 | if (DEADMONSTER(mtmp)) |
| 501 | continue; |
| 502 | if (in_w_tower != In_W_tower(mtmp->mx, mtmp->my, &u.uz)) |
| 503 | continue; |
| 504 | mtmp->mstrategy &= ~(STRAT_WAITFORU | STRAT_APPEARMSG); |
| 505 | mtmp->msleeping = 0; |
| 506 | if (!mtmp->mcanmove && !rn2(5)) { |
| 507 | mtmp->mfrozen = 0; |
| 508 | mtmp->mcanmove = 1; |
| 509 | } |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | /* "Double Trouble" spell cast by the Wizard; caller is responsible for |
| 514 | only casting this when there is currently one wizard in existence; |
no test coverage detected