If your commander is under the control of another player as Cloudkill resolves, it is still on the battlefield and will still be used to determine the value of X.

Artwork
Loading artwork…
Cloudkill
The List · #CLB-121 · EN
Nonfoil—Foil—
Card rules
All creatures get -X/-X until end of turn, where X is the greatest mana value of a commander you own on the battlefield or in the command zone.
As the acrid fumes drifted through the Lower City, even the vermin ceased to stir.
Uncommon · Illustrated by David Szabo
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions