Each hero has 4 specialty slots. Different attribute bonuses can be gained from different specialties. A hero's attributes directly influence unit power.