33 lines
1.1 KiB
Groovy
33 lines
1.1 KiB
Groovy
[
|
|
new MagicPermanentActivation(
|
|
new MagicActivationHints(MagicTiming.Removal),
|
|
"Damage"
|
|
) {
|
|
@Override
|
|
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
|
|
return [
|
|
new MagicPayManaCostEvent(source,"{1}"),
|
|
new MagicRemoveCounterEvent(source,MagicCounterType.Charge,1)
|
|
];
|
|
}
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
MagicTargetChoice.NEG_TARGET_ARTIFACT,
|
|
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));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|