there shouldn't be an auto attack as far as i noticed, but i may be that u at some point before your battle hit the attack botton on the map when u had checked that dude out, your char will then continue that command (also works with moving/entering) once the battle is done.