the halberdiers took the brunt of the attack , the shafts of their spears buried deep within the first line of the onslaught , but even as the best spearmen swung their enemies to the ground in time to take the second rank , a smaller force took their flank and they were forced back , their reach disabled .