spear-armed troops continued to be important elements in many armies until the advent of reliable firearms, but did not necessarily fight in the manner of a phalanx. a meaningful comparison can be made between the classical phalanx and late medieval pike formations.