If you cast a spell that targets Legolas, Master Archer and at least one creature you don't control, both of Legolas, Master Archer's abilities will trigger. You choose the order in which those triggers go on the stack.

Artwork
Loading artwork…
Legolas, Master Archer
The Lord of the Rings: Tales of Middle-earth · #173 · EN
Nonfoil—Foil—
Card rules
Reach
Whenever you cast a spell that targets Legolas, put a +1/+1 counter on Legolas.
Whenever you cast a spell that targets a creature you don't control, Legolas deals damage equal to its power to up to one target creature.
1/4
Rare · Illustrated by Campbell White
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Legolas, Master Archer's last ability triggers when you cast a spell that has multiple targets as long as at least one of those targets is a creature you don't control. It doesn't trigger multiple times if you cast a spell that targets a creature you don't control multiple times or that targets multiple creatures you don't control.
Legolas, Master Archer's triggered abilities resolve before the spells that caused them to trigger. They resolve even if those spells are countered.