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.
This commit is contained in:
Michael Meyer
2023-11-21 12:52:26 -05:00
committed by PatR
parent 6d29efcf04
commit 10a1befcf9

View File

@@ -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);