If the targeted creature is an illegal target by the time the ability resolves, the ability doesn't resolve. Drana won't get the bonus.

Artwork
Loading artwork…
Drana, Kalastria Bloodchief
The List · #C17-112 · EN
Nonfoil—Foil—
Card rules
Flying
X
: Target creature gets -0/-X until end of turn and Drana gets +X/+0 until end of turn.
4/4
"If our former masters would have us kneel again, they shall feel our defiance slashed across their membranes."
Rare · Illustrated by Mike Bierek
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH 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
Pauper Not Legal
Pauper Commander Not Legal
Pioneer 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
The value of X may exceed the targeted creature's toughness. Drana's bonus is based on the value of X, regardless of what the targeted creature's toughness was.
You may target Drana itself with its ability. For example, if you do and X is 3, Drana will become 7/1 until end of turn.