Skip to content

Commit

Permalink
Teleport-control monsters resist being teleported
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
entrez authored and PatR committed Jan 11, 2024
1 parent 6d29efc commit 10a1bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/teleport.c
Expand Up @@ -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);
Expand Down

0 comments on commit 10a1bef

Please sign in to comment.