When attacking a castle: Towers do not fire.
When defending a castle: The number of shots from ranged towers depends on the level of the "Ballistics" skill.
Without the skill - 2 shots.
Basic Ballistics - 3 shots.
Advanced Ballistics - 4 shots.
Expert Ballistics - 5 shots.