From 10a1befcf9eee8bc2debfd656e680fffde22b339 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Tue, 21 Nov 2023 12:52:26 -0500 Subject: [PATCH] Teleport-control monsters resist being teleported This makes sense to me, and further increases the challenge of erinyes being summoned on astral after donning a helm of opposite alignment (if the player has abused his alignment to the extent that erinyes have teleport control), since they wouldn't be able to be banished across the map simply by breaking a wand of teleport control. --- src/teleport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/teleport.c b/src/teleport.c index 628231319..fad0403da 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -2151,8 +2151,8 @@ u_teleport_mon(struct monst* mtmp, boolean give_feedback) You("are no longer inside %s!", mon_nam(mtmp)); unstuck(mtmp); (void) rloc(mtmp, RLOC_MSG); - } else if (is_rider(mtmp->data) && rn2(13) - && enexto(&cc, u.ux, u.uy, mtmp->data)) + } else if ((is_rider(mtmp->data) || control_teleport(mtmp->data)) + && rn2(13) && enexto(&cc, u.ux, u.uy, mtmp->data)) rloc_to(mtmp, cc.x, cc.y); else (void) rloc(mtmp, RLOC_MSG);