If an effect creates a copy of Pyrotechnics, the number of targets and division of damage can’t be changed. The effect that creates the copy may allow you to change the targets, however.

Artwork
Loading artwork…
Pyrotechnics
The List · #FRF-111 · EN
Nonfoil—Foil—
Card rules
Pyrotechnics deals 4 damage divided as you choose among any number of targets.
"Take inspiration from your enemies, and make their strengths your own." —Alesha, Who Smiles at Death
Uncommon · Illustrated by Matt Stewart
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School 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
You choose how the damage is divided as you cast the spell, not as it resolves. Each target must be assigned at least 1 damage.
If some but not all of Pyrotechnics’s targets become illegal, you can’t change the division of damage. Damage that would have been dealt to illegal targets simply isn’t dealt.