Well, locking their position would stop it from changing directions. But I don't want the spell to lock players for ~5 seconds.
All my combat areas look like this:
{
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 2, 0, 0, 0}...