Hello thanks for playing and congrats on beating Very Hard! :D
Good eye! Yes I had to come up with a way to prevent exploiting the magical books guarded by evil doors so in my version you’re not able to teleport into the room from any direction. The original game also prevented this.
Also in general you can’t also teleport if there is an enemy on the other side of the wall.