if (obj->otyp == WAN_DIGGING) {
if(dig_check(BY_OBJECT, FALSE, x, y)) {
- if ((IS_WALL(levl[x][y].typ) || IS_DOOR(levl[x][y].typ)) &&
- *in_rooms(x,y,SHOPBASE)) shop_damage = TRUE;
+ if (IS_WALL(levl[x][y].typ) || IS_DOOR(levl[x][y].typ)) {
+ /* normally, pits and holes don't anger guards, but they
+ * do if it's a wall or door that's being dug */
+ watch_dig((struct monst *)0, x, y, TRUE);
+ if (*in_rooms(x,y,SHOPBASE)) shop_damage = TRUE;
+ }
digactualhole(x, y, BY_OBJECT,
(rn2(obj->spe) < 3 || !Can_dig_down(&u.uz)) ?
PIT : HOLE);