replace groovy code with card script

master
melvin 2013-10-29 16:53:01 +08:00
parent eb9cc26b24
commit 38cecb8bdd
2 changed files with 1 additions and 35 deletions

View File

@ -1,34 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Removal),
"Destroy"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicPayManaCostSacrificeEvent(source, "{1}{G}")
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.NEG_TARGET_ENCHANTMENT,
MagicDestroyTargetPicker.Destroy,
this,
"Destroy target enchantment\$."
);
}
@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));
}
});
}
}
]

View File

@ -7,5 +7,5 @@ type=Artifact,Creature
subtype=Elf subtype=Elf
cost={3} cost={3}
pt=2/2 pt=2/2
ability=pay {1}{G}, {S}: Destroy target enchantment.
timing=main timing=main
requires_groovy_code