magarena/release/Magarena/scripts/City_of_Brass.groovy

18 lines
662 B
Groovy

[
new MagicWhenBecomesTappedTrigger() {
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent tapped) {
return (permanent==tapped) ?
new MagicEvent(
permanent,
this,
"SN deals 1 damage to PN."
) :
MagicEvent.NONE;
}
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicDamage damage=new MagicDamage(event.getSource(),event.getPlayer(),1);
game.doAction(new MagicDealDamageAction(damage));
}
}
]