magarena/release/Magarena/scripts/Goblin_Ruinblaster.groovy

28 lines
953 B
Groovy
Raw Normal View History

2013-05-18 04:56:15 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
2013-06-23 18:29:26 -07:00
final MagicPayedCost payedCost) {
2013-06-19 07:23:35 -07:00
return payedCost.isKicked() ?
new MagicEvent(
permanent,
MagicTargetChoice.NEG_TARGET_NONBASIC_LAND,
new MagicDestroyTargetPicker(false),
this,
2013-05-18 04:56:15 -07:00
"Destroy target nonbasic land\$."
):
MagicEvent.NONE;
}
2011-09-07 21:34:26 -07:00
@Override
2013-05-18 04:56:15 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
2011-09-07 21:34:26 -07:00
public void doAction(final MagicPermanent land) {
game.doAction(new MagicDestroyAction(land));
}
});
}
2013-05-18 04:56:15 -07:00
}
]