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:
committed by
Pasi Kallinen
parent
9f5b362601
commit
81285b661e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user