magarena/release/Magarena/scripts/Spiteful_Visions.groovy

21 lines
675 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
MagicAtDrawTrigger.EachPlayerDraw,
2013-04-12 19:58:51 -07:00
new MagicWhenOtherDrawnTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCard card) {
return new MagicEvent(
permanent,
2013-06-15 07:27:32 -07:00
card.getOwner(),
2013-04-12 19:58:51 -07:00
this,
2013-06-15 07:27:32 -07:00
"SN deals 1 damage to PN."
);
2013-04-12 19:58:51 -07:00
}
2013-06-23 18:29:26 -07:00
2013-04-12 19:58:51 -07:00
@Override
2013-06-15 07:01:56 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
final MagicDamage damage = new MagicDamage(event.getSource(),event.getPlayer(),1);
game.doAction(new MagicDealDamageAction(damage));
2013-06-23 18:29:26 -07:00
}
2013-04-12 19:58:51 -07:00
}
]