Code: Select all
[card]
name=Caltrops
auto=@each blockers:damage:1 all(creature[attacking])
text=Whenever a creature attacks, Caltrops deals 1 damage to it.
mana={3}
type=Artifact
[/card]
Only problem I found is that the AI is dumb and attacks even when it's clearly pointless/suicidal, but that's more of a problem with the AI, and something that it does with lots of other cards, too.