How does the terrain attack bonus promotions work?

//ads -- adsterra.com -- native banner
?>
For example, Barrage: +15% strength when attacking enemies in rough terrain like forest and hills.
The question is, does it mean: 1) I'm initiating an attack when standing on a rough terrain or 2) The enemy is standing on a rough terrain when I'm attacking it?
Google-fu doesn't bring up any result other than a comprehensive list of possible promotions, which for some reason lack explanations like the one I'm looking for
Pictures about "How does the terrain attack bonus promotions work?"



Civilization VI Consoles Tutorial - The Basics of Combat! (How Important are walls?)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Antony Trivet, Antony Trivet, Plato Terentev, Anna Shvets