If you put an Aura on an opponent's permanent, you still control the Aura, and mana symbols in its mana cost count towards your devotion.

Artwork
Loading artwork…
Gray Merchant of Asphodel
Foundations Commander · #105 · EN
Nonfoil—Foil—
Card rules
When this creature enters, each opponent loses X life, where X is your devotion to black. You gain life equal to the life lost this way. (Each
in the mana costs of permanents you control counts toward your devotion to black.)
2/4
Uncommon · Illustrated by Robbie Trevino
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Colorless and generic mana symbols (
, 0, 1, 2, X, and so on) in mana costs of permanents you control don't count toward your devotion to any color.
If an activated ability or triggered ability has an effect that depends on your devotion to a color, you count the number of mana symbols of that color among the mana costs of permanents you control as the ability resolves. The permanent with that ability will be counted if it's still on the battlefield at that time.
Hybrid mana symbols, monocolored hybrid mana symbols, and Phyrexian mana symbols do count toward your devotion to their color(s).
Mana symbols in the text boxes of permanents you control don't count toward your devotion to any color.
The amount of life you gain is the total amount of life lost, not simply the value of X.