The second ability triggers only once per spell. If the spell shares both a color and a mana value with the imprinted card, Thought Prison deals 2 damage, not 4.

Artwork
Loading artwork…
Thought Prison
Mirrodin · #261 · EN
Nonfoil—Foil—
Card rules
Imprint — When this artifact enters, you may have target player reveal their hand. If you do, choose a nonland card from it and exile that card.
Whenever a player casts a spell that shares a color or mana value with the exiled card, this artifact deals 2 damage to that player.
Uncommon · Illustrated by Glen Angus
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker 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
Penny 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