When casting spells without autocast your player will always move next to the player you casted a spell on.
Created by: Gptaqbc
Pretty annoying to deal with.
Note: This doesn't happens when autocasting with a staff. So most likely there is a way to fix it in the autocasting code.