Absolutely. As long as your troops are in formation with their spears down and the chariots are coming at them head on, they will slaughter the chariots. They will never get past your spearpoints. If the chariots hit you from the back or side, or if you drop your spears and pull out swords, then it is a different story.
Bookmarks