Fix vision when xorn digs down on a wall

A xorn inside a wall using a wand of digging to dig down, the vision
was still blocked at that location.
This commit is contained in:
Pasi Kallinen
2025-01-06 20:11:32 +02:00
parent 4392f5fa4e
commit 274b15cd77

View File

@@ -931,11 +931,13 @@ use_defensive(struct monst *mtmp)
surface(mtmp->mx, mtmp->my));
}
fill_pit(mtmp->mx, mtmp->my);
recalc_block_point(mtmp->mx, mtmp->my);
return (mintrap(mtmp, FORCEBUNGLE) == Trap_Killed_Mon) ? 1 : 2;
}
t = maketrap(mtmp->mx, mtmp->my, HOLE);
if (!t)
return 2;
recalc_block_point(mtmp->mx, mtmp->my);
seetrap(t);
if (vis) {
pline_mon(mtmp, "%s has made a hole in the %s.", Monnam(mtmp),