The ability triggers even if the Specter’s damage is being redirected to an opponent. It does not trigger if damage that would have been dealt to the opponent is redirected to a nonopponent player or a creature, or if the damage is prevented.

Artwork
Loading artwork…
Hypnotic Specter
30th Anniversary Edition · #406 · EN
Nonfoil—Foil—
Card rules
Flying
Whenever this creature deals damage to an opponent, that player discards a card at random.
2/2
"...There was no trace/ Of aught on that illumined face..." —Samuel Coleridge, "Phantom"
Uncommon · Illustrated by Douglas Shuler
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Premodern 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
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions