Amulet of Vigor
Posted: 22 Jan 2010, 05:22
I was reading the spoiler for Worldwake's Amulet of Vigor today (http://www.wizards.com/Magic/Magazine/Article.aspx?x=mtg/daily/ftl/74) and I realized it was a good test to see if comes-into-play replacement effects interacted properly with triggered abilities. So I implemented the card without any special changes, and lo and behold it works as specified. So this is a little mini-throwdown to the other rules engines out there - could you implement this card without any special cases and have it work correctly in your engines? In case you were wondering, this is how it looks in Incantus:
- Code: Select all
name = 'Amulet of Vigor'
cost = '1'
types = Artifact
text = ['Whenever a permanent enters the battlefield tapped and under your control, untap it']
#################################
@triggered(EnterTrigger("battlefield"), txt=text[0])
def ability():
# condition
def condition(source, card):
return card.tapped and card.controller == source.controller
# effects
def effects(controller, source, card):
target = yield NoTarget()
# Code for effect
card.untap()
yield
return condition, effects
abilities.add(ability)