I believe there is also a condition that there must be an enemy in melee range to attack...if no, then try running up to one if you have movement.