28 lines
956 B
Groovy
28 lines
956 B
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(
|
|
final MagicGame game,
|
|
final MagicPermanent permanent,
|
|
final MagicPayedCost payedCost) {
|
|
return payedCost.isKicked() ?
|
|
new MagicEvent(
|
|
permanent,
|
|
MagicTargetChoice.NEG_TARGET_NONBASIC_LAND,
|
|
new MagicDestroyTargetPicker(false),
|
|
this,
|
|
"Destroy target nonbasic land\$."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent land) {
|
|
game.doAction(new MagicDestroyAction(land));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|