Fight with a Combat-Trained Mount: If you direct your war-trained mount to attack in battle, you can still make your own attack or attacks normally. This usage is a free action.
You've directed your mount to attack, so it does. If you succeed at the check, you can attack as well. If you failed, then apparently your mount got in your way.