From 1282863f5cf35184a0c7ed42930e565829fba549 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 29 Dec 2024 18:17:53 +0200 Subject: [PATCH] Fix breaking wand of digging not touching boulders Applying a wand of digging skipped all the affected locations with any boulders on them. --- src/apply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apply.c b/src/apply.c index 2446f2ed8..60384c3aa 100644 --- a/src/apply.c +++ b/src/apply.c @@ -3991,8 +3991,9 @@ do_break_wand(struct obj *obj) if (obj->otyp == WAN_DIGGING) { schar typ; + enum digcheck_result dcres = dig_check(BY_OBJECT, x, y); - if (dig_check(BY_OBJECT, x, y) < DIGCHECK_FAILED) { + if (dcres < DIGCHECK_FAILED || dcres == DIGCHECK_FAIL_BOULDER) { 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 */