If either target is an illegal target as Horrific Assault tries to resolve, the creature you control won't deal damage. As long as either target is still legal and you control an Eldrazi, you'll still gain 3 life.

Artwork
Loading artwork…
Horrific Assault
Modern Horizons 3 · #157 · EN
Nonfoil—Foil—
Card rules
Target creature you control deals damage equal to its power to target creature or planeswalker you don't control. If you control an Eldrazi, you gain 3 life.
With shifting forms and no angel to pray to, Innistrad's werewolves were especially susceptible to Emrakul's influence.
Common · Illustrated by Justine Jones
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
Penny Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School 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