magarena/release/Magarena/scripts/Chronozoa.groovy

23 lines
769 B
Groovy
Raw Normal View History

2013-05-17 21:10:53 -07:00
[
new MagicWhenDiesTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicMoveCardAction data) {
return permanent.getCounters(MagicCounterType.Charge) == 0 ?
2013-04-12 19:32:25 -07:00
new MagicEvent(
permanent,
this,
2013-05-17 21:10:53 -07:00
"PN puts two tokens that are copies of SN onto the battlefield."
) :
2013-04-12 19:32:25 -07:00
MagicEvent.NONE;
}
@Override
2013-05-17 21:10:53 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:32:25 -07:00
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
event.getPermanent(),
2013-04-12 19:32:25 -07:00
2
));
}
2013-05-17 21:10:53 -07:00
}
]