Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since all non-wall spells can be cast with three modes (lock onto monster, lock onto player, lock onto tile), this creates a predicament with the one spell that changes player position. If the player casting Teleport casts locked onto a non-tile target, if that target's position is not synced between all clients at the time the casting animation completes, the Teleporting player will land next to the target and have a desynced position on all other clients until the game is able to correct it. This can result in a "warping" effect where the Teleported player is snapped to a new location after the correction occurs.
Regardless if desync is a factor or not, I get the impression that Teleport locking onto entities is just a result of how spells work, rather than intent, given that any spell being cast with an entity selected will lock the destination to that entity. It seems more intuitive to me that the Teleport spell would send you to the position your mouse is over, rather than locking on to something. This seems quite absurd behavior when for example, you cast a Teleport on a Teleporting player and their Teleport completes first and your Teleport is redirected to wherever this player lands.