magarena/release/Magarena/scripts/Shattering_Spree.groovy

30 lines
986 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(
final MagicCardOnStack cardOnStack,
final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
new MagicKickerChoice(
MagicTargetChoice.NEG_TARGET_ARTIFACT,
MagicManaCost.create("{R}"),
true,
true
),
new MagicDestroyTargetPicker(false),
this,
"Destroy target artifact\$."
);
}
@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));
}
});
}
}
]