......
XPX
.......
where . = floor, X = wall, P = pit. There are supposed to be monsters on the both sides of the pit. Is there a way to make the teleporter repel monsters from the both sides without transporting monsters to the other side of the pit AND at the same time allow them to stand in front of the pit? That would require (I think) having the teleporter on the pit-square, but that works properly if the monsters are swarming only on the other side. How can I teleport northern hordes to north and southern hordes to south?
Or do I just have to redesign this part of the dungeon

EDIT: Currently I have a system of two teleporters on the north and the south side of the pit which teleports monsters away from the vicinity of the pit, however I'd imagine that looks silly when the valiant party gazes with fear at the demons "God they are coming to get us! This is the end!" and when the demon steps nearer it makes a small quantum leap to another square
