Fix breaking wand of digging not touching boulders

Applying a wand of digging skipped all the affected locations
with any boulders on them.
This commit is contained in:
Pasi Kallinen
2024-12-29 18:17:57 +02:00
parent 6c895ab6f6
commit 1282863f5c
+2 -1
View File
@@ -3991,8 +3991,9 @@ do_break_wand(struct obj *obj)
if (obj->otyp == WAN_DIGGING) { if (obj->otyp == WAN_DIGGING) {
schar typ; 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)) { if (IS_WALL(levl[x][y].typ) || IS_DOOR(levl[x][y].typ)) {
/* normally, pits and holes don't anger guards, but they /* normally, pits and holes don't anger guards, but they
* do if it's a wall or door that's being dug */ * do if it's a wall or door that's being dug */