prevent change of direction on enemy's castles.
Merge branch 'prevent-change-of-directions'