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.
This commit is contained in:
Michael Meyer
2022-09-22 11:36:48 +03:00
committed by Pasi Kallinen
parent f8ec9dc32e
commit 9bb09d48f1
+1 -1
View File
@@ -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)