From 9bb09d48f1e1c4a4590c8c447a5fd77c0e9d1d6a Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Wed, 21 Sep 2022 19:44:27 -0400 Subject: [PATCH] Have monsters' hole destination match the hero's The fixed destination of a hole or trap door was being used for the hero but not for monsters. Make everyone land in the same place, so you can chase a monster into a hole and actually find it. --- src/teleport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/teleport.c b/src/teleport.c index e0657a29d..8d35e7f90 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -1539,7 +1539,7 @@ mlevel_tele_trap( (tt == HOLE) ? "hole" : "trap"); return Trap_Effect_Finished; } else { - get_level(&tolevel, depth(&u.uz) + 1); + assign_level(&tolevel, &trap->dst); } } else if (tt == MAGIC_PORTAL) { if (In_endgame(&u.uz) && (mon_has_amulet(mtmp)