29 lines
1.1 KiB
Groovy
29 lines
1.1 KiB
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
MagicTargetChoice.NEG_TARGET_LAND,
|
|
MagicDestroyTargetPicker.Destroy,
|
|
this,
|
|
"Destroy target land\$. " +
|
|
"If that land was nonbasic, SN deals 2 damage to the land's controller."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent permanent) {
|
|
game.doAction(new MagicDestroyAction(permanent));
|
|
if (!permanent.isBasic()) {
|
|
final MagicDamage damage = new MagicDamage(event.getSource(),permanent.getController(),2);
|
|
game.doAction(new MagicDealDamageAction(damage));
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|