1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-07 21:25:26 +01:00

Merge pull request #1706 from NeroOneTrueKing/patch-vision-disn-fix

Fix disintegration blasts unblocking vision on undug tiles
This commit is contained in:
Chris-plus-alphanumericgibberish 2021-09-05 23:19:31 -04:00 committed by GitHub
commit ff74fa15e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3968,19 +3968,21 @@ struct zapdata * zapdata; /* lots of flags and data about the zap */
lev->doormask = D_NODOOR;
}
range -= 2;
unblock_point(sx, sy);
}
else if (IS_TREE(lev->typ)) {
lev->typ = ROOM;
if (youagr && u.sealsActive&SEAL_EDEN) unbind(SEAL_EDEN, TRUE);
range -= 1;
unblock_point(sx, sy);
}
else { /* IS_ROCK but not IS_WALL */
lev->typ = CORR;
range -= 3;
unblock_point(sx, sy);
}
/* vision */
vision_full_recalc = TRUE;
unblock_point(sx, sy);
}
if (shopdoor || shopwall)
pay_for_damage(shopdoor ? "destroy" : "dig into", FALSE);