replace groovy code with card script
parent
eb9cc26b24
commit
38cecb8bdd
|
@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
|
@ -7,5 +7,5 @@ type=Artifact,Creature
|
|||
subtype=Elf
|
||||
cost={3}
|
||||
pt=2/2
|
||||
ability=pay {1}{G}, {S}: Destroy target enchantment.
|
||||
timing=main
|
||||
requires_groovy_code
|
||||
|
|
Loading…
Reference in New Issue