magarena/release/Magarena/scripts/City_of_Brass.groovy

18 lines
662 B
Groovy
Raw Normal View History

2013-03-13 22:29:17 -07:00
[
new MagicWhenBecomesTappedTrigger() {
2013-01-29 00:15:58 -08:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent tapped) {
return (permanent==tapped) ?
new MagicEvent(
permanent,
this,
2012-10-27 01:44:56 -07:00
"SN deals 1 damage to PN."
) :
MagicEvent.NONE;
2013-01-29 00:15:58 -08:00
}
2013-06-15 06:13:32 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicDamage damage=new MagicDamage(event.getSource(),event.getPlayer(),1);
2013-01-29 00:15:58 -08:00
game.doAction(new MagicDealDamageAction(damage));
}
2013-03-13 22:29:17 -07:00
}
]