You divide the damage among the target creatures as you cast Monstrous Onslaught. Each target must be assigned at least 1 damage.

Artwork
Loading artwork…
Monstrous Onslaught
Foundations Commander · #217 · EN
Nonfoil—Foil—
Card rules
Monstrous Onslaught deals X damage divided as you choose among any number of target creatures, where X is the greatest power among creatures you control as you cast this spell.
"Regards from Peema." —Rishkar
Uncommon · Illustrated by Slawomir Maniak
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander 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
The value of X is determined at the time you divide damage. It won't change later, even if the greatest power among creatures you control changes.
If some of the targets become illegal, the original division of damage still applies. The damage that was divided among the illegal targets simply isn't dealt; it isn't re-assigned to remaining legal targets.
The damage is dealt by Monstrous Onslaught, not by the creature with the greatest power among creatures you control.