Apply dest. limit to monster trap door usage

To prevent monsters from falling past the bottom level or into the
sanctum early, and to maintain consistency between monster and hero hole
usage.
This commit is contained in:
Michael Meyer
2022-09-22 11:36:48 +03:00
committed by Pasi Kallinen
parent 9f5b362601
commit 81285b661e
3 changed files with 19 additions and 8 deletions
+1
View File
@@ -1540,6 +1540,7 @@ mlevel_tele_trap(
return Trap_Effect_Finished;
} else {
assign_level(&tolevel, &trap->dst);
(void) clamp_hole_destination(&tolevel);
}
} else if (tt == MAGIC_PORTAL) {
if (In_endgame(&u.uz) && (mon_has_amulet(mtmp)