In online battles this would never, ever be a problem because a human player wouldn't sit infront of a house with cavalry getting shot to death. He'd use infantry, or arty, or maybe even fake the infantry unit into shooting at him at range and wasting its ammo.
Do you know another exploit for defeating cavalry? Pikemen in pike wall. Also square formation with bayonets. Also I hear that shooting them works well to.
Bookmarks