Cancellation explodes magical traps

This commit is contained in:
Pasi Kallinen
2022-01-28 08:30:08 +02:00
parent a6a7af368f
commit c722962713
9 changed files with 52 additions and 10 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ put_lregion_here(
It might still fail if there's a dungeon feature here. */
struct trap *t = t_at(x, y);
if (t && t->ttyp != MAGIC_PORTAL && t->ttyp != VIBRATING_SQUARE)
if (t && !undestroyable_trap(t->ttyp))
deltrap(t);
if (bad_location(x, y, nlx, nly, nhx, nhy))
return FALSE;