EQUIPMENT WITH TROOP PERKS

Do troop perks like in the screenshot apply to defending troops or just attacking troops?

Offense only