Cemetery Gatekeeper 

Creature — Vampire
First strike
When this creature enters, exile a card from a graveyard.
Whenever a player plays a land or casts a spell, if it shares a card type with the exiled card, this creature deals 2 damage to that player.
click a line to search just that ability, click more to combine them
Cards that do something similar expected a card that isn't here?
Reports become test cases the matcher is graded against before an update ships. Delvefall isn't a chatbot guessing, it compares the printed rules text of every card with plain math, and examples like yours decide which differences should count.