When you use a step attack and land in a square adjacent to an ally, but there are no enemies adjacent, the game forces you to attack the adjacent ally. Usually when you move and there are no characters next to you at the end of that step there will be a "Done" button in the corner. However, if an ally is adjacent at the end of your step there is no "done" button, thus forcing you to attack your ally. Perhaps I am missing something, or perhaps this is part of the game design, but it seems buggy to me.
If you do a search on this one you should find several explanations. I think just about all of us thought it was a bug when we first started. Rest assured it is working as intended, now you just need to get used to it
I'd like to take the opportunity to introduce: http://www.cardhunter.com/forum/threads/frequently-asked-questions.2160/